0

Our app crashes when we hold the home button (to get into the app list).
KEYCODE_APP_SWITCH does not work for us.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Petr Župka
  • 111
  • 2
  • 9
  • 1
    How is your app crashing (logcat would be nice)? Shouldn't your app *not* crash? – ianhanniballake Oct 21 '14 at 18:24
  • Multitasking happens differently depending on the phone you are using, some (like Galaxy devices) have a home button that needs to be held, others have a specific button so this might be difficult to control. You should probably avoid manipulating Android behavior like that – Ryan Sayles Oct 21 '14 at 18:36
  • well, the programmer is currently afk (i am designer) i dunno what kind of crash is it, do you guys know any solution for disabling the "App switch" window, so if someone holds home button, it does nothing ? this is what i am looking for – Petr Župka Oct 21 '14 at 18:47
  • It says "app has stopped" – Petr Župka Oct 21 '14 at 18:50
  • Disabling the HOME button is very bad practice, but you could set in your manifest a HOME Activity, and every time the HOME button is pressed it will redirect to that Activity. Simply have that Activity redirect you back into the app. To the user it would be as though the Home button is doing nothing. – portfoliobuilder Nov 26 '14 at 18:59
  • Possible duplicate of [What is the keycode for multitasking/appswitch for samsung galaxy s3?](https://stackoverflow.com/questions/26554207/what-is-the-keycode-for-multitasking-appswitch-for-samsung-galaxy-s3) – Vadim Kotov Jul 05 '17 at 14:58

0 Answers0