我正在尝试PhoneGap的helloworld示例。 http://www.phonegap.com/start/#android 当我启动Android模拟器时,在30秒内显示默认的Android屏幕,但不显示带有hello world的HTML。 日志看起来像:
[2011-03-06 12:36:17 - SampleApp] ------------------------------
[2011-03-06 12:36:17 - SampleApp] Android Launch!
[2011-03-06 12:36:17 - SampleApp] adb is running normally.
[2011-03-06 12:36:17 - SampleApp] Performing sample.app.Sample activity launch
[2011-03-06 12:36:17 - SampleApp] Automatic Target Mode: launching new emulator with compatible AVD 'Vede'
[2011-03-06 12:36:17 - SampleApp] Launching a new emulator with Virtual Device 'Vede'
[2011-03-06 12:36:17 - Emulator] emulator: emulator window was out of view and was recentred
[2011-03-06 12:36:17 - Emulator]
[2011-03-06 12:36:18 - SampleApp] New emulator found: emulator-5554
[2011-03-06 12:36:18 - SampleApp] Waiting for HOME ('android.process.acore') to be launched...
[2011-03-06 12:36:53 - SampleApp] WARNING: Application does not specify an API level requirement!
[2011-03-06 12:36:53 - SampleApp] Device API version is 10 (Android 2.3.3)
[2011-03-06 12:36:53 - SampleApp] HOME is up on device 'emulator-5554'
[2011-03-06 12:36:53 - SampleApp] Uploading SampleApp.apk onto device 'emulator-5554'
[2011-03-06 12:36:53 - SampleApp] Installing SampleApp.apk...
[2011-03-06 12:37:22 - SampleApp] Success!
[2011-03-06 12:37:23 - SampleApp] Starting activity sample.app.Sample on device emulator-5554
[2011-03-06 12:37:24 - SampleApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=sample.app/.Sample }
答案 0 :(得分:2)
Android 2.3模拟器不适用于Phonegap 0.9.4(及更早版本)。有关详细信息,请参阅http://code.google.com/p/android/issues/detail?id=12987。
您可以采取两种方式:
答案 1 :(得分:0)
我自己对Android很新,有时模拟器会启动代码,有时候不适合我。我通常必须按“菜单”,然后按下底部的网格,然后调出手机上的所有应用程序,您的应用程序应该在其中,只需点击它即可启动。