Convert alarm Uri To get Id - Android Android OS

Android examples for Android OS:Alarm Information

Description

Convert alarm Uri To get Id

Demo Code

//package com.java2s;

import android.net.Uri;

public class Main {
    public static long alarmUriToId(Uri uri) {
        return Long.parseLong(uri.getSchemeSpecificPart());
    }/*from   w ww  . j  a v  a 2  s.c o m*/
}

Related Tutorials