convert Latitude Long To String - Android Map

Android examples for Map:Latitude Longitude

Description

convert Latitude Long To String

Demo Code


//package com.java2s;

import android.location.Location;

public class Main {
    public static String convertLatLongToString(double lati, double longi) {
        String latitude = Location.convert(lati, Location.FORMAT_SECONDS);
        String longitude = Location.convert(longi, Location.FORMAT_SECONDS);
        return latitude + "," + longitude;
    }// w  w  w  . ja v a 2 s.  c  om
}

Related Tutorials