Skip to main content

Write long and lat of gps using java



i want to read stream of GPS and display latitude and longitude with java.I want if is possible a sentance or class that do this .





Thanx :)


Comments

  1. RouteConverter is an application for dealing with GPS data in many different formats. There is a version without all the GUI stuff that can be used as an API.

    ReplyDelete
  2. you can create a class that implements LocationListener and override onLocationChanged method.

    It should be something similar to this.

    public class abc implements LocationListener {
    @override

    public void onLocationChanged(Location location){
    if (location != null) {
    // This needs to stop getting the location data and save the battery power.
    locManager.removeUpdates(locListener);
    String longitude = "Longitude: " + location.getLongitude();
    String latitude = "Latitude: " + location.getLatitude();
    }
    }
    }

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?