Prefill databases

by Jaap » Sat, 10 Jul 2010 04:10:39 GMT


Sponsored Links
 Hi,

I have a program that needs a fixed database to do lookups of some
data. Is there a way to easily fill such a database by just putting
the data in a file or so

Thanks

Jaap

--



Prefill databases

by TreKing » Sat, 10 Jul 2010 06:00:07 GMT


 



Yes, just create the database you need, populate it, and include in your
app. What's the problem?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--


Sponsored Links


Prefill databases

by vineet » Sat, 10 Jul 2010 17:07:32 GMT


Prefill databases

by Jaap » Mon, 19 Jul 2010 05:04:21 GMT


 Hi the link you provided does not work. Can you provide the right link
please?

Thanks

Jaap





--



Prefill databases

by DanH » Mon, 19 Jul 2010 10:08:01 GMT


 Again, I say, what's your problem -- do you need to know how to fill
the database, or how to include it in your app?

A SQLite database consists of a single file on the PC or phone, and is
portable between them, so you can use any of a dozen methods to fill
the database file and then install it with your app.




--



Prefill databases

by Jaap » Mon, 19 Jul 2010 14:09:15 GMT


 OK, but where do I need put it in the package?






--



Prefill databases

by Naseer » Mon, 19 Jul 2010 14:46:51 GMT


 Create an assets directory and put it there.
Here is a nice tutorial that explains it -
 http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ 

-Naseer








--



Other Threads

1. Two listviews scrolling in lockstep

I have two narrow, equally sized listviews side by side. I chose that design 
specifically because it's not a lot of information and I can show most of 
the contents in one screen full (together both lists have 22 items)

As it is now, each list is scrolling independently. It's ok-ish but I would 
like to scroll them at the same time, no matter which of the two lists I 
touch.

Telling a list to scroll to a particular pixel (or dp?) position is easy - 
smoothScrollTo(x,y).  
http://developer.android.com/reference/android/widget/ScrollView.html#smoothScrollTo%28int,%20int%29

However I have a hard time to find out the current scroll position of a list 
view (in particular the y value). Can you please suggest where to look? 

-- 

2. [WTS] Htc Thunderbolt Ruim.

Wuih...  sulap!  Pake ruim laen udah dicoba blum?

. Doni .


ini serius, mau jual htc thunderbolt udah ter setting entah gimana,
dimasukin ruim/kartu flexi langsung data call sms lancar.
bisa.

-- 
"

3. LG Optimus 3D Release Date Confirmed: June 6

4. New to Android Need Help

5. Background service interaction - Activity paused

6. Running Instrumentation Test on multiple emulator on desktop.

7. Send CMD12 to terminate the mmc writing request?