views:

2055

answers:

3

Hi All,

Currently I am writing an Android application which uses WikiTude API. I installed the WikiTude browser application in the Android SDK emulator from Android Market (To get Android Market in emulator I followed this link http://forum.xda-developers.com/archive/index.php/t-529170.html).

When I run the WikiTude browser application in emulator it asks me to set location settings. I enabled “Enable GPS satellites” option & run the application, again it make an alert for location settings. I am not able to run this application. Please help me.

Can anyone tell me is it possible to run GPS based application in Android Emulator? Or not? If it is, Is there any work around to run GPS based application in emulator?

                   Any help will be greatly appreciated…

                   Thanks in Advance……..
+3  A: 

Short answer: Yes, you can simulate GPS location changes in the emulator, via the Location Controls in DDMS perspective - you can set up these location updates manually, or you can load GPX or KML data.

A little longer answer: Depending on the type of location data you need for your application, you can find the emulator not exactly thrilling in terms of simulation capabilities. Also it's always good to test battery-expensive applications on real devices, because Android devices (at least most of them) are first and foremost mobile phones/netbooks and most of the times you would prefer to sacrifice some accuracy in exchange for battery life. Still, if you want to try the GPS simulation (which is perfectly fine for simpler testing), take a look here or in one of the better books about Android (http://stackoverflow.com/questions/1114287/good-book-for-beginning-android-development and http://stackoverflow.com/questions/949818/how-can-i-learn-android should help)

Dimitar Dimitrov
Also, many GPS-dependent libraries also use the Google APIs, so make sure the AVD emulator image you created contains those and not just the core Android system libraries.
Yoni Samlan
It's worth noting that if you send coordinates to an emulator instance they don't contain accuracy information.
fiXedd
Thank You Mr.mldj, I will follow your suggestions..
Raghavendra
+1  A: 

it say in instructions that you need a Google MAP key check your AndrodManifest does it have one?

Fred Grott
A: 

Hi Raghavendra,

Did you get any luck running Wikitude on AVD ? I am finding it very hard. Every time I run wikitude it says, Sorry the application wikitude has stopped unexpectedly. Please try again.

Also, I set my GPS location via geo fix in telnet, but when I go to google maps and try to go to my location, it says your current location is temporary unavailable.

-Sam

Sam
Hi Sam, No, It doesn't worked for me. I have installed the app in my HTC hero. ASFAIK, It is not possible to run Wikitude in emulator. But as per the documentation given by Wikitude said that there is a possibility. I suggest you to test the app in real device.
Raghavendra