java - Find Activity by name using reflection if the Activity is in a subpackage -


I use this method to execute according to their names:

  Public void startAct (String Activity Name) {try {class  

This method works fine if all the activity is at the same package level of activity where I wrote this method Example code com.myapp Uk .... if the activity is in a subpackage like com.myapp.uk.group1 seems unable to start activity ... There is also a way to fix the way to do the work if activity has many other subpackages in com.myapp.uk.group1 com.myapp.uk.group2 Com.myapp.uk.group3 etc.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -