Question

How to monitor intends produced inside activity in ActivityTestCase? I need to get all intends produced by activity and assert on their data Thanks

Was it helpful?

Solution

An activity can have only one intent

You can get that intent using getIntent() method

Thanks Deepak

OTHER TIPS

use this code

Intent intent=context.getIntent();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top