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
#qpy:quiet | |
#-*-coding:utf8;-*- | |
""" | |
This is a sample project which use SL4A UI Framework, | |
There is another Sample project: https://github.com/qpython-android/qpy-calcount | |
""" | |
import qpy | |
import androidhelper | |
import urllib.request as ur | |
from qsl4ahelper.fullscreenwrapper2 import * |
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 as android | |
droid = android.Android() | |
print(droid.executeQPy(qpy.home+"/scripts3/speak.py").result) |
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 time | |
import androidhelper as android | |
droid = android.Android() | |
print(droid.prefGetAll().result) |
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 time | |
import androidhelper as android | |
droid = android.Android() | |
print(droid. mediaPlay("http://io.qpython.com.cn/forum/How_it_Began.mp3","test", True).result) | |
time.sleep(30) | |
print(droid.mediaPlayList().result) | |
print(droid.mediaPlayInfo("test").result) | |
droid.mediaPlayClose("test") |
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 time | |
import androidhelper as android | |
droid = android.Android() | |
print(droid.wifiGetConnectionInfo().result) | |
print(droid.checkWifiState().result) | |
print(droid.wifiStartScan().result) | |
print(droid.wifiLockAcquireFull().result) | |
time.sleep(10) | |
print(droid.wifiGetScanResults().result) |
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 androidhelper as android | |
droid = android.Android() | |
print(droid.wakeLockAcquireFull().result) | |
print(droid.wakeLockRelease().result) | |
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 androidhelper as android | |
droid = android.Android() | |
print(droid.generateDtmfTones("18611588888").result) |
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: utf-8 -*- | |
import androidhelper | |
import time | |
import qpy | |
droid = androidhelper.Android() | |
while True: | |
say = droid.recognizeSpeech(None, None, "test") | |
with open(qpy.tmp+"/hello.txt","a") as obj: | |
if say.result: |
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() | |
print(droid.getScreenTimeout().result) | |
droid.setScreenTimeout(20) | |
print(droid.getScreenTimeout().result) | |
#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
# -*- coding: utf-8 -*- | |
import androidhelper | |
import time | |
from math import radians | |
droid = androidhelper.Android() | |
droid.startSensingTimed(1, 250) | |
droid.startLocating() | |
i=0 | |
while i<20: | |
gpsdata = droid.readLocation().result |
NewerOlder