I am looking for an API that provides user-defined date information. I used in the past the Contact List, for example:
Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(ContactsContract.Contacts.CONTENT_TYPE); ((Activity) mContext).startActivityForResult(intent, LauncherUI.RESULT_GOT_CONTACT_INFO);
and onActivityResult using
Uri contactData = intent.getData(); //Cursor cursor = managedQuery(contactData, null, null, null, null); Cursor cursor = cr.query(contactData, null, null, null, null); cursor.moveToFirst(); String name = cursor.getString(cursor.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME)); String id = cursor.getString(cursor.getColumnIndexOrThrow(ContactsContract.Contacts._ID));
I could extract the name, phone and gmail.

Now my goal is to do the same for Date-time with the format YYYY-MM-DD hh: mm: ss. Something like:


I do not want to implement it myself, since this function exists (only if there is no API)
Any ideas?
Maxim shoustin
source share