Hello Mark,

Thanks you for the valuable info provided.

But still, I have a doubt as I am new to Java programming as well.

Content_URI is a static variable and should be accessable? Y there in
no compile time error but a run-time exception error.(I have included
provider app in the settings of the accessing app).

Is there any way to access using the static varibable of the provider
in other apps. (As I read in some blogs to generate the JAR file of
the app and integrate with other apps). Will this method work....if
Yes.. Please let me know in detail how?

On Oct 1, 7:07 am, Mark Murphy <[email protected]> wrote:
> On Sat, Oct 1, 2011 at 12:08 AM, Pradeep <[email protected]> wrote:
> > How would other application know about the URI of this content
> > provider.
>
> Through the advanced techniques of "typing" and "documentation".
>
> > So, I thought this Content_URI was introduced as a concept
> > for content provider, as done for other providers like contacts etc.
>
> That is a convenience, not a requirement. The reason it works for
> "other providers like contacts etc." is because those "other
> providers" are part of the OS and classes with these symbols are made
> part of the SDK.
>
> --
> 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 Android Development_ Version 3.6 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

Reply via email to