Parse alarm Uri To Id - Android android.app

Android examples for android.app:AlarmManager

Description

Parse alarm Uri To Id

Demo Code

import android.net.Uri;
import android.provider.Settings;
import java.lang.reflect.Field;

public class Main{

    public static long alarmUriToId(Uri uri) {
        return Long.parseLong(uri.getSchemeSpecificPart());
    }/*from w w w  .ja  v a 2  s .co m*/

}

Related Tutorials