time Span between two Location - Android Graphics

Android examples for Graphics:Spannable

Description

time Span between two Location

Demo Code


//package com.java2s;
import android.location.Location;

public class Main {
    public static long timeSpan(Location start, Location end) {
        return end.getTime() - start.getTime();
    }/*from  w  ww. j  a v a  2 s.  c  o m*/
}

Related Tutorials