且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android系统的Hello World

更新时间:2022-11-08 14:24:57

我假设你正在使用的仿真器。你必须要有耐心;它需要很长的时间来启动(几分钟)。您可以通过在Eclipse窗口菜单,选择手动启动模拟器的Andr​​oid SDK和亚洲开发银行的经理,点击你创建的模拟器,然后点击开始按钮。等到你看到主屏幕。如果需要,通过点击和拖动鼠标按下在屏幕上,直到它的解锁解锁。

如果你有机会到一个物理的手机和USB数据线,你将有一个更好的(快)整体体验。

祝你好运!

I'm currently learning how to create android applications so I started with the basic "Hello World" tutorial over at the Android Developers home page. The code is quite simple but when I run it(I'm using Eclipse and a AVD v2.2), it only shows "Android." It does not go to the Home Screen. I updated everything and I still get the same problem. Is there something I did not or

New errors:

[2010-09-29 09:35:04 - DeviceMonitor]Sending jdwp tracking request failed!

[2010-09-29 09:41:50 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2010-09-29 10:16:23 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2010-09-29 10:16:28 - HelloAndroid] Installing HelloAndroid.apk...
[2010-09-29 10:20:27 - HelloAndroid] Failed to install HelloAndroid.apk on device 'emulator-5554!
[2010-09-29 10:20:27 - HelloAndroid] (null)
[2010-09-29 10:20:29 - HelloAndroid] Launch canceled!

I assume you are using the emulator. You have to be patient; it takes a very long time to start up (several minutes.) You can start the emulator manually by going to the Window menu in Eclipse, selecting "the Android SDK and ADB manager," clicking on the emulator you created and then clicking on the Start button. Wait until you see the home screen. If necessary, unlock it by clicking and dragging the mouse down over the screen until it's unlocked.

If you have access to a physical phone and USB cable, you will have a much better (faster) experience overall.

Good luck!