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. Any updates on ADC-2?

The full terms and conditions were to be published and its almost mid-
july now. I know it says timelines are subject to change but with
around 20 days remaining when they start accepting entries, maybe the
contest organizers should update the timeline so that we have an
approximate idea, how much time remaining do we really have.


p.s. asking here because adc-2 doesnt seem to have an official mailing
list till now


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

2. ADC 2 - Can I post my app to the app store after August 1st?

I want to post to app store, get an application ID, and modify my
application to point to the right app in the app store for eventual
user upgrade after the challenge.

I'll need to upload the app to get the proper application search
criteria.  Is this valid to do according to the ADC rules, or will
upload to the app store in any context other than as a submission for
ADC invalidate my entry?


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

3. sdk for windows from source code

4. Is there a simple way to...

5. Automatic Import causes crash ?

6. Do they need to change the security keys for the OEM

7. How can I monitor/trace an intent?