Re: [android-developers] Re: Content provider implementation questions

2010-06-14 Thread Alex Xin
Thanks Mark & Moto :) my final goal is that I want to provide video/audio/image data to right handlers, of course those data are stored on network file server running SMB sharing service or local file systems. Sorry I still have questions: >From Mark's reply I know that maybe I need to implement

Re: [android-developers] Re: Content provider implementation questions

2010-06-14 Thread Mark Murphy
You can use a ContentProvider to serve files. See the openFile() method. On Mon, Jun 14, 2010 at 10:51 AM, Moto wrote: > From what I searched before, ContentProvider is only for allowing > Database access to your app from other apps...  In your case I'm not > sure you would want to use a ContentP

[android-developers] Re: Content provider implementation questions

2010-06-14 Thread Moto
>From what I searched before, ContentProvider is only for allowing Database access to your app from other apps... In your case I'm not sure you would want to use a ContentProvider to access files... You might be able to hack it but I wouldn't recomend it... Try a service... Maybe inside the ser