在模拟器中运行应用程序时被卡住启动画面 [英] App gets stuck on splash screen when running in the emulator
问题描述
当在模拟器中启动画面卡住,从来没有运行时启动下一个活动。我删除从清单文件飞溅的活动,并提出下一个活动作为我的发射器。然而,当我运行应用程序,我得到了闪屏。我所做的一切,就像重新启动Eclipse中,取得了新的AVD,但我不从那里越来越闪屏知道。我不知道为什么会这样。
此设备上运行时工作正常,问题在模拟器中运行时只发生。
<清单的xmlns:机器人=http://schemas.android.com/apk/res/android
包=com.kaizen
安卓版code =1
机器人:=的versionName1.0><用途-SDK
安卓的minSdkVersion =8
机器人:targetSdkVersion =17/><使用许可权的android:NAME =android.permission.INTERNET对/>
<使用许可权的android:NAME =android.permission.WRITE_EXTERNAL_STORAGE/>
<使用许可权的android:NAME =android.permission.ACCESS_FINE_LOCATION/>
<使用许可权的android:NAME =android.permission.READ_PHONE_STATE/>
<使用许可权的android:NAME =android.permission.ACCESS_NETWORK_STATE/><应用
机器人:allowBackup =真
机器人:图标=@绘制/ ic_launcher
机器人:标签=@字符串/ APP_NAME
机器人:主题=@风格/ AppTheme>
<活动
机器人:名字=com.kaizen.Login
机器人:configChanges =keyboardHidden
机器人:标签=@字符串/ APP_NAME
机器人:主题=@安卓风格/ Theme.NoTitleBar>
&所述;意图滤光器>
<作用机器人:名字=android.intent.action.MAIN/>
<类机器人:名字=android.intent.category.LAUNCHER/>
&所述; /意图滤光器>
< /活性GT;
您必须卸载所有JRE 7,并安装最新的JRE 6(的http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html).它会立即修复此问题。
请参阅这以安装帮助
When running in the emulator the splash screen gets stuck and never starts the next activity. I removed the splash Activity from the manifest file and made the next Activity as my launcher. Still, when I run the app I get the splash screen. I have done everything like restarting eclipse, made new avd but I don't know from where it is getting the splash screen. I don't know why this is happening.
This works fine when running on a device, the issue only occurs when running in the emulator.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kaizen"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.kaizen.Login"
android:configChanges="keyboardHidden"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
You have to uninstall all JRE 7 and install latest JRE 6 (http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html). It will immediately fixed the problem.
See this for installation help
这篇关于在模拟器中运行应用程序时被卡住启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!