当前位置: 代码迷 >> Iphone >> 自各儿写仿iPhone的Launcher
  详细解决方案

自各儿写仿iPhone的Launcher

热度:16   发布时间:2016-04-25 06:39:31.0
自己写仿iPhone的Launcher
占楼

1.
快速选择不同的Launcher,前提是不能有Default Launcher
Intent i = new Intent(Intent.ACTION_MAIN);i.addCategory(Intent.CATEGORY_HOME);startActivity(i);

模拟器上按Home键也可以达到相同的效果。

2.
Launcher的intent filter
<intent-filter>	<action android:name="android.intent.action.MAIN" />	<category android:name="android.intent.category.HOME" />	<category android:name="android.intent.category.DEFAULT" /></intent-filter>


3. 附件Launcher-Study为Android原生Launcher的代码,修改了一部分
  相关解决方案