jueves, 28 de marzo de 2013

Android programming: FileDialog and Base64

A very common task for all developers is to look for files on disk and then process them (maybe even send them to a server in the Internet)

For this tutorial I'm using the following project (it's included here for download)
https://code.google.com/p/android-file-dialog/

Steps to get all your files into Eclipse:

1) Download both ZIP files. Import into Eclipse as an existing project.
2) Set this project as Android Library.

3) Uncompress AttachFilesDemo.zip and import it like the one before.
4) Define that you will use FileDialog as a library.

Notice that if you use Android 2.1, Base64 is not supported (it was included in 2.2) so here in this tutorial you will find a Base64.java taken from: http://iharder.sourceforge.net/current/index.html

The code is pretty well commented and I hope you can do great applications with it :-)

Download links:
http://www.WalterRodriguez.info/uploads/FileExplorer.zip
http://www.WalterRodriguez.info/uploads/AttachFilesDemo.zip