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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to