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. RTSP Video Performance

I'm streaming video via RTSP to Android, using an RTP container, x264
video, and mp4a audio. I've been using 96kbps audio, 384 kbps video,
and 480x270 resolution. I'm playing the video back in a standard
VideoView (I'm pointing the player at the rtsp sdp).

On my test system (a Droid 2), I find that the video is somewhat
jerky? Is there a better way to be doing this? It seems like the video
playback should be hardware accelerated, considering that I'm using
standard video and audio formats. Is there some sort of problem with
the performance of RTP streams?

Thanks for any help or suggestions.

-- 

2. Protecting Apps - listening for application launches

Is there a way to listen for application launches?

I'm trying to develop an application where the user can specify a list
of applications that he/she wants to "protect." If they are in this
list, then whenever the application is launched, my app will ask them
to enter a password.

However, I've been going through the Android SDK for days and can't
figure out how to listen for application launches. Can someone point
me in the right direction? Thanks!

-- 

3. BatteryStatsImpl issue

4. How to restart application.

5. The specific package does not exist while running Android CTS 2.2

6. Android CTS 2.2 execution stops at android.code.tests.security

7. SPI Sharing