• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Mother app calling her children apps

Baboo

Lurker
Not parent control related.

What I want my app to do:

The mother app will display a menu list of her children apps which when selected will display information and start the child app. I'm unsure how my mother app is made aware of her children apps as new ones arrive and old ones leave. I should also mention that the mother app is required to run the children apps and that children apps are obtained through the mother app which allows connection to my website (database).


My thoughts on how to accomplish this:

A) Each child app will have a defined package name such as "com.example.xxxxxx", where xxxx is different for each child app.

The mother app will use PackageManager to retrieve package names of all installed apps. These will be placed into a database. Then, the database is filtered for my children app package names by creating columns where the columns are made as: one for "com.", second for "example.", and third is no concern as this will be different for each child app.

The remaining names in the database are called by Fragment class to display the child app information (pics, text) as well as a "Play" button which will start the child app activity through an Intent.

OR

B) Child apps are tuned to reply to a specific call that the mother app makes out to all apps. They reply with their information which is then displayed by Fragment class.

OR

C) Fragment will get the job done.

There's probably a lot of ways to do this but I'm new and don't want to waste time going down a dead-end. I also want to learn best practices now rather than later if I can help it.

Baboo
 
Back
Top Bottom