Friday, November 26, 2010

[android-developers] Re: Can two application's content providers share one authority?

If i have an activity which has one intent-filter as

android:mimeType="vnd.android.cursor.item/contact"
......

And in the activity if i call getData() on the intent of the activity.

What will i get?
How does android execute this request?


>getType() on ContentProvider.

You mean,
When ever android needs to match MIME type to URI.
It goes through all content provider's getType and compare the
strings.

Correct me if i am wrong.

On Nov 26, 5:40 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Fri, Nov 26, 2010 at 4:21 AM, Pink <sivareddy.j...@gmail.com> wrote:
> >  How does mapping done between MIME and CONTENT_URI?
>
> getType() on ContentProvider.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 2.2 Programming Books:http://commonsware.com/books

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate