Disabling first-run greeter on fresh android emulator -


i writing test requires launching application directly launcher. because can't emulate correctly launching through intent.

the problem when running test on fresh emulator (i using travis ci, can reproduced on home pc) emulator starts "first run" greeter overlay. blocks uiautomator code correctly launching application.

i have tried add code close greeter unfortunately can appear delay, when "greeter detecting , closing" code has stopped working thinking coast clear.

is there guaranteed way disable greeter? preference maybe or example of code reliably kill greeter.

have tried using packagemanager.getlaunchintentforpackage(..)? allow send same intent launcher uses start app. should equivalent clicking on application's launcher icon.

if need go through launcher, can use uiwatcher dismiss first-run overlay. whenever uiautomator can't find element, call checkforcondition(..) method each registered uiwatcher , give chance dismiss overlays or dialogs getting in way.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -