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. android livecd

hi,everyone.
Base on android OS eee_701 port,i maked a android livecd.
now you can try it in http://code.google.com/p/live-android/.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Showing travel path which will mach the real road on map.

In the application gps points(lat, lon) are collected while device is
moving.
I am showing them  as travel path on map with overlays.

" Now the problem is when showing the path between the two points
which are at two road cross, it does not show path exactly on road, if
the distance between two point is large even inaccurate path comes,
not exactly comes on real road."
  What is solution for this since navigation package "googlenav" has
been deprecated since sdk .9. Which might have been solution for this.

 Is there any way to overcome this issue. Showing travel path which
will mach the real road on map.

Thank you
--~--~---------~--~----~------------~-------~--~----~

3. How to make second DDMS work on the PC which already running a DDMS?

4. Removing the default interpolator for xml based animation effects for views

5. Android 2d Shooter Game AirAttack Follow My Blog!

6. Unable to receive intent on sending SMS

7. startActivity from subclass - strange problem