[android-developers] Re: Diplay Logcats logs on console

2009-05-17 Thread Ruiming Li
You can try the following code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //If your layout is main.xml TextView tv = (TextView)findViewById(R.id.TextView01); tv.setText("Hello, Android\n

Re : [android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread GAYET Thierry
Hello, I am asking if Android already include a GBA (Generic Bootstrapping Architecture) authentification system ? If not, does any other group have ever try to add this protocol (almost the same as SSL) within the Android framework ? The GBA architecture is defined with 2 documents from the 3G

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
findViewById can only be used if you have set a layout for your activity and the layout had a control with the id you've mentioned. For what you're trying to accomplish, create a TextView using new TextView() and then do a setContentView(tv) You are getting tv as null because you do not have a

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Thanks, but I have same error. New code is : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = (TextView)this.findViewById(R.id.TextView01); setContentView(tv); tv.setText("Hello, Android\n"); } Boh. 2009/5/15

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Thanks, but I have this error : ERROR/AndroidRuntime(1096): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cecco.android.hello/com.cecco.android.hello.HelloWorld}: java.lang.NullPointerException: println needs a message in my code : public void onCreate(Bundle savedInstan

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
If you just want to print these on the activity, use a TextView and set its text to your sysouts TextView tv = (TextView)findViewById... tv.setText("Whatever you want to print"); On 15-May-09, at 1:54 PM, Francesco Pace wrote: > Hi, thanks. > But I want print these informations on my androi

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Hi, thanks. But I want print these informations on my android application.. There is a particular UI? 2009/5/15 iDeveloper > You can use Log.d for printing debug statements to the LogCat and Log.e for > error statements. > > > > > On 15-May-09, at 1:25 PM, Francesco Pace wrote: > > Hi Marian

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread iDeveloper
You can use Log.d for printing debug statements to the LogCat and Log.e for error statements. On 15-May-09, at 1:25 PM, Francesco Pace wrote: > Hi Mariano, thanks for your time. > Example : > > / CODE APPLICATION > System.out.println("Hello"); > foo1(); // Simple function > System.out.

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Francesco Pace
Hi Mariano, thanks for your time. Example : / CODE APPLICATION *System.out.println("Hello"); foo1(); // Simple function System.out.println("World"); foo2(); // Simple function System.out.println("Today"); System.out.println("Yesterday");* I know that I can't use "System.out.println" on An

[android-developers] Re: Diplay Logcats logs on console

2009-05-15 Thread Mariano Kamp
Not sure if I understand you correctly. You can run "adb -e logcat" on the command line to display the output of the currently running emulator. Is that what are looking for? On Fri, May 15, 2009 at 9:32 AM, Francesco Pace wrote: > Hi developers, > I need a help. I need to display all Logcats Lo