Code example for SparseArray

Methods: get

0
    } 
 
    @Override 
    public void onReceive(Context context, Intent intent) {
        int id = (int) ContentUris.parseId(intent.getData());
        Alarm alarm = mAlarms.get(id);
        if (alarm == null) {
            return; 
        } 
        sExecutor.execute(new Worker(alarm));
    } 
 
    private class Worker implements Runnable {
        private final Alarm mAlarm;
 
        public Worker(Alarm alarm) {
            mAlarm = alarm;
        } 
 
        public void run() { 
            mWakeLock.acquire();