Hello Mark, I Have imported the class file, due to which I am not getting the compile error and Moreover, by importing the class file, we should be able to access the static variable.
How would other application know about the URI of this content provider. So, I thought this Content_URI was introduced as a concept for content provider, as done for other providers like contacts etc. Accessing the URiI like "Content:// abc.com.provider/books" looks a wage usage i think. What do u say. On Sep 30, 10:26 pm, Mark Murphy <[email protected]> wrote: > On Thu, Sep 29, 2011 at 10:35 PM, Pradeep <[email protected]> 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/commonsguyhttp://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

