3 messages in com.googlegroups.android-developers[android-developers] Re: Calling SubA...| From | Sent On | Attachments |
|---|---|---|
| shaimailit | 24 Apr 2008 17:06 | |
| Diego Pino | 26 Apr 2008 04:19 | |
| Shaimailit | 24 May 2008 06:38 |
| Subject: | [android-developers] Re: Calling SubActivity using URI![]() |
|---|---|
| From: | Shaimailit (shai...@gmail.com) |
| Date: | 05/24/2008 06:38:50 AM |
| List: | com.googlegroups.android-developers |
Hi, Sorry about the late reply. Thanks for your answer. I have followed your instructions and checked the whole scenario again: The content provider's getType method works fine and returns the correct type (in my case, "vnd.android.cursor.dir/ com.test.Cashdroid.BudgetPlan"), but I still get the error "No activity found to handle Intent". Do you any other hint?
P.S. Did you succeed to call a subactivity using URI/have an working example for it?
On Apr 26, 2:20 pm, Diego Pino <pino...@gmail.com> wrote:
Hello,
If you are using your own ContentProvider I think you should add it also to your AndroidManifest.xml file. For instance,
<provider android:name="CashdroidProvider" android:authorities="com.test.Cashdroid.provider"/>
Then, check that in the implementation of your provider, more precisely in the method getType(URI), you successfully are able to translate your URIs (content://com.test.Cashdroid/BudgetPlans) to a valid type. That type must match the one your Intents expect to receive. According to your AndroidManifest.xml file, your method getType should return something like "vnd.android.cursor.item/ com.test.Cashdroid.BudgetPlans" for an URL like "content:// com.test.Cashdroid/BudgetPlans". That is apparently wrong cause that URL means something like a group of BudgetPlans, for which you should return a type like "vnd.android.cursor.dir/ com.test.Cashdroid.BudgetPlans", and not an item. Take a look at that.
Hope it works, cheers!
Diego
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr...@googlegroups.com To unsubscribe from this group, send email to andr...@googlegroups.com Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---




