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
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
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
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,
4 matches
Mail list logo