QPython SL4A API Documentation

version 4.0.0.9

Jump to Category:
Communication : Bluetooth | Sms | Phone | Wifi | Other Communication |
Data : Cipher | Document File | Other Data |
Media : Camera | Music Play | Picture or Image | Record or Audio | Other Media |
User Interface : Dialog | Full Screen | Float View | Other UI |
Accessibility | Battery | Event | Sensor | System | Screen | Location | Termux | Intent | USB | Constant | Misc |
 How To Use QSL4A ? 
>>> from androidhelper import Android
>>> droid = Android()
>>> droid.dialogGetInput("Title", "Multi Line\nMessage", "Text")
 # If user input "Hello World"
Result(id=1, result='Hello World', error=None)

Communication

Bluetooth  <Top>

bluetoothAccept
bluetoothActiveConnections
bluetoothConnect
bluetoothDiscoveryCancel
bluetoothDiscoveryStart
bluetoothGetBondedDevices
bluetoothGetBondedDevicesRssi
bluetoothGetConnectedDeviceName
bluetoothGetLocalName
bluetoothGetReceivedDevices
bluetoothGetRemoteDeviceName
bluetoothGetScanMode
bluetoothMakeDiscoverable
bluetoothRead
bluetoothReadBinary
bluetoothReadLine
bluetoothReadReady
bluetoothSetLocalName
bluetoothStop
bluetoothWrite
bluetoothWriteBinary
checkBluetoothState
toggleBluetoothState

Sms  <Top>

smsDeleteMessage
smsGetAttributes
smsGetMessageById
smsGetMessageCount
smsGetMessageIds
smsGetMessages
smsMarkMessageRead
smsSend

Phone  <Top>

checkNetworkRoaming
getAllCellInfo
getAllCellsLocation
getCellLocation
getImei
getMeid
getNetworkOperator
getNetworkOperatorName
getNetworkType
getPhoneType
getSimCountryIso
getSimOperator
getSimOperatorName
getSimSerialNumber
getSimState
getTelephoneSignalStrengthDetail
getTelephoneSignalStrengthLevel
phoneCall
phoneCallNumber
phoneDial
phoneDialNumber
pickPhone
readPhoneState
readSignalStrengths
recorderStartMicrophone
startTrackingPhoneState
startTrackingSignalStrengths
stopTrackingPhoneState
stopTrackingSignalStrengths

Wifi  <Top>

checkWifiState
toggleWifiState
wifiDisconnect
wifiGetApState
wifiGetConnectionInfo
wifiGetScanResults
wifiLockAcquireFull
wifiLockAcquireScanOnly
wifiLockRelease
wifiReassociate
wifiReconnect
wifiStartScan

Other Communication  <Top>

contactsGet
contactsGetAttributes
contactsGetById
contactsGetCount
contactsGetIds
getInternetInterfaceAddress
getVoiceMailAlphaTag
getVoiceMailNumber
pickContact
sendEmail
toggleRingerSilentMode
toggleVibrateMode
viewContacts

  

Data

Cipher  <Top>

cipherInit
decryptBytes
decryptFile
decryptFileToBytes
decryptFileToString
decryptString
encryptBytes
encryptBytesToFile
encryptFile
encryptString
encryptStringToFile

Document File  <Top>

documentFileCopy
documentFileDelete
documentFileExists
documentFileGetStat
documentFileGetUri
documentFileInputStream
documentFileIsDirectory
documentFileIsFile
documentFileLastModified
documentFileLength
documentFileListFile
documentFileListFiles
documentFileListFiles2
documentFileMkdir
documentFileMkdirs
documentFileMoveTo
documentFileOutputStream
documentFileReadFrom
documentFileRenameTo
documentFileShowOpen
documentFileWriteTo
documentTreeListAll
documentTreeRemove
documentTreeRename
documentTreeShowOpen

Other Data  <Top>

ftpGet
ftpIsRunning
ftpSet
ftpStart
ftpStatus
ftpStop
getClipboard
getFileStat
openFile
prefGetAll
prefGetValue
prefPutValue
prefRemoveValue
sendFile
setClipboard
sharedVariableGet
sharedVariableRemove
sharedVariableSet

  

Media

Camera  <Top>

cameraCapturePicture
cameraSetTorchMode
cameraStartPreview
cameraStopPreview
recorderCaptureVideo
takePicture
webcamAdjustQuality
webcamStart
webcamStop

Music Play  <Top>

mediaIsPlaying
mediaPlay
mediaPlayClose
mediaPlayInfo
mediaPlayList
mediaPlayPause
mediaPlaySeek
mediaPlaySetLooping
mediaPlayStart

Picture or Image  <Top>

htmlPictureGetSize
htmlPictureSetSize
imageCompress
imageReaderGetScreenShot
scanBarcodeFromImage

Record or Audio  <Top>

getMaxMediaVolume
getMaxRingerVolume
getMediaVolume
getRingerVolume
recordAudio
recorderPause
recorderResume
recorderSoundVolumeDetect
recorderSoundVolumeGetDb
recorderStart
recorderStartScreenRecord
recorderStop
setMediaVolume
setRingerVolume

Other Media  <Top>

getVibrateMode
takeVideo
ttsIsSpeaking
ttsSpeak
ttsStop
vibrate
videoPlay

  

User Interface

Dialog  <Top>

dialogCreateAlert
dialogCreateDatePicker
dialogCreateHorizontalProgress
dialogCreateInput
dialogCreatePassword
dialogCreateSeekBar
dialogCreateSpinnerProgress
dialogCreateTimePicker
dialogDismiss
dialogGetInput
dialogGetPassword
dialogGetResponse
dialogGetSelectedItems
dialogSetCurrentProgress
dialogSetItems
dialogSetMaxProgress
dialogSetMessageIsHtml
dialogSetMultiChoiceItems
dialogSetNegativeButtonText
dialogSetNeutralButtonText
dialogSetPositiveButtonText
dialogSetProgressMessage
dialogSetSingleChoiceItems
dialogShow
dialogShowAlert
dialogShowMultiChoice
dialogShowSimpleChoice
dialogShowSingleChoice

Full Screen  <Top>

fullDismiss
fullGetListSelected
fullGetProperties
fullGetProperty
fullGetScreenShot
fullQuery
fullQueryDetail
fullSetList
fullSetList2
fullSetListSelected
fullSetProperties
fullSetProperty
fullShow

Float View  <Top>

floatView
floatViewCount
floatViewRemove
floatViewResult

Other UI  <Top>

makeToast
notify
view
viewHtml
viewMap
webViewShow

  

Accessibility  <Top>

accessibilityAction
accessibilityClick
accessibilityServiceEnabled
accessibilitySlide
accessibilityStartService

Battery  <Top>

batteryCheckPresent
batteryGetCharge
batteryGetCurrent
batteryGetHealth
batteryGetLevel
batteryGetPlugType
batteryGetStatus
batteryGetTechnology
batteryGetTemperature
batteryGetVoltage
batteryStartMonitoring
batteryStopMonitoring
readBatteryData

Event  <Top>

eventClearBuffer
eventGetBrodcastCategories
eventPoll
eventPost
eventRegisterForBroadcast
eventUnregisterForBroadcast
eventWait
eventWaitFor
receiveEvent
rpcPostEvent
startEventDispatcher
stopEventDispatcher
waitForEvent

Sensor  <Top>

readSensors
sensorsGetAccuracy
sensorsGetLight
sensorsGetStepCounter
sensorsReadAccelerometer
sensorsReadGyroscope
sensorsReadMagnetometer
sensorsReadOrientation
startSensingThreshold
startSensingTimed
stopSensing

System  <Top>

checkAirplaneMode
checkPermissions
checkRingerSilentMode
checkScreenOn
forceStopPackage
getAndroidID
getInstalledPackages
getLaunchablePackages
getMemoryInfo
getPackageVersion
getPackageVersionCode
getRunningPackages
getSysInfo

Screen  <Top>

getScreenBrightness
getScreenInfo
getScreenTimeout
setScreenBrightness
setScreenTimeout
showScreenLock
wakeLockAcquireBright
wakeLockAcquireDim
wakeLockAcquireFull
wakeLockAcquirePartial
wakeLockRelease

Location  <Top>

geocode
getLastKnownLocation
getLocale
readLocation
startLocating
stopLocating

Termux  <Top>

termuxDropbearMakeKey
termuxDropbearSsh
termuxGetQSL4A
termuxRunCommand
termuxStartService

Intent  <Top>

Intent
getIntent
launch
makeIntent
pick
send
sendBroadcast
sendBroadcastIntent
sendText
startActivity
startActivityForResult
startActivityForResultIntent
startActivityIntent
startApp
startService
startServiceIntent
stopService
stopServiceIntent

USB  <Top>

usbserialConnect
usbserialDisconnect
usbserialGetDeviceList
usbserialRead
usbserialReadReady
usbserialWrite

Constant  <Top>

R
R.id
R.layout
R.style
provider
provider.Settings

Misc  <Top>

Uri
backgroundProtect
createScriptShortCut
editorOpen
elapsedRealtimeNanos
environment
executeQPy
executeQPyCode
generateDtmfTones
getApplicationInfo
getConnectedInfo
getConstants
getDeviceSoftwareVersion
getDhcpInfo
getEnv
getHarmonyOsInformation
getLastLog
getLine1Number
getSdCardPaths
getSubscriberId
getTrafficStats
isExternalStorageManager
log
notebookOpen
pathToUri
queryAttributes
queryContent
readGnssStatus
requestPermissions
scanBarcode
search
 How To Use Shizuku ? 
>>> import shizuku
>>> dir(shizuku)
['Thread', '_TF', '__builtins__', '__cached__', 
'__doc__', '__file__', '__loader__', '__name__', 
'__package__', '__spec__', '_abs', '_ad', '_ap', 
'_checkShizuku', '_cmd', '_inva', '_listdir2', 
'_open', '_real', '_run', '_runTF', '_useNormal2', 
'basename', 'binRead', 'binWrite', 'checkShizuku', 
'copy', 'copytree', 'dirname', 'exists', 
'getmtime', 'getsize', 'isEnable', 'isdir', 'isfile', 
'listdir', 'listdir2', 'mkdir', 'move', 'os', 'remove', 
'rename', 'rmdir', 'rmdirs', 'rmtree', 'shutil', 
'txtRead', 'txtWrite', 'useNormal', 'useShizuku']
Notice :
This shizuku module is used for Shizuku App 13.6.0,
if your Shizuku App is not this version,
it will raise InvocationTargetException and UnsatisfiedLinkError,
replace "/data/user/0/org.qpython.plus/files/bin/rish_shizuku.dex" 
to the Shizuku App's version to solve the problem .