[android-developers] Re: Null Pointer exception in Location Manager

2010-09-29 Thread Gold
Hi,, Finally i got the solution..! The mistakes are 1) I am not assign port to telnet 2) Add uses permission for mock location..now i got latitude.. Thanks & Warm Regards, Gold On Sep 29, 2:11 am, TreKing wrote: > On

[android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread TreKing
On Tue, Sep 28, 2010 at 4:09 PM, Gold wrote: > hi.. > > No , still i am checking, Now while loading home > screen itself thorw the error > "The application stopped unexpectly" in log also i get same error null > pointer exception > > > thanks & warm regards, > gold > A) Please respond to the g

Re: [android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread TreKing
On Tue, Sep 28, 2010 at 4:00 PM, Gold wrote: > If i click redbutton I need to display latitude > if i click greenbutton i need to display longitude > OK. Does this mean you fixed your null pointer problem? > How can i did that..! please give any solution..! > Do what? Solution to what? Clic

[android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread Gold
Hi,, If i click redbutton I need to display latitude if i click greenbutton i need to display longitude How can i did that..! please give any solution..! On Sep 29, 1:44 am, Kostya Vasilyev wrote: > Your code doesn't seem to assign any values to redbtn and gr

Re: [android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread TreKing
On Tue, Sep 28, 2010 at 3:49 PM, Gold wrote: > While clicking the button1 that is Step through the debugger through this point and inspect the values of your variables in the click listener. This will tell you exactly what's null in there. --

[android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread Gold
Hi.. While clicking the button1 that is redbtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) {

Re: [android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread TreKing
On Tue, Sep 28, 2010 at 3:41 PM, Gold wrote: > 09-29 02:09:46.636: ERROR/AndroidRuntime(2995): Caused by: > java.lang.NullPointerException > 09-29 02:09:46.636: ERROR/AndroidRuntime(2995): at > com.sample.test.Home.onCreate(Home.java:38) > Now which part of your code is at line 38?

[android-developers] Re: Null Pointer exception in Location Manager

2010-09-28 Thread Gold
Hi..Sorry, Herewith I attached Logcat trace..! 09-29 02:09:42.266: DEBUG/AndroidRuntime(2979): >> AndroidRuntime START << 09-29 02:09:42.276: DEBUG/AndroidRuntime(2979): CheckJNI is ON 09-29 02:09:42.536: DEBUG/AndroidRuntime(2979): --- registering native