tags:

views:

46

answers:

0

I figured out my other question I had posted on here but now I have another issue with this same project.

I'm basically making a plugin for an app. The parent app pulls the graphics and other resources for it's interface from the drawables folder but with my plugin I'm making the graphics and other parts of it being pulled from the Assets folder. Everything works well, no force closes but in the log it's coming up "Unable to find file .usercontent" which is my ContentProvider.

The layout of the project goes like this:

Plugin installs -> asks user for menu selection -> depending on the choice it'll load the appropriate interface and options via the content provider.

So I have 3 activity .java files and 1 contentprovide .java file. The activity files are: .menu (brings up the main menu) .choice1 (extends activity) .choice2 (extends activity) .usercontent (extends contentprovider)

.choice 1 & .choice2 access the .contentprovider via ContentResolver. The intents are fine in the manifest, the parent app is picking up the call but for some reason it's trying to display .choice1 and not the content in the provider.

This is the code I'm using inside .choice1 to load .usercontent :

ContentResolver cr = getContentResolver();
final Uri CONTENT_URI =
Uri.parse("content://com.blah.blah/items");
cr.query(CONTENT_URI, null, null, null, null);

Is there something wrong with this and that's why it's trying to display .choice1 instead of the content? Should it be com.blah.blah/.usercontent in the Uri? Or is it just not possible to have this work as the parent app gets it's interface from drawables and there's no way to have it load using contentprovider/assets for the plugin?