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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -