Details
-
Feature Request
-
Resolution: Unresolved
-
Optional
-
None
-
droidium_1.0.0.Alpha2
-
None
Description
Given:
I have activities which can be started via activity manager.
When:
I want to start some activity
Expect:
I can get the activity as string which is the parent of the specified one
Example:
ActivityManager manager = android.getActivityManagerProvider().getActivityManager(); String parentOfHome = manager.getParentOf("HomeScreenActivity"); manager.startActivity(parentOfHome);
Not every activity has its parent since the information about the parentship is parsed from aapt dump xmltree, in case there is not any parent activity found, return null or throw NotParentActivityFound runtime exception.
This could be also done other way around, when I have this information, I also know if some activity has some children
ActivityManager manager = android.getActivityManagerProvider().getActivityManager(); List<String> childrenActivities = manager.getChildrenOf("HomeScreenActivity"); manager.startActivity(childrenActivities.get(2)); // or whatever