Hi Mark!
Thanks for your kind response, and I'm very sorry about misspelling
your last name... :(

Your idea to use a service is great! I'll start looking into that...

Thanks again,
-Moto!

On May 15, 9:39 am, Mark Murphy <[email protected]> wrote:
> Moto wrote:
> > Mark Murfy if you get a chance... You seem to be an expert in this
> > area...
>
> If you're going to ask somebody for help, you could spell their name
> right...
>
> :-)
>
> >> How could I create a ContentProvider where the data is fetch from the
> >> internet.  
>
> That might be a bit dangerous if you intend to do the fetching live.
>
> I have only implemented ContentProviders with local data. Most of the
> calls to ContentResolver to access the provider are synchronous. That
> means whoever calls the ContentResolver will block while you are
> downloading and parsing the data. That means they should not use
> ContentResolver in the main application thread, and I have not tried
> using it from a background thread.
>
> There is an AsyncQueryHandler that may be of assistance here, but it is
> ill-documented and I have not used it.
>
> >> As the data is parsed maybe allow the requesting client
> >> know the download progress and results so that they are displayed as
> >> it's downloaded.
>
> That's not possible AFAIK.
>
> >> My idea is to share this data across other apps...
>
> >> I'm not sure if a ContentProvider would be the solution?  Any advice?
>
> IMHO, you are far better served implementing a service with an AIDL
> interface for remote access. Then you are not locked into the
> ContentProvider API and rules.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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