3

I've created my own home/launcher and would like to set it as default depending on my location, but as far as I'm aware you can only clear/set defaults for home in the 'settings->applications->manage applications->name of home/launcher' : is this possible? I'm guessing it's not as it kind of takes control away from the user but I thought I would check...

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
AndroidNoob
  • 2,771
  • 2
  • 40
  • 53

3 Answers3

4

It is not possible to set a default HOME application from code, if you could do it it would be a security issue.

Maciej Pigulski
  • 1,562
  • 12
  • 26
  • 1
    see go launcher app, in that application they do, after installing app it's launcher directly appear, no need choose GO Launcher after installation. – Hitesh Dhamshaniya Aug 06 '12 at 13:02
0

We analyse an app named Launcher Switcher, it seems run ok in Android 2.2. Click a button to set the default launcher. But I installed it in Android 4.0, it's not work. After set the default launcher, when click the HOME button, the launcher choice window is still opens.

referenced from this: Set default Home app dynamically

Community
  • 1
  • 1
brucenan
  • 584
  • 9
  • 21
0
Intent startMain = new Intent(Intent.ACTION_MAIN); 
startMain.addCategory(Intent.CATEGORY_HOME); 
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
startActivity(startMain); 
Ahmad Kayyali
  • 8,233
  • 13
  • 49
  • 83
Pavankumar Vijapur
  • 1,196
  • 2
  • 10
  • 15