0

I setted my android app as Home in android manifest with following code. But i want to exit from this app when i want but it reopens itself. Is it possible to exit from application and prevent auto re-open until i want to open manually or pressing home button myself. Is it possible to do this.

     <category android:name="android.intent.category.HOME" />
Bahadir Gul
  • 152
  • 3
  • 19

1 Answers1

0

that isn't possible. by pressing the home button all applications using "android.intent.category.HOME" will be displayed to choose from. when the user pick one to always be picked for home button, then the behaviour you descriped will happen. so the only choice you/or rather the user of your application has, is to noch set an application to always open when asked to do so.

momor10
  • 478
  • 3
  • 11
  • No, that is not the only choice. To unset a default home app, enter settings, applications, select the current home app, and clear its defaults. At an extreme, boot the device in safe mode first. – Chris Stratton Oct 16 '14 at 17:38
  • sure, the result is the same though (not picking a default home app). Sorry i wasn't clear about what i was trying to say :D – momor10 Oct 16 '14 at 17:39
  • No - *unpicking* a default **after having had the benefit of having one set** is quite different from not picking it in the first place, and being unable to enjoy that benefit. – Chris Stratton Oct 16 '14 at 17:41
  • is there any way to switch it on/off ? – Bahadir Gul Oct 16 '14 at 19:35