Re: [android-developers] Re: Import/Export data file

2011-04-01 Thread Marcin Orlowski
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 Orlowski

*Tray Agenda * - keep you daily schedule handy...
WebnetMobile on *Facebook * and
*Twitter
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Import/Export data file

2011-03-30 Thread Kostya Vasilyev

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 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Import/Export data file

2011-03-30 Thread Kostya Vasilyev
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 ;),
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  wrote:

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#file...

-- Kostya










operations, where to copy and where to past :\ !
Thank you for your help.
On 30 mar, 17:26, Marcin Orlowskiwrote:

On 30 March 2011 18:19, Alaeddine Ghribiwrote:

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#ge...
Regards,
Marcin Orlowski
*Tray Agenda* - keep you daily schedule handy...
WebnetMobile on *Facebook* and
*Twitter
*

--
Kostya Vasilyev --http://kmansoft.wordpress.com



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Import/Export data file

2011-03-30 Thread Kostya Vasilyev

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 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 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#ge...http://www.google.pl/search?q=how+to+copy+files+java

Regards,
Marcin Orlowski

*Tray Agenda* - keep you daily schedule handy...
WebnetMobile on *Facebook* and
*Twitter
*



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Import/Export data file

2011-03-30 Thread Mark Murphy
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
outside of Android first. Here is a blog post with a list of Java
topics that Android developers need to know before getting into
Android:

http://commonsware.com/blog/2010/08/02/java-good-parts-version.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Import/Export data file

2011-03-30 Thread Marcin Orlowski
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://www.google.pl/search?q=how+to+copy+files+java

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
WebnetMobile on *Facebook * and
*Twitter
*

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en