File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Want to develop an android application using GPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Want to develop an android application using GPS" Watch "Want to develop an android application using GPS" New topic

Want to develop an android application using GPS

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598


I want to do an academic project using GPS but I dont have any android device,
Is there any way in which I can achieve the same in an emulator?

Thanks for the help.


My Blog SCJP 5 SCWCD 5
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252

In android emulator it provides built in facility for internet.I mean to say if you have internet on your pc.You can surf from emulator's browser too.
Can you explain which kind of task you want to perform in you project which is based on GPRS ? Because I am not getting what actually you are needed.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The Android Dev Guide has a section titled "Using the Android Emulator" that talks about this.
Johan Pelgrim
Ranch Hand

Joined: Jul 07, 2003
Posts: 105

Hi Himanshu,

This is a good tutorial which explains all in my view:

You first need a Google Maps API key though. Read this howto to get it:

This is also a good tutorial on getting the user location:

My experience is that only AVDs with Google API 7 works.

Don't forget to add "GPS support" to your AVD!

If you have any questions let me know.

Good luck!


Johan Pelgrim, The Netherlands
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
mitch mccann

Joined: Apr 20, 2011
Posts: 7
If you'r trying to avoid getting a GPS, it's hard but not impossible for a limited number of locations. Using a portable computer running an Android emulator is not going to work well, because the emulator requires that one send it "fake" locations. This is fairly easy to do through Eclipse, (after you get out of hospital from the pain of having to learn Eclipse.)
If you can sit in an office and use Google Maps to drag a cursor to the spot of the place you need for your academic investigation, that might be the best way to get the info.
If you need to record lots of locations, (I'd say more than 10 a day,) getting some kind of GPS will prove more efficient in the long run.
regards, CactusMitch

Doing Android without learning Java is dumb.
I agree. Here's the link:
subject: Want to develop an android application using GPS
It's not a secret anymore!