现在我正在尝试显示android中xml文件的数据。 在项目开发之后,我只是运行项目,我的模拟器正在运行,但我创建的应用程序没有启动。
如何克服这个问题?
logcat的
[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!
提前致谢!..
答案 0 :(得分: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>
请查看here了解更多信息。