Simulate Resolving and intent:#Intent Uri for Android Testing -
i have launched app chrome on android using intent uri (see make link in android browser start app?) , automate testing generator wrote create launchable intent uris pass different parameters extras browsable activity.
but how test this? figured essentially:
- run generator huge intent uri string tons of parameters:
"intent:#intent:component=some/activity;param1=value;param2=value2;...;end"
- construct intent in test string:
intent.parseuri(generatoroutput,uri_intent_scheme);
- , find extras:
intent.getextras().keyset();
but getextras returns null, means
intent.parsefrom(originalintent.geturi(uri_intent_scheme), uri_intent_scheme) != originalintent
does know if there way construct intent intent uri , extras populated. functionality available in android since android this.
Comments
Post a Comment