Well, you could do that... But alternatively you could set up your database
to allow multiple users.  In general you would do this by creating a users
table and then entries in your other tables would contain a foreign key to
the index of the user it is associated with.


On Tue, Mar 1, 2011 at 12:43 AM, panda <[email protected]> wrote:

> Hi everyone, I am new here.
>
> I am a new android fan. My question is how to switch database during
> the process of application. For example, the notepad application. I
> want to add a login Activity at the very beginning. When someone logs
> in, Usera for instance, the application will choose Usera.db as the
> database. So the application has the ability to choose database file
> automatically.
>
> How to do it? Thanks everyone for help!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to