I've only read a little bit about the DB.. is it possible to create/store on
on the SD card? If we're limited to 24MB ram, 16MB on older devices, does
that restrict the amount of data a DB can store as well? Seems it should be
possible to put the DB on the SD card.

On Wed, Jan 6, 2010 at 11:56 PM, Nithin <nithin.war...@gmail.com> wrote:

>
> > Firstly, is it possible to implement composite keys?
>
> Yes, its possible.
>
> Can do something like this,
>
> CREATE *TABLE* example1(
>      field1 text not null,
>      field2 text not null,
>      *PRIMARY* *KEY*(field1, field2)
>   );
>
>
> > And secondly, how can I load a pre-created database onto an Android
> > device efficiently?
>
> Database will be loaded, when you load the apk into the deveice. All
> the resource, that application has (like files, database etc.) will be
> bundled in the .apk file. And moreover, Database is private to the
> application in Android.
>
> Nithin
>
>
>
> On Jan 4, 7:44 pm, verb <verb_se...@hotmail.com> wrote:
> > I'm currently doing a project which requires a potentially large
> > underlying relational database, and have a couple of queries on how to
> > implement this in Android.
> >
> > Firstly, is it possible to implement composite keys? I have seen
> > methods which suggest that all primary keys in a database must be
> > called '_id' for Android to recognise them, but cannot find anything
> > on if there is more than one key in a table.
> >
> > And secondly, how can I load a pre-created database onto an Android
> > device efficiently? It will only need to be added once on
> > installation, but potentially be updated or have individual entries
> > added by the user.
> >
> > I am currently implementing in API Level 4 (Android 1.6).
> >
> > Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to