mardi 8 mars 2016

How do I dynamically add tables in android sqlite?

After hours searching through almost every code related website and still not having found a solution I finally ask my question here and hope for an answer (or many).

I am creating an android app that gets messages sent from a server. Different clients can emit those messages and my app should be able to

  1. (first create) check if there is already a user specific table in db
  2. if not create one (or more over time) dynamically

So my question more precicely is how I can create new tables over time whenever a so far unknown user sends data. I do not want the tables to be predefined in my dbhelper class but rather have them dynamically built.

Aucun commentaire:

Enregistrer un commentaire