title: how can i get the clock alarms in android
body: <p>i want to get the alarm in the Clock Application in the mobile iam using the following code</p>
  
  <pre><code>Uri uri = Uri.parse("content://com.android.deskclock/AlarmClock");
          Cursor c = mContext.getContentResolver().query(uri, null, null, null,null);
          if (c != null) {
              String names[] = c.getColumnNames();
              for (String temp : names) {
                  System.out.println(temp);
  
              }
  
              if (c.moveToFirst()) {
                  do {
                      int i = 0;
                      for (int j = 0; j &lt; c.getColumnCount(); j++) {
                      }
                  } while (c.moveToNext());
              }
          }
  </code></pre>
  
  <p>iam getting the following Exception</p>
  
  <pre><code>java.lang.SecurityException: Permission Denial: opening provider 
  com.android.deskclock.AlarmProvider from ProcessRecord{4162b268 
  12999:com.genie9.gcloudbackup/10059} (pid=12999, uid=10059) that is not exported from uid 10011
  </code></pre>
  
  <p>does any one knows what is the permission that i have to use here? i have searched alot and couldn't find anything usefull, thanks for helping</p>