Is there a way to update a database when installing/upgrading an app?

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-03-27T15:03:14Z Indexed on 2010/03/27 15:13 UTC
Read the original article Hit count: 144

Filed under:
|
|

I have a main application, and a bunch of sub-applications (they are separate apps, which do not appear on the android home dashboard). I was planning on having a SQLite DB which the main app maintains, and get a list of available sub-apps from. Is there a way to update this main database as the user installs the sub-apps?

Two alternative I was thinking of include:

  1. User installs the sub-apps via the main app, which would then update the DB.

  2. Rather than use the DB to find all installed sub-apps, have each sub-app declare a category, and use intents to query for all applications which match that query (is this even possible? if so, advice is welcomed).

Thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk