我已经创建了我自己的应用程序,我想这一个是我的启动器。这是一个简单的应用程序,但它工作。
是否可以用我的应用程序替换默认启动器,以便我的应用程序在启动后总是默认启动?
在你的manifest中设置正确的intent过滤器将会提示你使用它作为替代品:
<activity android:name="Home"
...
android:launchMode="singleInstance"
android:stateNotNeeded="true">
<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>
</activity>
请参阅Google的Intent和Intent Filters文档
你可以看看家庭教程http://developer.android.com/resources/samples/Home/index.html