daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jul 17th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Calendar cal = Calendar.getInstance();
  2. Intent intent = new Intent(Intent.ACTION_EDIT);
  3. intent.setType("vnd.android.cursor.item/event");
  4. intent.putExtra("beginTime", cal.getTimeInMillis());
  5. intent.putExtra("allDay", true);
  6. intent.putExtra("rrule", "FREQ=YEARLY");
  7. intent.putExtra("endTime", cal.getTimeInMillis()+60*60*1000);
  8. intent.putExtra("title", "A Test Event from android app");
  9. startActivity(intent);
  10.    
  11. <uses-permission android:name="android.permission.READ_CALENDAR" />
  12. <uses-permission android:name="android.permission.WRITE_CALENDAR" />
  13.    
  14. <activity android:name=".controller.tabs.ActivityBudgetsList" android:label="@string/app_name">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top