sqlite sample sd-card

by hermann » Sat, 27 Mar 2010 04:55:37 GMT


Sponsored Links
 hi there....

i looking for small sample how to access a sqlite db on sd-card.
can anybody help with a small snipet ?

cu
hermann

--



sqlite sample sd-card

by Alessandro Pellizzari » Sun, 28 Mar 2010 13:44:25 GMT


 Il giorno mar, 23/03/2010 alle 04.38 -0700, hermann ha scritto:


File sdcard = Environment.getExternalStorageDirectory();

File dbfile = sdcard.getAbsolutePath() + File.separator + "dbname.sql";

SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbfile, null);


it is a good practice to NOT put your DBs on the sdcard root, so please
create a directory for your software.

Bye.


--


Sponsored Links


sqlite sample sd-card

by hermann » Sun, 28 Mar 2010 16:31:31 GMT


 hi alessandro....

works fine for me.... thx for the snipet

cu
hermann

--



Other Threads

1. How to do file handling in android

Please let me know how to do file handling in Android. Some sample
code will be of great use to me.

Thanking in advance,

Naveen
--~--~---------~--~----~------------~-------~--~----~

2. AlertDialog Existence Check

how can I check if alerdialog has been shown on the screen i mean

i just want to do that if alertdialog is already shown then i don
want to show it again ?



--~--~---------~--~----~------------~-------~--~----~

3. Experiencing android sdk m5-rc15: terrible DNS resolution provoking network errors :(

4. Bug in date picker?

5. Edit Text Max Limit charactars

6. android SDK not working on Fedora 7

7. Scrolling speed in ScrollView