Output of variables

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Output of variables

Postby fischrotze » Thu Jun 03, 2010 9:17 pm

Hello,

when I want to output a variable in Java I use
Code: Select all
System.out.println()

In Android, I can use the LogCat, but there my variable has to be from type String. Is it possible to output variable from another type?

greets
fischrotze
fischrotze
Freshman
Freshman
 
Posts: 4
Joined: Wed Jun 02, 2010 11:11 am

Top

Re: Output of variables

Postby vengeance_mj » Fri Jun 04, 2010 6:33 am

Generally i use Toast to check some string which I used to display something in Java by using System.out.println

Code: Select all
Toast.makeText(getApplicationContext(),<Text u want 2 display>,Toast.LENGTH_LONG|Toast.LENGTH_SHORT)
vengeance_mj
Senior Developer
Senior Developer
 
Posts: 174
Joined: Thu Oct 29, 2009 2:32 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests