On Thu, Sep 29, 2011 at 10:35 PM, Pradeep wrote:
> I am trying to access the content provider I created
> "MyContentProvider" in another application(.apk) through
> MyContentProvider.Content_URI. But I am getting an runtime exception
> like noClassDefFoundError.
Of course. That class is not in your application. It should not even
compile, let alone run.
> If I use the complete URI like "Content://
> abc.com.provider/books" it works.
That is the proper way to reference content Uri values from other applications.
--
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 2.0
Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en