And how to do it if i want tp copy a file from /data/data/android/
android.dat to a directory "android" in the SDCARD ?
Thanks :).
On 1 avr, 12:10, Marcin Orlowski wrote:
> On 1 April 2011 12:32, Alaeddine Ghribi wrote:
>
> > For storing a picture, here is the code:
> > File file = new File(getE
On 1 April 2011 12:32, Alaeddine Ghribi wrote:
> For storing a picture, here is the code:
> File file = new File(getExternalFilesDir(null), "DemoFile.jpg");
>
For pictures I'd rather use:
File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES);
to get the right path
Regards,
Marcin O
For storing a picture, here is the code:
File file = new File(getExternalFilesDir(null), "DemoFile.jpg");
For storing the data file from /data/data:
File file = new File(getExternalFilesDir("/data/data."),
"storedfile");
Is that true ?
On 1 avr, 02:03, Alaeddine Ghribi wrote:
> I assembl
I assembled some codes to have this example: IS THAT TRUE ?
boolean mExternalStorageAvailable = false;
boolean mExternalStorageWriteable = false;
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
// We can read
30.03.2011 22:00, Alaeddine Ghribi пишет:
Ah okay i think that i understand the point now !
1st link: how to copy two file.
2nd link: where to copy it.
That's it ?
That's right!
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the
Ah okay i think that i understand the point now !
1st link: how to copy two file.
2nd link: where to copy it.
That's it ?
On 30 mar, 18:46, Kostya Vasilyev wrote:
> The link you posted explains how to copy a file from one location to
> another.
>
> The link to developer.android.com explains wher
...But what is the line that refers to the location of the saved file
in the posted link(code) :\ ?
I think that it just copy a file, but where saving it ? :\(confuse :
( )
Thank you.
On 30 mar, 18:46, Kostya Vasilyev wrote:
> The link you posted explains how to copy a file from one location to
>
The link you posted explains how to copy a file from one location to
another.
The link to developer.android.com explains where to copy the file to, as
well as some other points.
You just need to combine those two :)
-- Kostya
30.03.2011 21:41, Alaeddine Ghribi пишет:
Always here M.Kostya ;
Always here M.Kostya ;),
Anyway, this guide shows how to store the saved file in the SDCARD?
With the choose of the storage location ? And the import location ?
And no need to see this code?
http://www.roseindia.net/java/beginners/CopyFile.shtml
Thank you.
On 30 mar, 17:49, Kostya Vasilyev wro
30.03.2011 20:31, Alaeddine Ghribi пишет:
This one is perfect:
http://www.roseindia.net/java/beginners/CopyFile.shtml
I just don't know how to specify the location of the import/export
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal
-- Kostya
operations, where
This one is perfect:
http://www.roseindia.net/java/beginners/CopyFile.shtml
I just don't know how to specify the location of the import/export
operations, where to copy and where to past :\ !
Thank you for your help.
On 30 mar, 17:26, Marcin Orlowski wrote:
> On 30 March 2011 18:19, Alaeddine Ghr
This one is perfect:
http://www.roseindia.net/java/beginners/CopyFile.shtml
I just don't know how to specify the location of the import/export
operations, where to copy and where to past :\ !
Thank you for your help.
On 30 mar, 17:26, Marcin Orlowski wrote:
> On 30 March 2011 18:19, Alaeddine Ghr
On Wed, Mar 30, 2011 at 12:19 PM, Alaeddine Ghribi
wrote:
> Yes, i'm just using a file to store data, but how can i copy the file
> in data/data/. to the SDCARD? How doing it in JAVA/Android ?
Standard Java file I/O.
If you are new to Java, I recommend spending some time learning Java
outsid
Thank for your answer, and i know how to use io files.
But i'm asking how to specify the location of the file in import and
export operations ?
On 30 mar, 17:22, Mark Murphy wrote:
> On Wed, Mar 30, 2011 at 12:19 PM, Alaeddine Ghribi
>
> wrote:
> > Yes, i'm just using a file to store data, but h
On 30 March 2011 18:19, Alaeddine Ghribi wrote:
> Yes, i'm just using a file to store data, but how can i copy the file
> in data/data/. to the SDCARD? How doing it in JAVA/Android ?
>
http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory%28%29
http:/
Yes, i'm just using a file to store data, but how can i copy the file
in data/data/. to the SDCARD? How doing it in JAVA/Android ?
On 30 mar, 17:08, Marcin Orlowski wrote:
> On 30 March 2011 16:57, Alaeddine Ghribi wrote:
>
> > Hi,
> > I built an app that calculates fuel consumption, my data
I thinked about this function, i just copy the file in a directory in
the SDCARD and then to import just copy the file to /data/data/...
But how doing it ?
Thanks.
On 30 mar, 17:08, Marcin Orlowski wrote:
> On 30 March 2011 16:57, Alaeddine Ghribi wrote:
>
> > Hi,
> > I built an app that cal
17 matches
Mail list logo