Use the geo command:
http://code.google.com/android/reference/emulator.html#geo

If you are using eclipse plugin for development, you can use the the
Emulator Location Controls.
In Eclipse Go to : Windows/Show View/Others/Android/Emulator

-Chander

On Jan 31, 6:13 am, zeeshan <[email protected]> wrote:
> Hi,
>
> i am trying to run a simple program which shows lat and long values
> but Location value is always null.
>
> LocationManager locationManager;
>     locationManager = (LocationManager)getSystemService
> (Context.LOCATION_SERVICE);
>     Location location = locationManager.getLastKnownLocation
> (LocationManager.GPS_PROVIDER);
>
> emulator shows alert force close - wait
>
> please help me how can i fix this problem and also how can i debug
> line by line,   at the moment i am usinng if, else to see veriable
> value.
>
> Thanks,
> Zeeshan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to