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. rating bar padding problem

Hi

I have noticed that if I add some padding to the rating bar (small) it
will shift the bar but the star on the right will be truncated (e.g.
if I add 5px padding from left or right the right most star will be
missing 5 pixels)

Is there something I am missing, or is this a SDK bug ?

regards
--~--~---------~--~----~------------~-------~--~----~

2. How to update Android Dev 1

Hi,

* where can I find official firmware for my android dev 1?
* what is the official way to update the firmware?
* does such a firmware update have negative side effects? which one?

So far I found only unofficial images for t-mobile g1,
and update methods using some root hack, neither is what I want.

I'm fine if flashing the firmware resets all settings and deletes
all applications I installed, but knowing what it will do exactly
would be very helpfull. I hope that firmware updates will always
keep the phone unlocked? (I'm not using t-mobile and don't want
to be forced into that...)

Thanks for your help!

Regards, Andreas

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

3. R not re-generating in Eclipse after rename of the package

4. help with contacts

5. Apple's 90 day App Store refund

6. supporting WVGA

7. When save image, how to specify image name?