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
import qpy | |
import time | |
import androidhelper as android | |
droid = android.Android() | |
droid. recorderCaptureVideo(qpy.tmp+"/test.mp4", 20, True) | |
droid.recorderStop() |
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
import qpy | |
import time | |
import androidhelper as android | |
droid = android.Android() | |
droid.recorderStartVideo(qpy.tmp+"/test.mp4", 20, 3) | |
droid.recorderStop() |
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
import qpy | |
import time | |
import androidhelper as android | |
droid = android.Android() | |
droid.recorderStartMicrophone(qpy.tmp+"/test.mp3") | |
time.sleep(10) | |
droid.recorderStop() |
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
from androidhelper import Android | |
droid = Android() | |
droid.startActivity('android.intent.action.MAIN', | |
None, None, None, False, | |
'com.twitter.android', | |
'com.twitter.android.StartActivity' | |
) |
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
from androidhelper import Android | |
import socket | |
from json import loads | |
def parseEvent(line): | |
out = loads(line) | |
out.update(loads(out["data"])) | |
return out | |
####connected via USB |
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
# You should place a html file /sdcard/qpython/cache/test.html first to test | |
import qpy | |
import androidhelper | |
droid = androidhelper.Android() | |
ret = droid.viewHtml(qpy.tmp+"/test.html").result | |
print(ret) |
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
import qpy | |
import androidhelper | |
droid = androidhelper.Android() | |
contact = droid.pickContact().result | |
#ret = droid.pick(contact['data']).result | |
ret = droid.view(contact['data']).result | |
print(ret) |
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
import qpy | |
import androidhelper | |
droid = androidhelper.Android() | |
ret = droid.viewContacts().result | |
print(ret) |
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
import qpy | |
import androidhelper | |
droid = androidhelper.Android() | |
ret = droid.scanBarcode().result | |
print(ret) |
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
import qpy | |
import androidhelper | |
droid = androidhelper.Android() | |
ret = droid. cameraCapturePicture(qpy.tmp+"/test.png").result | |
#ret = droid. cameraInteractiveCapturePicture(qpy.tmp+"/test.png").result | |
print(ret) |