vendredi 14 juin 2019

Launcher activity in android , is it implementation of Factory method design pattern

Android has mechanism to register its activities in its manifest file. Once registered then the activity can be launched by the APIs such as startActivity() defined in Activity.java ( there are similar other activities).

Each application may have a separate launcher activity.

Is it the factory method implementation where framework does not know the subclass of Activity to be launched as an launcher activity as it is specific to the application ?

Aucun commentaire:

Enregistrer un commentaire