Hello, I am developing an application, to manage expenses of a group, and I get the phone owner's name, but with the examples I've found gives me error 11-12 16:01:44.480: ERROR/ AndroidRuntime(24793): Caused by: java.lang.IllegalArgumentException: URI: content://contacts/people/owner, Tengo puesto el permiso: READ_OWNER_DATA String name = null; String projection[] = { ContactMethods.NAME }; Cursor c = getContentResolver().query( Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner"), null, null, null, null); if (c != null) { if (c.moveToFirst()) { name = c.getString(0); } c.close(); }
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en