Android模拟器输出 [英] Android emulator Output

查看:178
本文介绍了Android模拟器输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在HELLOWORD应用程序运行的入门android应用的研究与开发。但我不能能够看到Android模拟器的输出。它会显示只有在模拟器的屏幕的Andr​​oid。而我只是打印从Brijesh你好。但它不会在Android的模拟器显示。其实我按照以下链接指令。
http://developer.android.com/guide/tutorials/hello-world.html
但没有得到OUT输出。
任何一个可以帮助我。

I am running on helloword application as getting started with android application developement. but i cant able to see output in android emulator. it will show only android in the emulator screen. and i am just print "Hello from Brijesh". but it will not display in the emulator of the android. actually i follow the instruction in the following link. http://developer.android.com/guide/tutorials/hello-world.html but not getting out put. can any one help me out.

thankx。

推荐答案

如果我理解正确的,你想输出一些调试信息到屏幕?
在标准Java可以使用的System.out.println方法,但与Android我建议你使用的Dalvik调试器。

If i understand correctly, you would like to output some debugging messages to the screen ? In standard java you can use the System.out.println method, but with android i suggest you use the Dalvik debugger.

使用:

Log.i("mytag","My simple message");

和使用的Dalvik调试监视器瑟输出

And se the output by using the Dalvik Debug Monitor

与启动的Dalvik调试监视器:

Start the Dalvik Debug Monitor with:

c:\android-sdk\tools\ddms.bat

只要改变文件夹名到您所安装的SDK。

Just change the foldername to where you have installed the SDK.

现在调试器应用程序将启动(旁边的仿真器),您的信息将以绿色文本显示。

Now the debugger application will start (next to the emulator), and your message will be shown with green text.

这篇关于Android模拟器输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆