QSL4A Documentation of
launch <QSL4A API Menu>launch(classname=None,packagename=None,wait=True)
Start activity with the given classname and/or packagename .
If classname is packagename.sub0, packagename can be omitted,
if classname is packagename.sub1.sub2.…, packagename must be specified,
if classname is omitted, packagename must be specified .
classname (String Optional)
packagename (String Optional)
wait (Boolean Optional) wait for the launched application operation end
Example of launch (using WeChat as an example) :
from androidhelper import Android
droid = Android()
#The following three lines of code have the same effect, just select one line
droid.launch('com.tencent.mm.ui.LauncherUI') #Only className
droid.launch(packageName = 'com.tencent.mm') #Only packageName
droid.launch("com.tencent.mm.ui.LauncherUI", "com.tencent.mm") #className and packageName