+ Reply to Thread
Results 1 to 2 of 2

Thread: Getting location updates with interval 150m

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    11

    Getting location updates with interval 150m

    I am thinking about creating a mobile application that updates the location of mobile for every 150 meter.
    Can this be done by communicating to a jsp or a servlert ?

  2. #2
    The best approach would be register a service, define a custom location listener. In the implementation override the onLocationChanged() and you can get the location (lat, long) , please check that code :
    Code:
    @Override
    public void onLocationChanged(Location loc) {
        loc.getLatitude();
        loc.getLongitude();
        String Text = "Location : (" + loc.getLatitude() +","+ loc.getLongitude() + ")";
    }

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts