Detect when an app has finished playing an advert.

Post your questions and help other users.

Moderator: Martin

Post Reply
robchoc
Posts: 81
Joined: 20 Jun 2018 12:38

Detect when an app has finished playing an advert.

Post by robchoc » 13 Nov 2018 18:05

Is it possible to detect when an app has finished playing an advert so that I can then exit it, using an automation script?

If I exit it too early I will lose points and too late and I'm wasting precious time.

Thanks

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Detect when an app has finished playing an advert.

Post by Martin » 13 Nov 2018 20:05

There's no official way. Check if trigger UI Event can detect the events (see button Recent events) and then use Control UI to simulate the required taps to close the advert.

Regards,
Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Detect when an app has finished playing an advert.

Post by Desmanto » 15 Nov 2018 18:44

The other way is using Control UI with looped sleep as explained before. Loop the script, waiting for certain elements to appear before proceed on clicking it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
beelze
Posts: 46
Joined: 04 Nov 2018 16:45

Re: Detect when an app has finished playing an advert.

Post by beelze » 15 Nov 2018 20:27

Just reading the post...

But if there aren't any elements, only graphics? It would be very helpful to have an ability to [fuzzy] «search image withing image». E.g. load bitmap from file and search it on the screen :-)

Post Reply