启动完成后,我想加载我自己的活动作为第一个屏幕而不是移动主屏幕.两者之间发生了延迟,所以如何解决这个问题…提前感谢…..
解决方法:
检查一下:
OtaStartupReceiver
这个类是AndroID源码中的Phone apk源代码,请检查方法private boolean shouldPostpone(Context context)
On devices that provIDe a phone initialization wizard (such as Google
Setup Wizard), we allow delaying CDMA OTA setup so it can be done in a
single wizard. The wizard is responsible for(1) disabling itself once it has been run and/or
(2) setting the ‘device_provisioned’ flag to something non-zero and
(3) calling the OTA Setup with the action below. NB: Typical phone
initialization wizards will install themselves as the homescreen
(category “androID.intent.category.HOME”) with a priority higher than
the default. The wizard should set ‘device_provisioned’ when it
completes, disable itself with the
PackageManager.setComponentEnabledSetting() and then start home
screen.
如上所示:
您可以在AndroIDManifest.xml中创建一个活动
<activity androID:name=".Demo" androID:label="@string/app_name" androID:screenorIEntation="portrait" > <!--androID:priority added--> <!--category.HOME and DEVICE_INITIAliZATION_WIZARD must have--> <intent-filter androID:priority="1000"> <action androID:name="androID.intent.action.MAIN" /> <category androID:name="androID.intent.category.HOME"/> <action androID:name="androID.intent.action.DEVICE_INITIAliZATION_WIZARD"/> <category androID:name="androID.intent.category.LAUNCHER" /> </intent-filter> </activity>@H_502_38@
总结 以上是内存溢出为你收集整理的一旦启动完成android,如何启动我自己的Activity而不是移动主屏幕?全部内容,希望文章能够帮你解决一旦启动完成android,如何启动我自己的Activity而不是移动主屏幕?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)