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. mono on android

Anyone got any information on the mono download on the app market?  It
listed a homepage that is tough to recall and enter on this g1.
Googling for android mono led to a good but closed thread in this
group.

Oddly the user's are commenting that he giant size of the mono app
forces some cleanup code, reduces the size of market and leads to thei
phone running better.

On that note, has someone written a max file client apk to test other
apps behavior in cramped external or sd storage?
--~--~---------~--~----~------------~-------~--~----~

2. Hypotheses for why I can't find a ContentProvider

I'd recommend putting the full class name (including the full package
name) in the android:name attribute. I don't know if that's it, but it
can't hurt.

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

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

3. Transferring a file between emulator instances

4. access OpenCORE MMFW from my native c code

5. Emulator Browser gives error "secure connection could not be established"

6. K9mail-errors

7. error in creating account on email client