¡@

Home 

2014/10/16 ¤W¤È 08:11:37

android Programming Glossary: cr.insert

How to add new contacts in android

http://stackoverflow.com/questions/4744187/how-to-add-new-contacts-in-android

1234567890 cv.put ContactsContract.CommonDataKinds.Phone.TYPE ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE cr.insert ContactsContract.RawContacts.CONTENT_URI cv Toast.makeText this Contact added Toast.LENGTH_LONG .show catch Exception e..

Android - New Data record is added to the wrong contact

http://stackoverflow.com/questions/5151885/android-new-data-record-is-added-to-the-wrong-contact

rawid cv.put Data.MIMETYPE MyMime.MIMETYPE cv.put Data.DATA1 mydata cv.put Data.SYNC1 syncvalue Uri newIns cr.insert ContactsContract.Data.CONTENT_URI cv Log.i TAG insert newIns name android contacts share improve this question The..

How to set a reminder in Android?

http://stackoverflow.com/questions/5976098/how-to-set-a-reminder-in-android

minutes from now values.put description Reminder description values.put visibility 0 values.put hasAlarm 1 Uri event cr.insert EVENTS_URI values reminder insert Uri REMINDERS_URI Uri.parse getCalendarUriBase this reminders values new ContentValues.. ContentValues values.put event_id Long.parseLong event.getLastPathSegment values.put method 1 values.put minutes 10 cr.insert REMINDERS_URI values You'll also need to add these permissions to your manifest for this method uses permission android..

How to read and edit Android calendar events using the new Android 4.0 Ice Cream Sandwich API?

http://stackoverflow.com/questions/7859005/how-to-read-and-edit-android-calendar-events-using-the-new-android-4-0-ice-cream

My dog is bored so we're going on a really long walk values.put CalendarContract.Events.CALENDAR_ID 3 Uri uri cr.insert CalendarContract.Events.CONTENT_URI values Retrieve ID for new event String eventID uri.getLastPathSegment You'll need the..

Insert multiple events in Android calendar

http://stackoverflow.com/questions/8688837/insert-multiple-events-in-android-calendar

long endTime end.getTimeInMillis cv.put dtstart startTime cv.put dtend endTime Insertion on the events of the calendar cr.insert Uri.parse content com.android.calendar events cv It inserts my event but it doesn't do it recurring. I mean that my event..