[android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread gaara
that is an extract of my LogCat, Peace, Gaara 06-28 14:30:18.682: WARN/dalvikvm(479): threadid=1: thread exiting with uncaught exception (group=0x40015560) 06-28 14:30:18.732: ERROR/AndroidRuntime(479): FATAL EXCEPTION: main 06-28 14:30:18.732: ERROR/AndroidRuntime(479):

Re: [android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread Mark Murphy
On Tue, Jun 28, 2011 at 10:32 AM, gaara amellal.kamili...@gmail.com wrote: that is an extract of my LogCat, Here's the relevant part: 06-28 14:30:18.732: ERROR/AndroidRuntime(479): Caused by: java.lang.NullPointerException 06-28 14:30:18.732: ERROR/AndroidRuntime(479): at

[android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread gaara
And what's that's means in this case !!! Peace, Gaara On Jun 28, 2:37 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 28, 2011 at 10:32 AM, gaara amellal.kamili...@gmail.com wrote: that is an extract of my LogCat, Here's the relevant part: 06-28 14:30:18.732:

Re: [android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread Raghav Sood
It looks like you are not familiar with Java. NullPointerException means that you have a reference to something that does not exist. My advice: Learn some Java first then do this. On Tue, Jun 28, 2011 at 8:32 PM, gaara amellal.kamili...@gmail.com wrote: And what's that's means in this case !!!

Re: [android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread Mark Murphy
On Tue, Jun 28, 2011 at 11:02 AM, gaara amellal.kamili...@gmail.com wrote: And what's that's means in this case !!! If you do not know what a NullPointerException is, please stop Android development for a while and learn Java programming outside of Android. There are plenty of free resources

[android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread gaara
oww my question is not what that means but if it could be related to Android that's what i want to know even if thanks for the remarque On Jun 28, 2:37 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 28, 2011 at 10:32 AM, gaara amellal.kamili...@gmail.com wrote: that is an extract

Re: [android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread Kostya Vasilyev
Any case really - whenever there is a crash, check the logcat, then look for Caused by, which usually points to code within the application. 28.06.2011 19:02, gaara пишет: And what's that's means in this case !!! Peace, Gaara -- Kostya Vasilyev -- You received this message because you are

Re: [android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread Mark Murphy
On Tue, Jun 28, 2011 at 11:09 AM, gaara amellal.kamili...@gmail.com wrote: oww my question is not what that means but if it could be related to Android that's what i want to know even if thanks for the remarque For example, you will get a NullPointerException if you try using a widget retrieved

[android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread gaara
Ok thanks!!! Peace, Gaara On Jun 28, 3:10 pm, Kostya Vasilyev kmans...@gmail.com wrote: Any case really - whenever there is a crash, check the logcat, then look for Caused by, which usually points to code within the application. 28.06.2011 19:02, gaara пишет: And what's that's means in

Re: [android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread Kostya Vasilyev
No, it's not related to Android, there is a bug in *your* code. package com.example.android; class AnotherOne extends Activity { @Override public void onCreate(Bundle savedInstanceState) { // line 43: someObject is null someObject.someMethod(); } } --

[android-developers] Re: setOnclickListener(this); gives me a Force Close

2011-06-28 Thread gaara
Solved (((thanks to Raghav Sood XD))) Peace, Gaara On Jun 28, 3:10 pm, Kostya Vasilyev kmans...@gmail.com wrote: Any case really - whenever there is a crash, check the logcat, then look for Caused by, which usually points to code within the application. 28.06.2011 19:02, gaara пишет: And