Saturday, November 5, 2011

Re: [android-developers] Re: I need to open my my files in /data/data/{package-name}/files using QuickOffice in Android

I really, strongly, hugely recommend not making world readable files.  Use a content provider.  That is what they are for.

On Sat, Nov 5, 2011 at 11:14 AM, ramya <ramya.ibt@gmail.com> wrote:
Thanks a lot Mark..Took your viewpoint and did a workaround for
already created files .I copied them to new location with world
readable permission .Thanks:)

On Nov 4, 2:12 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Fri, Nov 4, 2011 at 2:30 PM, ramya <ramya....@gmail.com> wrote:
> > For Content Provider ,do I have to mention the provider tag in
> > manifest.I have not worked on that before.Do you know of any examples
> > of how to access my internal files using content provider?
>
> https://github.com/commonsguy/cw-advandroid/tree/master/ContentProvid...
>
> That project demonstrates a small content provider, serving files from
> getFilesDir(). In this sample, it serves them to a WebView, but the
> same concept applies.
>
> > I just realised that openFileOutput works but I am trying to change
> > the permission of already existing file.and It is not directly under
> > files,its under files/folder/filename.ppt..Any Ideas on how I could
> > change this permission under subdirectory?
>
> I do not recall seeing an option for changing permissions on an
> existing file, sorry.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC:http://marakana.com/training/android/

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



--
Dianne Hackborn
Android framework engineer
hackbod@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

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

No comments:

Post a Comment