Hi all:

Please try the following:
1. Download and extract LocationSample.zip from
http://groups.google.com/group/android-developers/files
2. From Eclipse main menu, select File > Import ... Existing Projects
into Workspace, and import extracted LocationSample into workspace
3. From Package Explorer, right-click the LocationSample project, and
select Run As -> Android Application
 -> Android emulator should launch, and you should eventually see the
LocationSample screen with message "Hello World, LocationSample"
4. In Eclipse, select Window > Open Perspective > DDMS
5. Select the "emulator-5554" entry in the "Devices" view
6. In "Emulator Control" view, find the "Location Controls" section,
and select the "Manual" tab
7. Provide values in the Longitude and Latitude fields (ie 17 17)
8. Press the Send button
 -> An entry should appear in the Logcat view like this:

DEBUG/LocationSample(159): location changed :
Location[mProvider=gps,mTime=1219971354000,mLatitude=17.0,mLongitude=17.0,mHasAltitude=true,mAltitude=0.0,mHasSpeed=false,mSpeed=0.0,mHasBearing=false,mBearing=0.0,mHasAccuracy=false,mAccuracy=0.0,mExtras=Bundle[mParcelledData.dataSize=52]]

Each time you repeat steps 7 and 8 you should see a new entry in the
Logcat view.

I hope that helps. Please reply back to this thread if the following
steps do not work for you.

Regards,
Brett.


On Aug 28, 8:34 am, Antonio Villar <[EMAIL PROTECTED]> wrote:
> I have the same problem with DDMS throgh eclipse. I tried in linux and
> windows, with eclipse 3.3 and 3.4 and always got location 0,0.
>
> I hope to fix this problem soon
>
> On Aug 26, 3:44 pm, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > In the standard maps application, my position is always at latitude 0
> > and longitude 0, altitude 10.Locationcontrols in DDMS in Eclipse seems to 
> > do nothing, I tried to
> > set manuallocation, using a GPX or a KML, i always get a 0,0location...
> > The only provider available is gps when I tried programmatically.
> > Plus, the documentation tells us about about the "geo" command but I
> > didn't find it in my tools directory nor in adb shell internal
> > command....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to