I have some Android Modules which all depend on the same Library Module, for business logic.
com.example.api
-> com.example.app1
-> com.example.app2
-> com.example.app3
Now, I try to get the current MainActivity
(android.intent.action.MAIN
) from the library. Without specifying the wanted activity while calling the action, I get the IntentPicker for all the devices Apps, which have the MAIN
action in it.
How do I get the classpath of my current MainActivity
?
i.e. com.example.app1.MainActivity