Created
January 31, 2020 02:30
-
-
Save riverfor/fd1601c4fddddc2a42e520b652f4def7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*-coding:utf8;-*- | |
import androidhelper | |
droid = androidhelper.Android() | |
apps = droid.getLaunchableApplications().result | |
print(apps) | |
running_packages = droid.getRunningPackages().result | |
print(running_packages) | |
run_app = droid.launch("org.qpython.qpy3.OAboutActivity").result | |
print(run_app) | |
stop_app = droid.forceStopPackage(running_packages[0]).result | |
print(stop_app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment