[arquillian-issues] [JBoss JIRA] (ARQ-1548) Be able to start parent activity of specified one for Droidium native

Stefan Miklosovic (JIRA) jira-events at lists.jboss.org
Thu Oct 24 04:48:02 EDT 2013


     [ https://issues.jboss.org/browse/ARQ-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Miklosovic updated ARQ-1548:
-----------------------------------

    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:
{code}
ActivityManager manager = android.getActivityManagerProvider().getActivityManager();
String parentOfHome = manager.getParentOf("HomeScreenActivity");
manager.startActivity(parentOfHome);
{code}

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

{code}
ActivityManager manager = android.getActivityManagerProvider().getActivityManager();
List<String> childrenActivities = manager.getChildrenOf("HomeScreenActivity");
manager.startActivity(childrenActivities.get(2)); // or whatever
{code}

  was:
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:
{code}
ActivityManager manager = android.getActivityManagerProvider().getActivityManager();
String parentOfHome = manager.getParentOf("HomeScreenActivity");
manager.startActivity(parentOfHome);
{code}

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.


    
> Be able to start parent activity of specified one for Droidium native
> ---------------------------------------------------------------------
>
>                 Key: ARQ-1548
>                 URL: https://issues.jboss.org/browse/ARQ-1548
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Droidium
>    Affects Versions: droidium_1.0.0.Alpha2
>            Reporter: Stefan Miklosovic
>            Priority: Optional
>
> 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:
> {code}
> ActivityManager manager = android.getActivityManagerProvider().getActivityManager();
> String parentOfHome = manager.getParentOf("HomeScreenActivity");
> manager.startActivity(parentOfHome);
> {code}
> 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
> {code}
> ActivityManager manager = android.getActivityManagerProvider().getActivityManager();
> List<String> childrenActivities = manager.getChildrenOf("HomeScreenActivity");
> manager.startActivity(childrenActivities.get(2)); // or whatever
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list