在模拟器中运行时,应用程序会在启动屏幕上卡住 [英] App gets stuck on splash screen when running in the emulator

查看:232
本文介绍了在模拟器中运行时,应用程序会在启动屏幕上卡住的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在仿真器中运行时,启动屏幕卡住,从不启动下一个活动。我从清单文件中删除了活动,并将下一个活动作为我的启动器。不过,当我运行应用程序,我得到了闪屏。我已经做了一切,如重新启动eclipse,制作新的avd,但我不知道从哪里得到闪屏。我不知道为什么会发生这种情况。

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>


推荐答案

您必须卸载所有JRE 7并安装最新的JRE 6( http://www.oracle.com/technetwork/爪哇/ JavaSE的/下载/ jre6downloads-1902815.html )。它会立即解决问题。

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆