[英]App gets stuck on splash screen when running in the emulator
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.
我已经完成了所有工作,例如重新启动eclipse,创建了新的avd,但我不知道它是从哪里获得启动屏幕的。 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 ). 您必须卸载所有JRE 7并安装最新的JRE 6( http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html )。 It will immediately fixed the problem.
它将立即解决问题。
Uninstall app from emulator and then re run your app. 从模拟器中卸载应用程序,然后重新运行您的应用程序。 Hope it will help you.
希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.