You are right - I forgot that this intent is hidden API. Ironically, the deprecated equivalent Contacts.UI.LIST_ALL_CONTACTS_ACTION is public and therefore is supposed to work. ;)
On Wed, Aug 4, 2010 at 1:28 AM, pistol <lava.d...@gmail.com> wrote: > Unless of course this is not officially supported by Android - in > which case I shouldn't do it at all. > > On 2 Aug, 09:02, pistol <lava.d...@gmail.com> wrote: > > Currently I think the only fix is to not offer the option toSamsung > > phones - a very bad solution. > > > > On 31 July, 13:32, pistol <lava.d...@gmail.com> wrote: > > > > > You are right - I needn't startActivityForResult() - just > > > startActivity(). > > > I still would get the ActivityNotFiundException though. > > > ;-( > > > > > I just want the Contacts 'view' opened up so the user can look at > > > them. Not to pick or return (a specific) one. > > > > > I works fine on all my phones and emulators. > > > > > Pete > > > > > On 28 July, 22:05, Dmitri Plotnikov <dplotni...@google.com> wrote: > > > > > > The code appears to be correct - it is supposed to work on any > Android phone > > > > :-( > > > > > > However, calling it for result does not really make sense. It is > supposed > > > > to launch the activity and that's that - no result will be returned. > > > > > > If you need to user to pick a contact from the list, do this instead: > > > > > > new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI) > > > > > > Cheers, > > > > - Dmitri > > > > > > On Wed, Jul 28, 2010 at 1:47 PM, Indicator Veritatis < > mej1...@yahoo.com>wrote: > > > > > > > My guess is that it is the non-Samsungphones that are doing > something > > > > > non-standard, something you cannot rely on. For as I read your > code, > > > > > you are trying to view not just a contact, but an entire contact > > > > > database. I don't think Android guarantees that that Action is > > > > > supported on the entire database. > > > > > > > Try appending a specific ID to the Uri. > > > > > > > On Jul 28, 7:09 am, pistol <lava.d...@gmail.com> wrote: > > > > > > Some of my users withSamsungphones (GT-I9000, SGH-I897 to name at > > > > > > least 2) cannot open the Contacts view on their phones - thew way > my > > > > > > app has this coded is like this: > > > > > > > > Uri uri = ContactsContract.Contacts.CONTENT_URI; > > > > > > Intent intent = new Intent(Intent.ACTION_VIEW, uri); > > > > > > startActivityForResult(intent, Constants.ACTIVITY_CALL_CONTACTS); > > > > > > > > This causes an ActivityNotFoundException. > > > > > > > > Is the problem that this is not the way to call the Contacts > provider > > > > > > or thatSamsunghave not implementeed it? > > > > > > > > If it is down toSamsungcan some-one give me the correct Uri? > though > > > > > > it will be terrible to have to have phone specific code. > > > > > > > > thanks, > > > > > > Pete > > > > > > > -- > > > > > 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<android-developers%2bunsubscr...@googlegroups.com> > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com> > > > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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