Test if ContentProvider exists ?

by Lee » Tue, 01 Jun 2010 23:45:51 GMT


Sponsored Links
 How can I test if there's a ContentProvider for a Uri ?

I'm currently doing a query on it and checking for a null cursor, but
that generates an error in the system log each time, which I don't
like to do.

Pent

--



Test if ContentProvider exists ?

by Mark Murphy » Wed, 02 Jun 2010 00:40:50 GMT


 


You should be able to use methods on PackageManager for that.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.5 Available!

--


Sponsored Links


Test if ContentProvider exists ?

by Lee » Wed, 02 Jun 2010 01:30:02 GMT


 Looks promising, thanks.

Lee






--



Other Threads

1. Why do screenshot utilities require rooting?

Why do Android screenshot utilities only work on rooted devices? Linux
distributions and desktop environments provide user-space screen
capture tools. Why can't Android? I wonder what are the technical
issues, if any, that prevent this.

The only user-space procedure I am aware of, i.e. installing about 1
GB worth of development tools on a PC, hooking it to an Android device
via USB, and disabling some of its funzionality (e.g. SD card access),
is not user-friendly.


Paolo Amoroso

--~--~---------~--~----~------------~-------~--~----~

2. Programmatically Add Dedicated Key/Shortcut/Quick Launch of an Application

Is there a way to programmatically or in the manifest file to add/
register an application shortcut/quick launch/dedicated key?

This is useful so that the user doesn't need to do it manually.

Thanks,
Hendra
--~--~---------~--~----~------------~-------~--~----~

3. Cara unlock htc mytouch

4. How to build Android emulator for special platform?

5. Screenshot app di Android

6. Asurion, Next Address Book..

7. Android 2.0 Platform Highlights