Here you can find the source of getCurrentTime()
public static long getCurrentTime()
//package com.java2s; import android.text.format.Time; public class Main { public static long getCurrentTime() { Time t = new Time(); t.setToNow();/* www . jav a2s .c o m*/ return t.toMillis(true); } }