Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1548

Be able to start parent activity of specified one for Droidium native

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Optional
    • None
    • droidium_1.0.0.Alpha2
    • Extension - Droidium
    • 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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            smikloso Stefan Miklosovic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: