2012-09-11 52 views
0

無法在運行的模擬器上顯示android應用程序。 其實我想消費從機器人的方法SOAP,我想我已經正確地完成每一個代碼,但是當我試圖運行此廣告應用程式,控制檯和logcat的是說像這樣爲什麼模擬器猶豫要顯示android應用程序?

Web服務控制檯

[2012-09-11 16:26:47 - TMS_Chart] ----------- 
[2012-09-11 16:26:47 - TMS_Chart] Android Launch! 
[2012-09-11 16:26:47 - TMS_Chart] adb is running normally. 
[2012-09-11 16:26:47 - TMS_Chart] No Launcher activity found! 
[2012-09-11 16:26:47 - TMS_Chart] The launch will only sync the application package on the device! 
[2012-09-11 16:26:47 - TMS_Chart] Performing sync 
[2012-09-11 16:26:47 - TMS_Chart] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Android22-API-8' 
[2012-09-11 16:26:47 - TMS_Chart] Uploading TMS_Chart.apk onto device 'emulator-5554' 
[2012-09-11 16:26:50 - TMS_Chart] Installing TMS_Chart.apk... 
[2012-09-11 16:26:54 - TMS_Chart] Success! 
[2012-09-11 16:26:54 - TMS_Chart] \TMS_Chart\bin\TMS_Chart.apk installed on device 
[2012-09-11 16:26:54 - TMS_Chart] Done! 

而且logcat的是說像這樣,

logcat的

09-11 16:26:53.463: D/AndroidRuntime(494): Shutting down VM 
09-11 16:26:53.473: D/dalvikvm(494): Debugger has detached; object registry had 1 entries 
09-11 16:26:53.513: I/AndroidRuntime(494): NOTE: attach of thread 'Binder Thread #3' failed 
09-11 16:26:58.443: D/dalvikvm(191): GC_EXPLICIT freed 88 objects/3824 bytes in 146ms 
09-11 16:29:42.536: D/SntpClient(58): request time failed: java.net.SocketException: Address family not supported by protocol 
09-11 16:34:42.583: D/SntpClient(58): request time failed: java.net.SocketException: Address family not supported by protocol 
09-11 16:39:42.626: D/SntpClient(58): request time failed: java.net.SocketException: Address family not supported by protocol 

因此,我無法在模擬器上找到我啓動的android應用程序。

任何人都可以讓我知道這個問題嗎?

感謝您的寶貴時間!

+1

它說你不要有一個啓動活動,即與此<意圖過濾器> <操作機器人的活動:名=「機器人。 intent.action.MAIN「/>

回答

1

看起來你沒有發射器的活動。 foloowing意圖添加要被launced作爲默認活動activty:

<intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    <category android:name="android.intent.category.LAUNCHER" /> 
</intent-filter> 
相關問題