tags:

views:

1053

answers:

2

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.

+4  A: 

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.

Use:

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

And se the output by using the Dalvik Debug Monitor

Start the Dalvik Debug Monitor with:

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

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.

PHP_Jedi
Thanks very much its done now.
Brijesh Patel
A: 

You can also view System.out.println commands in the Dalvik Debug Monitor or in LogCat by creating a filter for a Log Tag containing "System.out".

tronman