0

现在我正在尝试在 android 中显示 xml 文件中的数据。在项目开发之后,我只是运行项目,我的模拟器正在运行,但我创建的应用程序没有启动。

如何克服这个问题?

日志猫

[2012-09-03 14:37:28 - GridView_test] Android Launch!
[2012-09-03 14:37:28 - GridView_test] adb is running normally.
[2012-09-03 14:37:28 - GridView_test] No Launcher activity found!
[2012-09-03 14:37:28 - GridView_test] The launch will only sync the application package on the  device!
[2012-09-03 14:37:28 - GridView_test] Performing sync
[2012-09-03 14:37:29 - GridView_test] Automatic Target Mode: using existing emulator 'emulator-5556' running compatible AVD 'Android22-API-8'
[2012-09-03 14:37:29 - GridView_test] Uploading GridView_test.apk onto device 'emulator-5556'
[2012-09-03 14:37:30 - GridView_test] Installing GridView_test.apk...
[2012-09-03 14:37:34 - GridView_test] Success!
[2012-09-03 14:37:34 - GridView_test] \GridView_test\bin\GridView_test.apk installed on device
[2012-09-03 14:37:34 - GridView_test] Done!

提前致谢!..

4

1 回答 1

3

您必须更改文件<intent-filter>中的主要活动标签AndroidManifest.xml

<application android:name="......"
android:icon="@drawable/app_icon"
android:label="@string/app_name" >
    <activity android:name=".yourActivity">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

意味着,你必须改变你的活动<action><category>

看看这里了解更多。

于 2012-09-03T09:18:50.803 回答