Is there any way, how to get list of all activities in running app?
I have tried:
ActivityInfo[] list = getPackageManager().getPackageArchiveInfo(
@CommonsWare had the proper fix. The only thing I want to add for the solution (and would have just commented but you can't format comments properly) is that you don't need to hardcode your package name.
This solution should work:
ActivityInfo[] list = getPackageManager().getPackageInfo(getPackageName()).activities;