Why have i to open the file? I just want to copy it to the SDCARD !
I searched in the java/android docs and i don't find a method that can
return the right path to the file in the /data/data...



2011/4/4 Kristopher Micinski <[email protected]>

> Your question doesn't make any sense, is it that the file can't be
> opened that you need help with? You can stop the debugger when you get
> the error and read the message that it reports. Typically it might be
> something like the file doesn't exist or that you don't have
> permission to open it. Did you do this previously? But your response
> still isn't what TreKing mentioned, he said just use the Standard
> Methods to open your file...
>
> Kris
>
> On Mon, Apr 4, 2011 at 2:55 PM, Alaeddine Ghribi
> <[email protected]> wrote:
> > So all this lines are false, they are not correct, all the problem come
> from
> > this lines?
> > File sdCard = Environment.getExternalStorageDirectory();
> > File dir = new File (sdCard.getAbsolutePath() + "/Carburant/");
> > dir.mkdirs();
> > copyfile(context,nom,sdCard.getAbsolutePath() +
> > "/Carburant/storeddata.dat");
> > With this code, the compiler can not "take" the file from /data/data..
> and
> > copy it to the SDCARD/carburant ?
> > They are other functions/methods to use ?
> > That's it ?
> > Thank you :).
> > 2011/4/4 TreKing <[email protected]>
> >>
> >> On Mon, Apr 4, 2011 at 10:54 AM, Alaeddine Ghribi
> >> <[email protected]> wrote:
> >>>
> >>> All the informations are here i guess! But there is not an example
> >>
> >> You don't need an Android example. This is all standard Java IO. AGAIN:
> >> Google "Java IO". Use the Android docs to get File objects to the right
> >> directories, then use STANDARD JAVA IO to do what you need on those
> STANDARD
> >> FILE objects.
> >>
> >>
> >>
> -------------------------------------------------------------------------------------------------
> >> TreKing - Chicago transit tracking app for Android-powered devices
> >>
> >
> > --
> > 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
>
> --
> 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
>

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