Hi doubleminus,

Did you resolve this issue? Can you please provide me the solution. I
am stuck with this issue.

Thanks,
Android user



On Aug 17, 7:15 am, Dany BREARD <[email protected]> wrote:
> Hi
>
> I have the same issue but I can't change my /sdcard permission.
>
> I have windows xp, I try to change /sdcard  permission as this url:
>
> http://www.vulgarisation-informatique.com/droits-acces.php
>
> but permission don't change.
>
> please help me how can I change this permisson in windows xp ?
>
> It's look like:
>
> +data        permissions : drwxrwx--x
> +sdcard    permissions : d---------"
> +system   permissions : drwxr-xr-
>
> On Jul 18, 4:40 am, ekwang <[email protected]> wrote:
>
>
>
> > You can use ddms tool for verify whether sdcard was inserted or not.
>
> > #android-sdk-windows-1.5_r2\tools\ddms
> > select Device -FileExplore
>
> > below is correct permissions value.
>
> > +data       permissions : drwxrwx--x
> > +sdcard    permissions : drwxrwxrwx
> > +system   permissions : drwxr-xr-x
>
> > If sdcard permissions was look "d---------"
> > It means sdcard is not inserted.
>
> > On Jul 18, 7:24 am, doubleminus <[email protected]> wrote:
>
> > > Is it a permissions issue?  Trying to "touch" the sdcard via adb shell
> > > gives me a "permissiondenied" message...
>
> > > On Jul 16, 10:49 pm, doubleminus <[email protected]> wrote:
>
> > > > Right now, file_name is just set to "12880"+"-"+po_number.getText
> > > > ().toString();
>
> > > > When I put "/sdcard/" (or "sdcard/" into myfilepath I get
> > > > IOException: Parent directory offiledoes not exist: /sdcard/sdcard/
> > > > 12880-231
>
> > > > If I get rid of the sdcard/ prefix, I get this exception:
> > > > FileNotFoundException: /data/data/com.heroku.blacksky/files/12880-222
>
> > > > Here's the newfilecreation code, based on everyone's suggestions:
> > > >  file1 = newFile(Environment.getExternalStorageDirectory(),
> > > > file_name);
> > > >           file1.createNewFile();
> > > >           file_out =  new FileOutputStream(file1);
> > > >           buf = new BufferedOutputStream(file_out);
> > > >           out_stream = new OutputStreamWriter(buf);
>
> > > > Please let me know your thoughts. I'm still quite confused by this.
>
> > > > double
>
> > > > On Jul 16, 12:12 am, Kaj Bjurman <[email protected]> wrote:
>
> > > > > I can't see that you are using file1 after that line. You are using
> > > > > file_name.
>
> > > > > On 14 Juli, 18:09, doubleminus <[email protected]> wrote:
>
> > > > > > Isn't that what the first lines of code do?
>
> > > > > >Filefile1 = newFile(Environment.getExternalStorageDirectory(),
> > > > > > file_name);
>
> > > > > > On Jul 13, 3:02 pm, Streets Of Boston <[email protected]> 
> > > > > > wrote:
>
> > > > > > > Simple. :-)
> > > > > > > The error says that thefiledoes not exist... that means you should
> > > > > > > create it.
> > > > > > > UseFile#createNewFile().
>
> > > > > > > On Jul 13, 5:53 pm, doubleminus <[email protected]> wrote:
>
> > > > > > > > Romain is?  I don't understand. Is there something I should be 
> > > > > > > > doing
> > > > > > > > to avoid filenotfound exception?
>
> > > > > > > > On Jul 13, 12:40 am, 郑伟 <[email protected]> wrote:
>
> > > > > > > > > You are right...
>
> > > > > > > > > > Date: Sun, 12 Jul 2009 21:29:28 -0700
> > > > > > > > > > Subject: [android-developers] Re:Unabletowritetextfileto 
> > > > > > > > > > sdcard on  physical G1 device
> > > > > > > > > > From: [email protected]
> > > > > > > > > > To: [email protected]
>
> > > > > > > > > > Hi,
>
> > > > > > > > > > Instead of:
>
> > > > > > > > > > > FileOutputStream file_out = openFileOutput
> > > > > > > > > > > (file_name,MODE_WORLD_READABLE);
>
> > > > > > > > > > Just use:
>
> > > > > > > > > > FileOutputStream file_out = new FileOutputStream(file_name);
>
> > > > > > > > > > This should work.
>
> > > > > > > > > > On Sun, Jul 12, 2009 at 8:10 PM, 
> > > > > > > > > > doubleminus<[email protected]> wrote:
>
> > > > > > > > > > > I need towritea fairly simple .csvfileto the device's 
> > > > > > > > > > > sdcard (so
> > > > > > > > > > > it can then be emailed via Intent). The below code does 
> > > > > > > > > > > notwritethe
> > > > > > > > > > >file.
>
> > > > > > > > > > >Filefile1 = 
> > > > > > > > > > >newFile(Environment.getExternalStorageDirectory(),
> > > > > > > > > > > file_name);
> > > > > > > > > > > FileOutputStream file_out = openFileOutput
> > > > > > > > > > > (file_name,MODE_WORLD_READABLE);
> > > > > > > > > > > BufferedOutputStream buf = new 
> > > > > > > > > > > BufferedOutputStream(file_out);
> > > > > > > > > > > OutputStreamWriter out_stream = new 
> > > > > > > > > > > OutputStreamWriter(buf);
>
> > > > > > > > > > >          //writefields in first row of spreadsheet then a 
> > > > > > > > > > > new line
> > > > > > > > > > >          for (int i = 0; i < FIELDS.length; i++)
> > > > > > > > > > >          {
> > > > > > > > > > >             if (i != FIELDS.length - 1)
> > > > > > > > > > >                out_stream.write(FIELDS[i] + ",");
> > > > > > > > > > >             else
> > > > > > > > > > >                out_stream.write(FIELDS[i]);
> > > > > > > > > > >          }
>
> > > > > > > > > > >          out_stream.write("\n");
>
> > > > > > > > > > > // more code here
>
> > > > > > > > > > > I flush and close out_stream. I can even seem to be able 
> > > > > > > > > > > to read from
> > > > > > > > > > > thefileon the device (printing above output, using 
> > > > > > > > > > > fileinputstream,
> > > > > > > > > > > to an edittext.
>
> > > > > > > > > > > How can I get to thisfileon the sdcard?
>
> > > > > > > > > > > Thanks!
>
> > > > > > > > > > > double
>
> > > > > > > > > > --
> > > > > > > > > > Romain Guy
> > > > > > > > > > Android framework engineer
> > > > > > > > > > [email protected]
>
> > > > > > > > > > Note: please don't send private questions to me, as I don't 
> > > > > > > > > > have time
> > > > > > > > > > to provide private support.  All such questions should be 
> > > > > > > > > > posted on
> > > > > > > > > > public forums, where I and others can see and answer them
>
> > > > > > > > > _________________________________________________________________
> > > > > > > > > MSN 
> > > > > > > > > 表情魔法书,改变你的对话时代!http://im.live.cn/emoticons/-Hidequotedtext-
>
> > > > > > > > - Show quotedtext-- Hide quotedtext-
>
> > > - Show quotedtext-- Hide quotedtext-
>
> - Show quotedtext-
--~--~---------~--~----~------------~-------~--~----~
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