How to simulate the GPS data in SDk 0.9

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

How to simulate the GPS data in SDk 0.9

Postby myjob_peter » Thu Sep 11, 2008 4:14 pm

Hi all,

If i want to simulator the GPS data ,such as when the android phone is moveing then the GPS location will change .How can i simulate the GPS data?Does any tools can simulator the move of the phone.

And when the location is changed ,does any listener method can listen the change event.


thanks!
myjob_peter
Freshman
Freshman
 
Posts: 6
Joined: Wed Sep 10, 2008 1:30 pm

Top

Re: How to simulate the GPS data in SDk 0.9

Postby plusminus » Thu Sep 11, 2008 6:33 pm

myjob_peter wrote:Hi all,

If i want to simulator the GPS data ,such as when the android phone is moveing then the GPS location will change .How can i simulate the GPS data?Does any tools can simulator the move of the phone.

And when the location is changed ,does any listener method can listen the change event.


thanks!


Yeah, there are two example-apps, showing how to do create a MockLocation and how to get its MockLocation. You can find them here:

:src: http://groups.google.com/group/android-developers/files
there, choose:
:arrow: MockProviderSample.zip
:arrow: LocationAPISample.zip

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby myjob_peter » Fri Sep 12, 2008 3:24 am

Hi,plusminus

Thanks for you help! It is very useful for me!!!
myjob_peter
Freshman
Freshman
 
Posts: 6
Joined: Wed Sep 10, 2008 1:30 pm

Postby clix99 » Mon Sep 22, 2008 8:17 am

Hey plusminus,

I tried to run those examples on my eclipse platform:

I downloaded the file and extracted.
Than created a new android project and chose a - create a project from existing source.

But i get this massage:
No activity name defined in C:\eclipse\LocationSample\AndroidManifest.xml


Does it mean that this example needs to be added to an existing project?
I want to create a simple GPS application that shows the location of the device on a map... If not with those examples - Where should i start?


Thanks
clix99
Freshman
Freshman
 
Posts: 2
Joined: Mon Sep 22, 2008 7:59 am

Postby cgreen » Mon Sep 22, 2008 9:45 am

use 'Import Project...', this works for me
localhost is the android emulator
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Do the samples work in 1.0 SDK?

Postby gautamsarora » Thu Oct 16, 2008 3:21 pm

Hi,
Thanks for the link to the projects, they are very helpful. I was able to import them without any trouble.

For LocationAPISample:
When I start the application, I do not see any location updates on the LogCat (I guess that should be the desired behavior)
I'm also having issues with my other code as well where I'm just trying to getLastKnownLocation() and am wondering if the problem could be due to my machine config (win xp)
http://groups.google.com/group/android- ... e39e9af286

Can anyone confirm that the LocationAPISample works with Android 1.0 SDK?

Thanks,
Gautam
gautamsarora
Freshman
Freshman
 
Posts: 4
Joined: Thu Oct 16, 2008 3:13 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests