[android-developers] Re: Map app with GPS is not working in Nexus One

2010-04-18 Thread SREEHARI
Hi All, Thanks for ur replyBut my doubt is why I am getting exception in nexus one onlyI tried the same code with G1.It is working fine in that.Ok...anyway I will try with requestLocationUpdates Regards, SREEHARI. -- You received this message because you are subscribed to

[android-developers] Re: Map app with GPS is not working in Nexus One

2010-04-16 Thread javame_android
Hi, Avoid using getLastKnownLocation and try to use requestLocationUpdates instead. I think it is not finding any last known location and so its returning null. This method will behave differently in different methods. So, its better to use requestLocationUpdates. Regards Sunil -- You

Re: [android-developers] Re: Map app with GPS is not working in Nexus One

2010-04-16 Thread ~ TreKing
On Fri, Apr 16, 2010 at 12:54 AM, SREEHARI sreehari.madhusooda...@wipro.com wrote: Hi TreKing, Sorry I dint get u My point is this: you have a null pointer exception. You showed exactly which line the exception happens on. In that line there is exactly one object you are using that could be

[android-developers] Re: Map app with GPS is not working in Nexus One

2010-04-15 Thread SREEHARI
Hi TreKing, Sorry I dint get u I am using Location location = locationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER); GPS is enabled in my phone. So the provider should give the lastknown location, rite?? The same code is working in HTC G1 mobile. Please help me. Regards,