satheesh.droid
satheesh.droid

Reputation: 31567

how to find the gps location using android emulator?

hello friends I am trying to find the current gps location of the android emulator i have used the command geo fix but if i try to retrieve the current location it is showing an exception...can anyone help me?

Upvotes: 2

Views: 4090

Answers (3)

hakki
hakki

Reputation: 6527

I think you can't find your location with Android emulator.

But you can set your longitude and latitude manually. Using DDMS section in Eclipse better and easier way.

Upvotes: 0

nimi
nimi

Reputation: 606

From imulator you can't get current location. you have to paas location yourself.try this

C:/android sdk/tools/ddms.bat

when u run this bat file u will find an emulator tab there. from this tab you can pass locations to imulator.

Upvotes: 5

ScottB
ScottB

Reputation: 63

Go here:

http://developer.android.com/guide/topics/location/obtaining-user-location.html

Scroll down to the Providing Mock Location Data

Google's tutorials can be hard to understand, but they usually work great once you figure them out.

Upvotes: 2

Related Questions