[英]Start an Android Application on Emulator?
I am new to developing Android Application and developing a HelloWorld app. 我是开发Android应用程序和开发HelloWorld应用程序的新手。
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView text = new TextView(this);
text.setText("Hello World");
setContentView(text);
}
But when I run my app on AVD, Following comes in my Console. 但是,当我在AVD上运行我的应用程序时,控制台中会出现以下消息。
[2013-04-07 17:01:31 - Myapp] R.java was modified manually! Reverting to generated version!
[2013-04-07 17:01:48 - Myapp] ------------------------------
[2013-04-07 17:01:48 - Myapp] Android Launch!
[2013-04-07 17:01:48 - Myapp] adb is running normally.
[2013-04-07 17:01:50 - Myapp] Performing com.example.myapp.MainActivity activity launch
[2013-04-07 17:01:53 - Myapp] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'dv'
[2013-04-07 17:01:53 - Myapp] Uploading Myapp.apk onto device 'emulator-5554'
[2013-04-07 17:01:54 - Myapp] Installing Myapp.apk...
[2013-04-07 17:02:05 - Myapp] Success!
[2013-04-07 17:02:05 - Myapp] Starting activity com.example.myapp.MainActivity on device emulator-5554
Emulator also starts. 模拟器也会启动。 But it does not print HelloWorld.
但是它不会打印HelloWorld。
How i can make my app run? 我如何使我的应用程序运行?
Give the emulator some time (about 10 minutes). 给仿真器一些时间(大约10分钟)。 It takes him a very long time to boot up.
他花了很长时间才能启动。 If you wait long en ought then the android logo will disappear and you will receive the home screen.
如果您等待了很长时间,Android徽标将消失,您将收到主屏幕。
You can take a look at this blog post I wrote on how to speed-up the emulator: 您可以看一下我写的有关如何加速模拟器的博客文章:
The android emulator can take a while to load up. android模拟器可能需要一段时间才能加载。 Sometimes it can take three or four minutes before I see the android home screen
有时我可能需要三到四分钟才能看到android主屏幕
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.