Hi,

The content works if my file is placed under /data/data/package/
files.but I have a folder inside files like /data/data/package/files/
foldername and it is inside this sub folder that I want to display
files,even content provider shows permission denied.:(

On Nov 5, 9:57 pm, Dianne Hackborn <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]> wrote:
> > > On Fri, Nov 4, 2011 at 2:30 PM, ramya <[email protected]> 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 [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
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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 [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