title: can pending intent access to database? I want to read and write data into database in intent created by pending intent
body: <p>i have create a pending intent, in the onReceive(), it start a new intent. i found that the intent cannot access to database (read / write data).</p>
  <p>I want to create a pending intent with alarm manager and it start a new intent. In the intent, i would like to read data from database and write data into database when click a button. Any suggestions or solutions, thank you.</p>
  <pre><code>db = new dbHelper(getApplicationContext());
          db.getReadableDatabase();
          Cursor cursor = db.readSpecificData(alarmID);
          while(cursor.getCount() != 0) {
              medicine_name = cursor.getString(1);  //no value get from db
              consume_times = cursor.getString(13); //no value get from db
          }
  </code></pre>