What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by Indicator Veritatis » Thu, 29 Jul 2010 04:48:15 GMT


Sponsored Links
 My guess is that it is the non-Samsung phones 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.




--



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by Dmitri Plotnikov » Thu, 29 Jul 2010 05:05:59 GMT


 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






>


Sponsored Links


What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by pistol » Sat, 31 Jul 2010 20:32:43 GMT


 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





> >



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by pistol » Mon, 02 Aug 2010 16:03:03 GMT


 Currently I think the only fix is to not offer the option to Samsung
phones - a very bad solution.






> > >



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by Dmitri Plotnikov » Tue, 03 Aug 2010 00:54:08 GMT


 I doubt that it will work, but have you tried the alternative URL:

new Intent(ContactsContract.Intents.UI.LIST_ALL_CONTACTS_ACTION,
Contacts.CONTENT_URI)

Cheers,
- Dmitri








> > > >



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by pistol » Tue, 03 Aug 2010 19:48:53 GMT


 i Dmitri,

I am open to anything but
ContactsContract.Intents.UI.LIST_ALL_CONTACTS_ACTION
does not seem to exist?
There was a similar Action available on the deprecated Contacts class
but I am trying to avoid that.

Thanks,
Pete

On 2 Aug, 17:53, Dmitri Plotnikov <dplotni...@google.com> wrote:
> > > > >



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by pistol » Tue, 03 Aug 2010 19:49:00 GMT


 i Dmitri,

I am open to anything but
ContactsContract.Intents.UI.LIST_ALL_CONTACTS_ACTION
does not seem to exist?
There was a similar Action available on the deprecated Contacts class
but I am trying to avoid that.

Thanks,
Pete

On 2 Aug, 17:53, Dmitri Plotnikov <dplotni...@google.com> wrote:
> > > > >



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by pistol » Wed, 04 Aug 2010 16:28:24 GMT


 Unless of course this is not officially supported by Android - in
which case I shouldn't do it at all.







> > > >



What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

by Dmitri Plotnikov » Thu, 05 Aug 2010 00:22:38 GMT


 ou 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:

> > > > >



Other Threads

1. Any way to get some equivalent to the adb log while the device is not plugged into computer?





aLogCat as well. I'm using this one for offline debugging and it's quite
useful.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

2. how to find out memory usage by pid?

is there an SDK way to find out the exact amount of memory consumed by
a process identified by its pid?

-- 

3. Eclipse setup - how can I run the Email app from the plattform source

4. Info simpati turbo

5. i need QMAT

6. i need QMA

7. 2-D Graphics Performance after Motorola Droid 2.1 Update