diff --git a/source/qsl4a.html b/source/qsl4a.html new file mode 100644 index 0000000..e42e1a7 --- /dev/null +++ b/source/qsl4a.html @@ -0,0 +1,343 @@ +QSL4A Functions +Intent
+R
+R.id
+R.layout
+R.style
+Uri
+backgroundProtect
+batteryCheckPresent
+batteryGetCurrent
+batteryGetHealth
+batteryGetLevel
+batteryGetPlugType
+batteryGetStatus
+batteryGetTechnology
+batteryGetTemperature
+batteryGetVoltage
+batteryStartMonitoring
+batteryStopMonitoring
+bluetoothAccept
+bluetoothActiveConnections
+bluetoothConnect
+bluetoothDiscoveryCancel
+bluetoothDiscoveryStart
+bluetoothGetBondedDevices
+bluetoothGetBondedDevicesRssi
+bluetoothGetConnectedDeviceName
+bluetoothGetLocalName
+bluetoothGetReceivedDevices
+bluetoothGetRemoteDeviceName
+bluetoothGetScanMode
+bluetoothMakeDiscoverable
+bluetoothRead
+bluetoothReadBinary
+bluetoothReadLine
+bluetoothReadReady
+bluetoothSetLocalName
+bluetoothStop
+bluetoothWrite
+bluetoothWriteBinary
+cameraCapturePicture
+cameraSetTorchMode
+cameraStartPreview
+cameraStopPreview
+checkAirplaneMode
+checkBluetoothState
+checkNetworkRoaming
+checkPermissions
+checkRingerSilentMode
+checkScreenOn
+checkWifiState
+cipherInit
+contactsGet
+contactsGetAttributes
+contactsGetById
+contactsGetCount
+contactsGetIds
+createScriptShortCut
+decryptBytes
+decryptFile
+decryptFileToBytes
+decryptFileToString
+decryptString
+dialogCreateAlert
+dialogCreateDatePicker
+dialogCreateHorizontalProgress
+dialogCreateInput
+dialogCreatePassword
+dialogCreateSeekBar
+dialogCreateSpinnerProgress
+dialogCreateTimePicker
+dialogDismiss
+dialogGetInput
+dialogGetPassword
+dialogGetResponse
+dialogGetSelectedItems
+dialogSetCurrentProgress
+dialogSetItems
+dialogSetMaxProgress
+dialogSetMessageIsHtml
+dialogSetMultiChoiceItems
+dialogSetNegativeButtonText
+dialogSetNeutralButtonText
+dialogSetPositiveButtonText
+dialogSetProgressMessage
+dialogSetSingleChoiceItems
+dialogShow
+documentFileCopy
+documentFileDelete
+documentFileExists
+documentFileGetStat
+documentFileGetUri
+documentFileInputStream
+documentFileIsDirectory
+documentFileIsFile
+documentFileLastModified
+documentFileLength
+documentFileListFiles
+documentFileMkdir
+documentFileMkdirs
+documentFileMoveTo
+documentFileOutputStream
+documentFileReadFrom
+documentFileRenameTo
+documentFileShowOpen
+documentFileWriteTo
+documentTreeShowOpen
+elapsedRealtimeNanos
+encryptBytes
+encryptBytesToFile
+encryptFile
+encryptString
+encryptStringToFile
+environment
+eventClearBuffer
+eventGetBrodcastCategories
+eventPoll
+eventPost
+eventRegisterForBroadcast
+eventUnregisterForBroadcast
+eventWait
+eventWaitFor
+executeQPy
+floatView
+floatViewCount
+floatViewRemove
+floatViewResult
+forceStopPackage
+ftpGet
+ftpIsRunning
+ftpSet
+ftpStart
+ftpStop
+fullDismiss
+fullGetProperties
+fullGetProperty
+fullGetScreenShot
+fullQuery
+fullQueryDetail
+fullSetList
+fullSetList2
+fullSetListHtml
+fullSetProperties
+fullSetProperty
+fullShow
+generateDtmfTones
+geocode
+getAllCellInfo
+getAllCellsLocation
+getAndroidID
+getApplicationInfo
+getCellLocation
+getClipboard
+getConnectedInfo
+getConstants
+getDeviceSoftwareVersion
+getDhcpInfo
+getFileStat
+getHarmonyOsInformation
+getImei
+getInstalledPackages
+getIntent
+getInternetInterfaceAddress
+getLastKnownLocation
+getLastLog
+getLaunchablePackages
+getLine1Number
+getLocale
+getMaxMediaVolume
+getMaxRingerVolume
+getMediaVolume
+getMeid
+getMemoryInfo
+getNetworkOperator
+getNetworkOperatorName
+getNetworkType
+getPackageVersion
+getPackageVersionCode
+getPhoneType
+getRingerVolume
+getRunningPackages
+getScreenBrightness
+getScreenInfo
+getScreenTimeout
+getSdCardPaths
+getSimCountryIso
+getSimOperator
+getSimOperatorName
+getSimSerialNumber
+getSimState
+getSubscriberId
+getSysInfo
+getTelephoneSignalStrengthDetail
+getTelephoneSignalStrengthLevel
+getTrafficStats
+getVibrateMode
+getVoiceMailAlphaTag
+getVoiceMailNumber
+htmlPictureGetSize
+htmlPictureSetSize
+imageCompress
+imageReaderGetScreenShot
+isExternalStorageManager
+launch
+log
+makeIntent
+makeToast
+mediaIsPlaying
+mediaPlay
+mediaPlayClose
+mediaPlayInfo
+mediaPlayList
+mediaPlayPause
+mediaPlaySeek
+mediaPlaySetLooping
+mediaPlayStart
+notify
+openFile
+pathToUri
+phoneCall
+phoneCallNumber
+phoneDial
+phoneDialNumber
+pick
+pickContact
+pickPhone
+prefGetAll
+prefGetValue
+prefPutValue
+prefRemoveValue
+provider
+provider.Settings
+queryAttributes
+queryContent
+readBatteryData
+readGnssStatus
+readLocation
+readPhoneState
+readSensors
+readSignalStrengths
+receiveEvent
+recordAudio
+recorderCaptureVideo
+recorderPause
+recorderResume
+recorderSoundVolumeDetect
+recorderSoundVolumeGetDb
+recorderStart
+recorderStartMicrophone
+recorderStartScreenRecord
+recorderStop
+requestPermissions
+rpcPostEvent
+scanBarcode
+scanBarcodeFromImage
+search
+send
+sendBroadcast
+sendBroadcastIntent
+sendEmail
+sendFile
+sendText
+sensorsGetAccuracy
+sensorsGetLight
+sensorsGetStepCounter
+sensorsReadAccelerometer
+sensorsReadGyroscope
+sensorsReadMagnetometer
+sensorsReadOrientation
+setClipboard
+setMediaVolume
+setRingerVolume
+setScreenBrightness
+setScreenTimeout
+sharedVariableGet
+sharedVariableRemove
+sharedVariableSet
+showScreenLock
+smsDeleteMessage
+smsGetAttributes
+smsGetMessageById
+smsGetMessageCount
+smsGetMessageIds
+smsGetMessages
+smsMarkMessageRead
+smsSend
+speechToText
+startActivity
+startActivityForResult
+startActivityForResultIntent
+startActivityIntent
+startEventDispatcher
+startLocating
+startSensingThreshold
+startSensingTimed
+startTrackingPhoneState
+startTrackingSignalStrengths
+stopEventDispatcher
+stopLocating
+stopSensing
+stopTrackingPhoneState
+stopTrackingSignalStrengths
+takePicture
+takeVideo
+textToSpeech
+toggleBluetoothState
+toggleRingerSilentMode
+toggleVibrateMode
+toggleWifiState
+ttsIsSpeaking
+ttsSpeak
+ttsStop
+usbserialConnect
+usbserialDisconnect
+usbserialGetDeviceList
+usbserialRead
+usbserialReadReady
+usbserialWrite
+vibrate
+videoPlay
+view
+viewContacts
+viewHtml
+viewMap
+waitForEvent
+wakeLockAcquireBright
+wakeLockAcquireDim
+wakeLockAcquireFull
+wakeLockAcquirePartial
+wakeLockRelease
+webcamAdjustQuality
+webcamStart
+webcamStop
+wifiDisconnect
+wifiGetApState
+wifiGetConnectionInfo
+wifiGetScanResults
+wifiLockAcquireFull
+wifiLockAcquireScanOnly
+wifiLockRelease
+wifiReassociate
+wifiReconnect
+wifiStartScan
diff --git a/source/qsl4a.html.md b/source/qsl4a.html.md deleted file mode 100644 index ffcc531..0000000 --- a/source/qsl4a.html.md +++ /dev/null @@ -1,2047 +0,0 @@ ---- -title: QSL4A API Documentation - -language_tabs: # must be one of https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers - - python - -toc_footers: - - - -#includes: -# - errors - -search: true - -code_clipboard: true - -meta: - - name: description - content: Documentation for QPython's QSL4A API ---- - -# QSL4A APIs Documentation - -The Scripting Layer for Android (abridged as SL4A, and previously named Android Scripting Environment or ASE) is a library that allows the creation and running of scripts written in various scripting languages directly on Android devices. QPython start to extend the SL4A project and integrate it. - - -There are many SL4A APIs, if you found any issue, please `report an issue `_. - -# 01 AndroidFacade - -## 0101 Clipboard APIs - -### setClipboard(text) - - Put text in the clipboard - - :param str text: text - -### getClipboard() - - Read text from the clipboard - - :return: The text in the clipboard - - -> Please run below script within your QPython - - -```python - - from androidhelper import Android - droid = Android() - - #setClipboard - droid.setClipboard("Hello World") - - #getClipboard - clipboard = droid.getClipboard().result -``` - - -## 0102 Intent & startActivity APIs - -### makeIntent(action, uri, type, extras, categories, packagename, classname, flags) - - Starts an activity and returns the result - - :param str action: action - :param str uri(Optional): uri - :param str type(Optional): MIME type/subtype of the URI - :param object extras(Optional): a Map of extras to add to the Intent - :param list categories(Optional): a List of categories to add to the Intent - :param str packagename(Optional): name of package. If used, requires classname to be useful - :param str classname(Optional): name of class. If used, requires packagename to be useful - :param int flags(Optional): Intent flags - - :return: An object representing an Intent - - - -> sample code to show makeIntent - - -### getIntent() - - Returns the intent that launched the script - - -> sample code to show getIntent - - -### startActivityForResult(action, uri, type, extras, packagename, classname) - - Starts an activity and returns the result - - :param str action: action - :param str uri(Optional): uri - :param str type(Optional): MIME type/subtype of the URI - :param object extras(Optional): a Map of extras to add to the Intent - :param str packagename(Optional): name of package. If used, requires classname to be useful - :param str classname(Optional): name of class. If used, requires packagename to be useful - - :return: A Map representation of the result Intent - - - -> sample code to show startActivityForResult - - -### startActivityForResultIntent(intent) - - Starts an activity and returns the result - - :param Intent intent: Intent in the format as returned from makeIntent - - :return: A Map representation of the result Intent - - -> sample code to show startActivityForResultIntent - -### startActivityIntent(intent, wait) - - Starts an activity - - :param Intent intent: Intent in the format as returned from makeIntent - :param bool wait(Optional): block until the user exits the started activity - - -> sample code to show startActivityIntent - - -### startActivity(action, uri, type, extras, wait, packagename, classname) - - Starts an activity - - :param str action: action - :param str uri(Optional): uri - :param str type(Optional): MIME type/subtype of the URI - :param object extras(Optional): a Map of extras to add to the Intent - :param bool wait(Optional): block until the user exits the started activity - :param str packagename(Optional): name of package. If used, requires classname to be useful - :param str classname(Optional): name of class. If used, requires packagename to be useful - - -> sample code to show startActivityForResultIntent - - -## 0103 SendBroadcast APIs - -### sendBroadcast(action, uri, type, extras, packagename, classname) - - Send a broadcast - - :param str action: action - :param str uri(Optional): uri - :param str type(Optional): MIME type/subtype of the URI - :param object extras(Optional): a Map of extras to add to the Intent - :param str packagename(Optional): name of package. If used, requires classname to be useful - :param str classname(Optional): name of class. If used, requires packagename to be useful - - -> sample code to show sendBroadcast - -### sendBroadcastIntent(intent) - - Send a broadcast - - :param Intent intent: Intent in the format as returned from makeIntent - - -> sample code to show sendBroadcastIntent - - -## 0104 Vibrate - -### vibrate(intent) - - Vibrates the phone or a specified duration in milliseconds - - :param int duration: duration in milliseconds - - -> sample code to show vibrate - - -## 0105 NetworkStatus - -### getNetworkStatus() - - Returns the status of network connection - - -> sample code to show getNetworkStatus - -## 0106 PackageVersion APIs - -### requiredVersion(requiredVersion) - - Checks if version of QPython SL4A is greater than or equal to the specified version - - :param int requiredVersion: requiredVersion - - :return: true or false - - -### getPackageVersionCode(packageName) - - Returns package version code - - :param str packageName: packageName - - :return: Package version code - -### getPackageVersion(packageName) - - Returns package version name - - :param str packageName: packageName - - :return: Package version name - - -> sample code to show getPackageVersionCode & getPackageVersion - - -## 0107 System APIs - -### getConstants(classname) - - Get list of constants (static final fields) for a class - - :param str classname: classname - - :return: list - - -> sample code to show getConstants - -### environment() - - A map of various useful environment details - - :return: environment map object includes id, display, offset, TZ, SDK, download, appcache, availblocks, blocksize, blockcount, sdcard - - -> sample code to show environment - -### log(message) - - Writes message to logcat - - :param str message: message - - -> sample code to show log - - -## 0108 SendEmail - -### sendEmail(to, subject, body, attachmentUri) - - Launches an activity that sends an e-mail message to a given recipient - - :param str to: A comma separated list of recipients - :param str subject: subject - :param str body: mail body - :param str attachmentUri(Optional): message - - -> sample code to show sendEmail - - -## 0109 Toast, getInput, getPassword, notify APIs - -### makeToast(message) - - Displays a short-duration Toast notification - - :param str message: message - - -> sample code to show makeToast - -### getInput(title, message) - - Queries the user for a text input - - :param str title: title of the input box - :param str message: message to display above the input box - - -> sample code to show getInput - -### getPassword(title, message) - - Queries the user for a password - - :param str title: title of the input box - :param str message: message to display above the input box - - -> sample code to show getPassword - -### notify(title, message, url) - - Displays a notification that will be canceled when the user clicks on it - - :param str title: title - :param str message: message - :param str url(optional): url - -> Sample code of notify - -```python - import androidhelper - droid = androidhelper.Android() - droid.notify('Hello','QPython','http://qpython.org') - #You could set the 3rd parameter None also - -``` - - - -# 02 ApplicationManagerFacade - - -## 0201 Manager APIs - - -### getLaunchableApplications() - - Returns a list of all launchable application class names - - :return: map object - - -> sample code to show getLaunchableApplications - - -### launch(classname) - - Start activity with the given class name - - :param str classname: classname - - -> sample code to show launch - -### getRunningPackages() - - Returns a list of packages running activities or services - - :return: List of packages running activities - - -> sample code to show getRunningPackages - -### forceStopPackage(packageName) - - Force stops a package - - :param str packageName: packageName - - -> sample code to show forceStopPackage - - -# 03 CameraFacade - - -## 0301 Camera APIs - -### cameraCapturePicture(targetPath) - - Take a picture and save it to the specified path - - :return: A map of Booleans autoFocus and takePicture where True indicates success - -### cameraInteractiveCapturePicture(targetPath) - - Starts the image capture application to take a picture and saves it to the specified path - -# 04 CommonIntentsFacade - -## 0401 Barcode APIs - -### scanBarcode() - - Starts the barcode scanner - - :return: A Map representation of the result Intent - -## 0402 View APIs - -### pick(uri) - - Display content to be picked by URI (e.g. contacts) - - :return: A map of result values - -### view(uri, type, extras) - - Start activity with view action by URI (i.e. browser, contacts, etc.) - -### viewMap(query) - - Opens a map search for query (e.g. pizza, 123 My Street) - -### viewContacts() - - Opens the list of contacts - -### viewHtml(path) - - Opens the browser to display a local HTML file - -### search(query) - - Starts a search for the given query - -# 05 ContactsFacade - -## 0501 Contacts APIs - -### pickContact() - - Displays a list of contacts to pick from - - :return: A map of result values - -### pickPhone() - - Displays a list of phone numbers to pick from - - :return: The selected phone number - -### contactsGetAttributes() - - Returns a List of all possible attributes for contacts - - :return: a List of contacts as Maps - -### contactsGetIds() - - Returns a List of all contact IDs - -### contactsGet(attributes) - - Returns a List of all contacts - -### contactsGetById(id) - - Returns contacts by ID - -### contactsGetCount() - - Returns the number of contacts - -### queryContent(uri, attributes, selection, selectionArgs, order) - - Content Resolver Query - - :return: result of query as Maps - -### queryAttributes(uri) - - Content Resolver Query Attributes - - :return: a list of available columns for a given content uri - -# 06 EventFacade - - -## 0601 Event APIs - -### eventClearBuffer() - - Clears all events from the event buffer - -### eventRegisterForBroadcast(category, enqueue) - - Registers a listener for a new broadcast signal - -### eventUnregisterForBroadcast(category) - - Stop listening for a broadcast signal - -### eventGetBrodcastCategories() - - Lists all the broadcast signals we are listening for - -### eventPoll(number_of_events) - - Returns and removes the oldest n events (i.e. location or sensor update, etc.) from the event buffer - - :return: A List of Maps of event properties - -### eventWaitFor(eventName, timeout) - - Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer - - :return: Map of event properties - -### eventWait(timeout) - - Blocks until an event occurs. The returned event is removed from the buffer - - :return: Map of event properties - -### eventPost(name, data, enqueue) - - Post an event to the event queue - -### rpcPostEvent(name, data) - - Post an event to the event queue - -### receiveEvent() - - Returns and removes the oldest event (i.e. location or sensor update, etc.) from the event buffer - - :return: Map of event properties - -### waitForEvent(eventName, timeout) - - Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer - - :return: Map of event properties - -### startEventDispatcher(port) - - Opens up a socket where you can read for events posted - -### stopEventDispatcher() - - Stops the event server, you can't read in the port anymore - -# 07 LocationFacade - - -## 0701 Providers APIs - -### locationProviders() - - Returns availables providers on the phone - -### locationProviderEnabled(provider) - - Ask if provider is enabled - -## 0702 Location APIs - -### startLocating(minDistance, minUpdateDistance) - - Starts collecting location data - -### readLocation() - - Returns the current location as indicated by all available providers - - :return: A map of location information by provider - -### stopLocating() - - Stops collecting location data - -getLastKnownLocation() - - Returns the last known location of the device - - :return: A map of location information by provider - - -```python - - Droid = androidhelper.Android() - location = Droid.getLastKnownLocation().result - location = location.get('network', location.get('gps')) -``` - - -## 0703 GEO - -### geocode(latitude, longitude, maxResults) - - Returns a list of addresses for the given latitude and longitude - - :return: A list of addresses - -# 08 PhoneFacade - -## 0801 PhoneStat APIs - - -### startTrackingPhoneState() - - Starts tracking phone state - -### readPhoneState() - - Returns the current phone state and incoming number - - :return: A Map of "state" and "incomingNumber" - -### stopTrackingPhoneState() - - Stops tracking phone state - - -## 0802 Call & Dia APIs - -### phoneCall(uri) - - Calls a contact/phone number by URI - -### phoneCallNumber(number) - - Calls a phone number - -### phoneDial(uri) - - Dials a contact/phone number by URI - -### phoneDialNumber(number) - - Dials a phone number - -## 0803 Get information APIs - -### getCellLocation() - - Returns the current cell location - -### getNetworkOperator() - - Returns the numeric name (MCC+MNC) of current registered operator - -### getNetworkOperatorName() - - Returns the alphabetic name of current registered operator - -### getNetworkType() - - Returns a the radio technology (network type) currently in use on the device - -### getPhoneType() - - Returns the device phone type - -### getSimCountryIso() - - Returns the ISO country code equivalent for the SIM provider's country code - -### getSimOperator() - - Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits - -### getSimOperatorName() - - Returns the Service Provider Name (SPN) - -### getSimSerialNumber() - - Returns the serial number of the SIM, if applicable. Return null if it is unavailable - -### getSimState() - - Returns the state of the device SIM card - -### getSubscriberId() - - Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable - -### getVoiceMailAlphaTag() - - Retrieves the alphabetic identifier associated with the voice mail number - -### getVoiceMailNumber() - - Returns the voice mail number. Return null if it is unavailable - -### checkNetworkRoaming() - - Returns true if the device is considered roaming on the current network, for GSM purposes - -### getDeviceId() - - Returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available - -### getDeviceSoftwareVersion() - - Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available - -### getLine1Number() - - Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable - -### getNeighboringCellInfo() - - Returns the neighboring cell information of the device - -# 09 MediaRecorderFacade - -## 0901 Audio - -### recorderStartMicrophone(targetPath) - - Records audio from the microphone and saves it to the given location - -## 0902 Video APIs - -### recorderStartVideo(targetPath, duration, videoSize) - - Records video from the camera and saves it to the given location. - Duration specifies the maximum duration of the recording session. - If duration is 0 this method will return and the recording will only be stopped - when recorderStop is called or when a scripts exits. - Otherwise it will block for the time period equal to the duration argument. - videoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480. - - -### recorderCaptureVideo(targetPath, duration, recordAudio) - - Records video (and optionally audio) from the camera and saves it to the given location. - Duration specifies the maximum duration of the recording session. - If duration is not provided this method will return immediately and the recording will only be stopped - when recorderStop is called or when a scripts exits. - Otherwise it will block for the time period equal to the duration argument. - -### startInteractiveVideoRecording(path) - - Starts the video capture application to record a video and saves it to the specified path - - -## 0903 Stop - -### recorderStop() - - Stops a previously started recording - -# 10 SensorManagerFacade - -## 1001 Start & Stop - -### startSensingTimed(sensorNumber, delayTime) - - Starts recording sensor data to be available for polling - -### startSensingThreshold(ensorNumber, threshold, axis) - - Records to the Event Queue sensor data exceeding a chosen threshold - -### startSensing(sampleSize) - - Starts recording sensor data to be available for polling - -### stopSensing() - - Stops collecting sensor data - -## 1002 Read data APIs - -### readSensors() - - Returns the most recently recorded sensor data - -### sensorsGetAccuracy() - - Returns the most recently received accuracy value - -### sensorsGetLight() - - Returns the most recently received light value - -### sensorsReadAccelerometer() - - Returns the most recently received accelerometer values - - :return: a List of Floats [(acceleration on the) X axis, Y axis, Z axis] - -### sensorsReadMagnetometer() - - Returns the most recently received magnetic field values - - :return: a List of Floats [(magnetic field value for) X axis, Y axis, Z axis] - -sensorsReadOrientation() - - Returns the most recently received orientation values - - :return: a List of Doubles [azimuth, pitch, roll] - -```python - - Droid = androidhelper.Android() - Droid.startSensingTimed(1, 250) - sensor = Droid.sensorsReadOrientation().result - Droid.stopSensing() -``` - - -# 11 SettingsFacade - -## 1101 Screen - -### setScreenTimeout(value) - - Sets the screen timeout to this number of seconds - - :return: The original screen timeout - -### getScreenTimeout() - - Gets the screen timeout - - :return: the current screen timeout in seconds - -## 1102 AirplanerMode - - -### checkAirplaneMode() - - Checks the airplane mode setting - - :return: True if airplane mode is enabled - -### toggleAirplaneMode(enabled) - - Toggles airplane mode on and off - - :return: True if airplane mode is enabled - -## 1103 Ringer Silent Mode - -### checkRingerSilentMode() - - Checks the ringer silent mode setting - - :return: True if ringer silent mode is enabled - -### toggleRingerSilentMode(enabled) - - Toggles ringer silent mode on and off - - :return: True if ringer silent mode is enabled - -## 1104 Vibrate Mode - -### toggleVibrateMode(enabled) - - Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else set Notification setting - - :return: True if vibrate mode is enabled - -### getVibrateMode(ringer) - - Checks Vibration setting. If ringer=true then query Ringer setting, else query Notification setting - - :return: True if vibrate mode is enabled - -## 1105 Ringer & Media Volume - -### getMaxRingerVolume() - - Returns the maximum ringer volume - -### getRingerVolume() - - Returns the current ringer volume - -### setRingerVolume(volume) - - Sets the ringer volume - -### getMaxMediaVolume() - - Returns the maximum media volume - -### getMediaVolume() - - Returns the current media volume - -### setMediaVolume(volume) - - Sets the media volume - -## 1105 Screen Brightness - -### getScreenBrightness() - - Returns the screen backlight brightness - - :return: the current screen brightness between 0 and 255 - -### setScreenBrightness(value) - - Sets the the screen backlight brightness - - :return: the original screen brightness - -### checkScreenOn() - - Checks if the screen is on or off (requires API level 7) - - :return: True if the screen is currently on - - -# 12 SmsFacade - -## 1201 Sms API - -### smsSend(destinationAddress, text) - - Sends an SMS - - :param str destinationAddress: typically a phone number - :param str text: - -### smsGetMessageCount(unreadOnly, folder) - - Returns the number of messages - - :param bool unreadOnly: typically a phone number - :param str folder(optional): default "inbox" - -### smsGetMessageIds(unreadOnly, folder) - - Returns a List of all message IDs - - :param bool unreadOnly: typically a phone number - :param str folder(optional): default "inbox" - -### smsGetMessages(unreadOnly, folder, attributes) - - Returns a List of all messages - - :param bool unreadOnly: typically a phone number - :param str folder: default "inbox" - :param list attributes(optional): attributes - - :return: a List of messages as Maps - -### smsGetMessageById(id, attributes) - - Returns message attributes - - :param int id: message ID - :param list attributes(optional): attributes - - :return: a List of messages as Maps - -### smsGetAttributes() - - Returns a List of all possible message attributes - -### smsDeleteMessage(id) - - Deletes a message - - :param int id: message ID - - :return: True if the message was deleted - -### smsMarkMessageRead(ids, read) - - Marks messages as read - - :param list ids: List of message IDs to mark as read - :param bool read: true or false - - :return: number of messages marked read - -# 13 SpeechRecognitionFacade - -## 1301 Speech API - -### recognizeSpeech(prompt, language, languageModel) - - Recognizes user's speech and returns the most likely result - - :param str prompt(optional): text prompt to show to the user when asking them to speak - :param str language(optional): language override to inform the recognizer that it should expect speech in a language different than the one set in the java.util.Locale.getDefault() - :param str languageModel(optional): informs the recognizer which speech model to prefer (see android.speech.RecognizeIntent) - - :return: An empty string in case the speech cannot be recongnized - - -# 14 ToneGeneratorFacade - -## 1401 Tones API - -### generateDtmfTones(phoneNumber, toneDuration) - - Generate DTMF tones for the given phone number - - :param str phoneNumber: phone number - :param int toneDuration(optional): default 100, duration of each tone in milliseconds - - -# 15 WakeLockFacade - -## 1501 Wake API - -### wakeLockAcquireFull() - - Acquires a full wake lock (CPU on, screen bright, keyboard bright) - -### wakeLockAcquirePartial() - - Acquires a partial wake lock (CPU on) - -### wakeLockAcquireBright() - - Acquires a bright wake lock (CPU on, screen bright) - -### wakeLockAcquireDim() - - Acquires a dim wake lock (CPU on, screen dim) - -### wakeLockRelease() - - Releases the wake lock - -# 16 WifiFacade - -## 1601 Wifi APIs - -### wifiGetScanResults() - - Returns the list of access points found during the most recent Wifi scan - -### wifiLockAcquireFull() - - Acquires a full Wifi lock - -### wifiLockAcquireScanOnly() - - Acquires a scan only Wifi lock - -### wifiLockRelease() - - Releases a previously acquired Wifi lock - -### wifiStartScan() - - Starts a scan for Wifi access points - - :return: True if the scan was initiated successfully - -### checkWifiState() - - Checks Wifi state - - :return: True if Wifi is enabled - -### toggleWifiState(enabled) - - Toggle Wifi on and off - - :param bool enabled(optional): enabled - - :return: True if Wifi is enabled - -### wifiDisconnect() - - Disconnects from the currently active access point - - :return: True if the operation succeeded - -### wifiGetConnectionInfo() - - Returns information about the currently active access point - -### wifiReassociate() - - Returns information about the currently active access point - - :return: True if the operation succeeded - -### wifiReconnect() - - Reconnects to the currently active access point - - :return: True if the operation succeeded - - -# 18 BatteryManagerFacade - -## 1801 Battery APIs - -### readBatteryData() - - Returns the most recently recorded battery data - -### batteryStartMonitoring() - - Starts tracking battery state - -### batteryStopMonitoring() - - Stops tracking battery state - -### batteryGetStatus() - - Returns the most recently received battery status data: - 1 - unknown; - 2 - charging; - 3 - discharging; - 4 - not charging; - 5 - full - -### batteryGetHealth() - - Returns the most recently received battery health data: - 1 - unknown; - 2 - good; - 3 - overheat; - 4 - dead; - 5 - over voltage; - 6 - unspecified failure - -### batteryGetPlugType() - - Returns the most recently received plug type data: - -1 - unknown - 0 - unplugged - 1 - power source is an AC charger - 2 - power source is a USB port - - -### batteryCheckPresent() - - Returns the most recently received battery presence data - -### batteryGetLevel() - - Returns the most recently received battery level (percentage) - -### batteryGetVoltage() - - Returns the most recently received battery voltage - -### batteryGetTemperature() - - Returns the most recently received battery temperature - -### batteryGetTechnology() - - Returns the most recently received battery technology data - - -# 19 ActivityResultFacade - - -## 1901 Activity APIs - -### setResultBoolean(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - - -### setResultByte(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultShort(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultChar(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - - -### setResultInteger(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultLong(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultFloat(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultDouble(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultString(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultBooleanArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultByteArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultShortArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultCharArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultIntegerArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultLongArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultFloatArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultDoubleArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultStringArray(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - -### setResultSerializable(resultCode, resultValue) - - Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), - the resulting intent will contain SCRIPT_RESULT extra with the given value - - :param int resultCode: - :param byte resultValue: - - -# 20 MediaPlayerFacade - - -## 2001 Control - -### mediaPlay(url, tag, play) - - Open a media file - - :param str url: url of media resource - :param str tag(optional): string identifying resource (default=default) - :param bool play(optional): start playing immediately - - :return: true if play successful - -### mediaPlayPause(tag) - - pause playing media file - - :param str tag: string identifying resource (default=default) - - :return: true if successful - -### mediaPlayStart(tag) - - start playing media file - - :param str tag: string identifying resource (default=default) - - :return: true if successful - -### mediaPlayClose(tag) - - Close media file - - :param str tag: string identifying resource (default=default) - - :return: true if successful - -### mediaIsPlaying(tag) - - Checks if media file is playing - - :param str tag: string identifying resource (default=default) - - :return: true if successful - - -### mediaPlaySetLooping(enabled, tag) - - Set Looping - - :param bool enabled: default true - :param str tag: string identifying resource (default=default) - - :return: True if successful - -### mediaPlaySeek(msec, tag) - - Seek To Position - - :param int msec: default true - :param str tag: string identifying resource (default=default) - - :return: New Position (in ms) - -## 2002 Get Information - -### mediaPlayInfo(tag) - - Information on current media - - :param str tag: string identifying resource (default=default) - - :return: Media Information - -### mediaPlayList() - - Lists currently loaded media - - :return: List of Media Tags - - -# 21 PreferencesFacade - -## Preferences APIs - -### prefGetValue(key, filename) - - Read a value from shared preferences - - :param str key: key - :param str filename(optional): Desired preferences file. If not defined, uses the default Shared Preferences. - - -### prefPutValue(key, value, filename) - - Write a value to shared preferences - - :param str key: key - :param str value: value - :param str filename(optional): Desired preferences file. If not defined, uses the default Shared Preferences. - -### prefGetAll(filename) - - Get list of Shared Preference Values - - :param str filename(optional): Desired preferences file. If not defined, uses the default Shared Preferences. - - -# 22 QPyInterfaceFacade - -## 2201 QPyInterface APIs - -### executeQPy(script) - - Execute a qpython script by absolute path - - :param str script: The absolute path of the qpython script - - :return: bool - - -# 23 TextToSpeechFacade - -## 2301 TTS APIs - -### ttsSpeak(message) - - Speaks the provided message via TTS - - :param str message: message - -### ttsIsSpeaking() - - Returns True if speech is currently in progress - - -### ttsSpeak(message) - - Speaks the provided message via TTS - - :param str message: message - - -# 24 EyesFreeFacade - -## 2401 EyesFree APIs - - -# 25 BluetoothFacade - -## 2501 Bluetooth APIs - -### bluetoothActiveConnections() - - Returns active Bluetooth connections - - -### bluetoothWriteBinary(base64, connID) - - Send bytes over the currently open Bluetooth connection - - :param str base64: A base64 encoded String of the bytes to be sent - :param str connID(optional): Connection id - -### bluetoothReadBinary(bufferSize, connID) - - Read up to bufferSize bytes and return a chunked, base64 encoded string - - :param int bufferSize: default 4096 - :param str connID(optional): Connection id - -### bluetoothConnect(uuid, address) - - Connect to a device over Bluetooth. Blocks until the connection is established or fails - - :param str uuid: The UUID passed here must match the UUID used by the server device - :param str address(optional): The user will be presented with a list of discovered devices to choose from if an address is not provided - - :return: True if the connection was established successfully - -### bluetoothAccept(uuid, timeout) - - Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails - - :param str uuid: The UUID passed here must match the UUID used by the server device - :param int timeout: How long to wait for a new connection, 0 is wait for ever (default=0) - -### bluetoothMakeDiscoverable(duration) - - Requests that the device be discoverable for Bluetooth connections - - :param int duration: period of time, in seconds, during which the device should be discoverable (default=300) - -### bluetoothWrite(ascii, connID) - - Sends ASCII characters over the currently open Bluetooth connection - - :param str ascii: text - :param str connID: Connection id - -### bluetoothReadReady(connID) - - Sends ASCII characters over the currently open Bluetooth connection - - :param str ascii: text - :param str connID: Connection id - -### bluetoothRead(bufferSize, connID) - - Read up to bufferSize ASCII characters - - :param int bufferSize: default=4096 - :param str connID(optional): Connection id - -### bluetoothReadLine(connID) - - Read the next line - - :param str connID(optional): Connection id - -### bluetoothGetRemoteDeviceName(address) - - Queries a remote device for it's name or null if it can't be resolved - - :param str address: Bluetooth Address For Target Device - -### bluetoothGetLocalName() - - Gets the Bluetooth Visible device name - -### bluetoothSetLocalName(name) - - Sets the Bluetooth Visible device name, returns True on success - - :param str name: New local name - -### bluetoothGetScanMode() - - Gets the scan mode for the local dongle. - Return values: - -1 when Bluetooth is disabled. - 0 if non discoverable and non connectable. - 1 connectable non discoverable. - 3 connectable and discoverable. - -### bluetoothGetConnectedDeviceName(connID) - - Returns the name of the connected device - - :param str connID: Connection id - -### checkBluetoothState() - - Checks Bluetooth state - - :return: True if Bluetooth is enabled - -### toggleBluetoothState(enabled, prompt) - - Toggle Bluetooth on and off - - :param bool enabled: - :param str prompt: Prompt the user to confirm changing the Bluetooth state, default=true - - :return: True if Bluetooth is enabled - -### bluetoothStop(connID) - - Stops Bluetooth connection - - :param str connID: Connection id - -### bluetoothGetLocalAddress() - - Returns the hardware address of the local Bluetooth adapter - -### bluetoothDiscoveryStart() - - Start the remote device discovery process - - :return: true on success, false on error - -### bluetoothDiscoveryCancel() - - Cancel the current device discovery process - - :return: true on success, false on error - -### bluetoothIsDiscovering() - - Return true if the local Bluetooth adapter is currently in the device discovery process - - -# 26 SignalStrengthFacade - -## 2601 SignalStreagth APIs - -### startTrackingSignalStrengths() - - Starts tracking signal strengths - -### readSignalStrengths() - - Returns the current signal strengths - - :return: A map of gsm_signal_strength - -### stopTrackingSignalStrengths() - - Stops tracking signal strength - - -# 27 WebCamFacade - - -## 2701 WebCam APIs - -### webcamStart(resolutionLevel, jpegQuality, port) - - Starts an MJPEG stream and returns a Tuple of address and port for the stream - - :param int resolutionLevel: increasing this number provides higher resolution (default=0) - :param int jpegQuality: a number from 0-10 (default=20) - :param int port: If port is specified, the webcam service will bind to port, otherwise it will pick any available port (default=0) - -### webcamAdjustQuality(resolutionLevel, jpegQuality) - - Adjusts the quality of the webcam stream while it is running - - :param int resolutionLevel: increasing this number provides higher resolution (default=0) - :param int jpegQuality: a number from 0-10 (default=20) - -### cameraStartPreview(resolutionLevel, jpegQuality, filepath) - - Start Preview Mode. Throws 'preview' events - - :param int resolutionLevel: increasing this number provides higher resolution (default=0) - :param int jpegQuality: a number from 0-10 (default=20) - :param str filepath: Path to store jpeg files - - :return: True if successful - -### cameraStopPreview() - - Stop the preview mode - - -# 28 UiFacade - -## 2801 Dialog - -### dialogCreateInput(title, message, defaultText, inputType) - - Create a text input dialog - - :param str title: title of the input box - :param str message: message to display above the input box - :param str defaultText(optional): text to insert into the input box - :param str inputType(optional): type of input data, ie number or text - -### dialogCreatePassword(title, message) - - Create a password input dialog - - :param str title: title of the input box - :param str message: message to display above the input box - -### dialogGetInput(title, message, defaultText) - - Create a password input dialog - - :param str title: title of the input box - :param str message: message to display above the input box - :param str defaultText(optional): text to insert into the input box - -### dialogGetPassword(title, message) - - Queries the user for a password - - :param str title: title of the password box - :param str message: message to display above the input box - -### dialogCreateSeekBar(start, maximum, title) - - Create seek bar dialog - - :param int start: default=50 - :param int maximum: default=100 - :param int title: title - -### dialogCreateTimePicker(hour, minute, is24hour) - - Create time picker dialog - - :param int hour: default=0 - :param int miute: default=0 - :param bool is24hour: default=false - -### dialogCreateDatePicker(year, month, day) - - Create date picker dialog - - :param int year: default=1970 - :param int month: default=1 - :param int day: default=1 - - -## 2802 NFC - -**Data structs** -*QPython NFC json result* -:: - - { - "role": , # could be self/master/slave - "stat": , # could be ok / fail / cancl - "message": - } - -### dialogCreateNFCBeamMaster(title, message, inputType) - - Create a dialog where you could create a qpython beam master - - :param str title: title of the input box - :param str message: message to display above the input box - :param str inputType(optional): type of input data, ie number or text - -### NFCBeamMessage(content, title, message) - - Create a dialog where you could create a qpython beam master - - :param str content: message you want to sent - :param str title: title of the input box - :param str message: message to display above the input box - :param str inputType(optional): type of input data, ie number or text - -### dialogCreateNFCBeamSlave(title, message) - - Create a qpython beam slave - - :param str title: title of the input box - :param str message: message to display above the input box - -## 2803 Progress - -### dialogCreateSpinnerProgress(message, maximumProgress) - - Create a spinner progress dialog - - :param str message(optional): message - :param int maximunProgress(optional): dfault=100 - -### dialogSetCurrentProgress(current) - - Set progress dialog current value - - :param int current: current - -### dialogSetMaxProgress(max) - - Set progress dialog maximum value - - :param int max: max - - -### dialogCreateHorizontalProgress(title, message, maximumProgress) - - Create a horizontal progress dialog - - :param str title(optional): title - :param str message(optional): message - :param int maximunProgress(optional): dfault=100 - - -## 2804 Alert - -### dialogCreateAlert(title, message) - - Create alert dialog - - :param str title(optional): title - :param str message(optional): message - :param int maximunProgress(optional): dfault=100 - - -## 2805 Dialog Control - -### dialogSetPositiveButtonText(text) - - Set alert dialog positive button text - - :param str text: text - -### dialogSetNegativeButtonText(text) - - Set alert dialog negative button text - - :param str text: text - -### dialogSetNeutralButtonText(text) - - Set alert dialog button text - - :param str text: text - -### dialogSetItems(items) - - Set alert dialog list items - - :param list items: items - -### dialogSetSingleChoiceItems(items, selected) - - Set alert dialog list items - - :param list items: items - :param int selected: selected item index (default=0) - -### dialogSetMultiChoiceItems(items, selected) - - Set dialog multiple choice items and selection - - :param list items: items - :param int selected: selected item index (default=0) - -### addContextMenuItem(label, event, eventData) - - Adds a new item to context menu - - :param str label: label for this menu item - :param str event: event that will be generated on menu item click - :param object eventData: event object - -### addOptionsMenuItem(label, event, eventData, iconName) - - Adds a new item to context menu - - :param str label: label for this menu item - :param str event: event that will be generated on menu item click - :param object eventData: event object - :param str iconName: Android system menu icon, see http://developer.android.com/reference/android/R.drawable.html - -### dialogGetResponse() - - Returns dialog response - -### dialogGetSelectedItems() - - This method provides list of items user selected - -### dialogDismiss() - - Dismiss dialog - -### dialogShow() - - Show dialog - - -## 2806 Layout - -### fullShow(layout) - - Show Full Screen - - :param string layout: String containing View layout - -### fullDismiss() - - Dismiss Full Screen - -### fullQuery() - - Get Fullscreen Properties - -### fullQueryDetail(id) - - Get fullscreen properties for a specific widget - - :param str id: id of layout widget - -### fullSetProperty(id) - - Set fullscreen widget property - - :param str id: id of layout widget - :param str property: name of property to set - :param str value: value to set property to - -### fullSetList(id, list) - - Attach a list to a fullscreen widget - - :param str id: id of layout widget - :param list list: List to set - -### fullKeyOverride(keycodes, enable) - - Override default key actions - - :param str keycodes: id of layout widget - :param bool enable: List to set (default=true) - - - -## 2807 WebView - -### webViewShow() - - Display a WebView with the given URL - - :param str url: url - :param bool wait(optional): block until the user exits the WebView - -# 29 USB Host Serial Facade - - -SL4A Facade for USB Serial devices by Android USB Host API. - -It control the USB-Serial like devices -from Andoroid which has USB Host Controller . - -The sample -`demonstration is also available at youtube video `_ - - -## Requirements - -* Android device which has USB Host controller (and enabled in that firmware). -* Android 4.0 (API14) or later. -* USB Serial devices (see [Status](#Status)). -* USB Serial devices were not handled by Android kernel. - - > I heard some android phone handle USB Serial devices - > make /dev/ttyUSB0 in kernel level. - > In this case, Android does not be able to handle the device - > from OS level. - - please check Android Applications be able to grab the target USB Devices, - such as `USB Device Info `_. - -Status - -* probably work with USB CDC, like FTDI, Arduino or else. - -* 2012/09/10: work with 78K0F0730 device (new RL78) with Tragi BIOS board. - - `M78K0F0730 `_ - -* 2012/09/24: work with some pl2303 devcies. - -Author - -This facade developped by `Kuri65536 `_ -you can see the commit log in it. - - -## 2901 USB Host Serial APIs - -### usbserialGetDeviceList() - - Returns USB devices reported by USB Host API. - - :return: Returns "Map of id and string information Map - - -### usbserialDisconnect(connID) - - Disconnect all USB-device - - :param str connID: connection ID - -### usbserialActiveConnections() - - Returns active USB-device connections. - - :return: Returns "Active USB-device connections by Map UUID vs device-name." - - -### usbserialWriteBinary(base64, connID) - - Send bytes over the currently open USB Serial connection. - - :param str base64: - :param str connId: - -### usbserialReadBinary(bufferSize, connID) - - Read up to bufferSize bytes and return a chunked, base64 encoded string - - :param int bufferSize: - :param str connId: - -### usbserialConnect(hash, options) - - Connect to a device with USB-Host. request the connection and exit - - :param str hash: - :param str options: - - :return: Returns messages the request status - -### usbserialHostEnable() - - Requests that the host be enable for USB Serial connections. - - :return: True if the USB Device is accesible - -### usbserialWrite(String ascii, String connID) - - Sends ASCII characters over the currently open USB Serial connection - - :param str ascii: - :param str connID: - -### usbserialReadReady(connID) - - :param str connID: - - :return: True if the next read is guaranteed not to block - - -### usbserialRead(connID, bufferSize) - - Read up to bufferSize ASCII characters. - - :param str connID: - :param int bufferSize: - -### usbserialGetDeviceName(connID) - - Queries a remote device for it's name or null if it can't be resolved - - :param str connID: diff --git a/source/qsl4a/Intent.html b/source/qsl4a/Intent.html new file mode 100644 index 0000000..fa02180 --- /dev/null +++ b/source/qsl4a/Intent.html @@ -0,0 +1 @@ +Intent

'Common Intent Constants , for more Intent Constants, please refer https://developer.android.google.cn/reference/android/content/Intent.html .\n\nYou can use them like droid.startActivityIntent(droid.makeIntent(action=droid.Intent.ACTION_VIEW,uri="http://www.baidu.com",flags=droid.Intent.FLAG_ACTIVITY_NEW_DOCUMENT).result) .'



ACTION_MAIN='android.intent.action.MAIN'

ACTION_VIEW='android.intent.action.VIEW'

ACTION_EDIT='android.intent.action.EDIT'

ACTION_PICK='android.intent.action.PICK'

ACTION_CHOOSER='android.intent.action.CHOOSER'

ACTION_INSERT='android.intent.action.INSERT'

ACTION_DELETE='android.intent.action.DELETE'

ACTION_RUN='android.intent.action.RUN'

ACTION_SEND='android.intent.action.SEND'

ACTION_SYNC='android.intent.action.SYNC'

ACTION_SEARCH='android.intent.action.SEARCH'



FLAG_ACTIVITY_SINGLE_TOP = 536870912

FLAG_ACTIVITY_MULTIPLE_TASK = 134217728

FLAG_ACTIVITY_NEW_DOCUMENT = 524288

FLAG_ACTIVITY_CLEAR_TASK = 32768

FLAG_ACTIVITY_NEW_TASK = 268435456



EXTRA_TEXT='android.intent.extra.TEXT'

EXTRA_STREAM='android.intent.extra.STREAM'



def _intentExtras(Extras):

    if not isinstance(Extras,dict):

        return Extras

    for Key in Extras.keys():

        Val = Extras[Key]

        if isinstance( Val ,( bytes, bytearray )):

            Extras[Key]='\x00byte\x00'+_encode(Val).decode()

        elif isinstance( Val, str ):

            if Val[0:1]=='\x00':

                Extras[Key]='\x00str\x00'+Val

        elif isinstance( Extras, dict ):

            Extras[Key]=_intentExtras(Val)

        elif isinstance( Val, Uri ):

            Extras[Key]='\x00uri\x00'+Val

    return Extras



class _uri(str):

    def __new__(cls,arg):

        HEAD='\x00uri\x00'

        if arg[:5]!=HEAD:

            arg=HEAD+arg

        return super(_uri,cls).__new__(cls,arg)

    def __repr__(self):

        return 'Uri("'+self[5:]+'")'

    def __str__(self):

        return self[5:]



from .__init__ import Android as _encode

_uri.__doc__=_encode.Uri.__doc__

from base64 import b64encode as _encode

<back> \ No newline at end of file diff --git a/source/qsl4a/R.html b/source/qsl4a/R.html new file mode 100644 index 0000000..e46b3a7 --- /dev/null +++ b/source/qsl4a/R.html @@ -0,0 +1 @@ +R

android.R module, include id,layout,style Constants .

<back> \ No newline at end of file diff --git a/source/qsl4a/R.id.html b/source/qsl4a/R.id.html new file mode 100644 index 0000000..a350219 --- /dev/null +++ b/source/qsl4a/R.id.html @@ -0,0 +1 @@ +R.id

'android.R.id Constants, for more id Constants, please refer https://developer.android.google.cn/reference/android/R.id.html .'

text1=16908308

text2=16908309

<back> \ No newline at end of file diff --git a/source/qsl4a/R.layout.html b/source/qsl4a/R.layout.html new file mode 100644 index 0000000..f817f23 --- /dev/null +++ b/source/qsl4a/R.layout.html @@ -0,0 +1 @@ +R.layout

'android.R.layout Constants, for more layout Constants, please refer https://developer.android.google.cn/reference/android/R.layout.html .'

simple_list_item_1=17367043

simple_list_item_2=17367044

simple_expandable_list_item_1=17367046

simple_expandable_list_item_2=17367047

simple_spinner_item=17367048

simple_spinner_dropdown_item=17367049

<back> \ No newline at end of file diff --git a/source/qsl4a/R.style.html b/source/qsl4a/R.style.html new file mode 100644 index 0000000..a963a54 --- /dev/null +++ b/source/qsl4a/R.style.html @@ -0,0 +1 @@ +R.style

'android.R.style Constants, for more style Constants, please refer https://developer.android.google.cn/reference/android/R.style.html .'

Default=0

Theme_Black=16973832

Theme_Black_NoTitleBar=16973833

Theme_Black_NoTitleBar_Fullscreen=16973834

Theme_Light=16973836

Theme_Light_NoTitleBar=16973837

Theme_Light_NoTitleBar_Fullscreen=16973838

Theme_Light_Panel=16973914

Theme_Wallpaper=16973918

Theme_Wallpaper_NoTitleBar=16973919

Theme_Wallpaper_NoTitleBar_Fullscreen=16973920

Theme_Holo=16973931

Theme_Holo_Wallpaper=16973949

Theme_DeviceDefault_Panel=16974138

Theme_DeviceDefault_Wallpaper=16974140

Theme_DeviceDefault_Wallpaper_NoTitleBar=16974141

TextAppearance_DeviceDefault_Large_Inverse=16974256

TextAppearance_DeviceDefault_Medium_Inverse=16974258

Theme_DeviceDefault_Settings=16974371

<back> \ No newline at end of file diff --git a/source/qsl4a/Uri.html b/source/qsl4a/Uri.html new file mode 100644 index 0000000..932ec5d --- /dev/null +++ b/source/qsl4a/Uri.html @@ -0,0 +1 @@ +Uri

Uri(uriString)

    Convert Uri String to Uri Object, use for droid.makeIntent / droid.startActivity / droid.startActivityForResult / droid.startActivityIntent extras .

    return Uri Object .

<back> \ No newline at end of file diff --git a/source/qsl4a/backgroundProtect.html b/source/qsl4a/backgroundProtect.html new file mode 100644 index 0000000..846e92d --- /dev/null +++ b/source/qsl4a/backgroundProtect.html @@ -0,0 +1 @@ +backgroundProtect

backgroundProtect(enabled = True)

Open the hide suspension window to prevent QPython from being accidentally closed in the background .

    Only support Android >= 8.0 .

    enabled (Boolean Optional) start or close Background Protect hide suspension window .

    Return None .

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryCheckPresent.html b/source/qsl4a/batteryCheckPresent.html new file mode 100644 index 0000000..1b827d1 --- /dev/null +++ b/source/qsl4a/batteryCheckPresent.html @@ -0,0 +1 @@ +batteryCheckPresent

batteryCheckPresent()

Returns the most recently received battery presence data.

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetCurrent.html b/source/qsl4a/batteryGetCurrent.html new file mode 100644 index 0000000..2d50119 --- /dev/null +++ b/source/qsl4a/batteryGetCurrent.html @@ -0,0 +1 @@ +batteryGetCurrent

batteryGetCurrent()

Returns the most recently received battery Now Current mA .

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetHealth.html b/source/qsl4a/batteryGetHealth.html new file mode 100644 index 0000000..d91bcb8 --- /dev/null +++ b/source/qsl4a/batteryGetHealth.html @@ -0,0 +1 @@ +batteryGetHealth

batteryGetHealth()

Returns the most recently received battery health data:1 - unknown;2 - good;3 - overheat;4 - dead;5 - over voltage;6 - unspecified failure;

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetLevel.html b/source/qsl4a/batteryGetLevel.html new file mode 100644 index 0000000..1309ae0 --- /dev/null +++ b/source/qsl4a/batteryGetLevel.html @@ -0,0 +1 @@ +batteryGetLevel

batteryGetLevel()

Returns the most recently received battery level (percentage).

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetPlugType.html b/source/qsl4a/batteryGetPlugType.html new file mode 100644 index 0000000..fa0ca42 --- /dev/null +++ b/source/qsl4a/batteryGetPlugType.html @@ -0,0 +1 @@ +batteryGetPlugType

batteryGetPlugType()

Returns the most recently received plug type data:

-1 - unknown;

0 - unplugged;

1 - power source is an AC charger;

2 - power source is a USB port

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetStatus.html b/source/qsl4a/batteryGetStatus.html new file mode 100644 index 0000000..b75eaf0 --- /dev/null +++ b/source/qsl4a/batteryGetStatus.html @@ -0,0 +1 @@ +batteryGetStatus

batteryGetStatus()

Returns  the most recently received battery status data:1 - unknown;2 - charging;3 - discharging;4 - not charging;5 - full;

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetTechnology.html b/source/qsl4a/batteryGetTechnology.html new file mode 100644 index 0000000..62a672f --- /dev/null +++ b/source/qsl4a/batteryGetTechnology.html @@ -0,0 +1 @@ +batteryGetTechnology

batteryGetTechnology()

Returns the most recently received battery technology data.

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetTemperature.html b/source/qsl4a/batteryGetTemperature.html new file mode 100644 index 0000000..3d112dc --- /dev/null +++ b/source/qsl4a/batteryGetTemperature.html @@ -0,0 +1 @@ +batteryGetTemperature

batteryGetTemperature()

Returns the most recently received battery temperature.

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryGetVoltage.html b/source/qsl4a/batteryGetVoltage.html new file mode 100644 index 0000000..b1ebaa4 --- /dev/null +++ b/source/qsl4a/batteryGetVoltage.html @@ -0,0 +1 @@ +batteryGetVoltage

batteryGetVoltage()

Returns the most recently received battery voltage mV .

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryStartMonitoring.html b/source/qsl4a/batteryStartMonitoring.html new file mode 100644 index 0000000..428c9cb --- /dev/null +++ b/source/qsl4a/batteryStartMonitoring.html @@ -0,0 +1 @@ +batteryStartMonitoring

batteryStartMonitoring()

Starts tracking battery state.

throws "battery" events

<back> \ No newline at end of file diff --git a/source/qsl4a/batteryStopMonitoring.html b/source/qsl4a/batteryStopMonitoring.html new file mode 100644 index 0000000..3a51214 --- /dev/null +++ b/source/qsl4a/batteryStopMonitoring.html @@ -0,0 +1 @@ +batteryStopMonitoring

batteryStopMonitoring()

Stops tracking battery state.

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothAccept.html b/source/qsl4a/bluetoothAccept.html new file mode 100644 index 0000000..eca4c94 --- /dev/null +++ b/source/qsl4a/bluetoothAccept.html @@ -0,0 +1 @@ +bluetoothAccept

bluetoothAccept(uuid="457807c0-4897-11df-9879-0800200c9a66",timeout=0)

Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails.

    uuid (String)  (default=457807c0-4897-11df-9879-0800200c9a66)

    timeout (Integer) How long to wait for a new connection, 0 is wait for ever (default=0)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothActiveConnections.html b/source/qsl4a/bluetoothActiveConnections.html new file mode 100644 index 0000000..c3e0a84 --- /dev/null +++ b/source/qsl4a/bluetoothActiveConnections.html @@ -0,0 +1 @@ +bluetoothActiveConnections

bluetoothActiveConnections()

Returns true when there's an active Bluetooth connection.

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothConnect.html b/source/qsl4a/bluetoothConnect.html new file mode 100644 index 0000000..61c66b2 --- /dev/null +++ b/source/qsl4a/bluetoothConnect.html @@ -0,0 +1 @@ +bluetoothConnect

bluetoothConnect(uuid="457807c0-4897-11df-9879-0800200c9a66",address=None)

Connect to a device over Bluetooth. Blocks until the connection is established or fails.

    uuid (String) The UUID passed here must match the UUID used by the server device. (default=457807c0-4897-11df-9879-0800200c9a66)

    address (String) The user will be presented with a list of discovered devices to choose from if an address is not provided. (optional)

returns: (String) True if the connection was established successfully.

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothDiscoveryCancel.html b/source/qsl4a/bluetoothDiscoveryCancel.html new file mode 100644 index 0000000..f85ecee --- /dev/null +++ b/source/qsl4a/bluetoothDiscoveryCancel.html @@ -0,0 +1 @@ +bluetoothDiscoveryCancel

bluetoothDiscoveryCancel()

    Cancel Bluetooth Discovery

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothDiscoveryStart.html b/source/qsl4a/bluetoothDiscoveryStart.html new file mode 100644 index 0000000..546e90c --- /dev/null +++ b/source/qsl4a/bluetoothDiscoveryStart.html @@ -0,0 +1 @@ +bluetoothDiscoveryStart

bluetoothDiscoveryStart()

    Start Bluetooth Discovery

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetBondedDevices.html b/source/qsl4a/bluetoothGetBondedDevices.html new file mode 100644 index 0000000..b691dc6 --- /dev/null +++ b/source/qsl4a/bluetoothGetBondedDevices.html @@ -0,0 +1 @@ +bluetoothGetBondedDevices

bluetoothGetBondedDevices()

    Get bonded devices , with address,name,type,bondState,uuid .

    You need to open Bluetooth with droid.toggleBluetoothState(True) .

    If you call droid.bluetoothGetBondedDevicesRssi(interval) with interval>0 first , it will return rssi of connected device at the same time .

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetBondedDevicesRssi.html b/source/qsl4a/bluetoothGetBondedDevicesRssi.html new file mode 100644 index 0000000..0677408 --- /dev/null +++ b/source/qsl4a/bluetoothGetBondedDevicesRssi.html @@ -0,0 +1 @@ +bluetoothGetBondedDevicesRssi

bluetoothGetBondedDevicesRssi(interval=None)

  interval (Integer Optional)

    If interval > 0 , start detect connected devices' Rssi,

    if interval < 0 , stop detect connected devices' Rssi,

    if interval == 0 or interval == None , return connected device's address and Rssi, or return unconnected devices' address , you need to call droid.bluetoothGetBondedDevicesRssi(interval) with interval>0 first .

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetConnectedDeviceName.html b/source/qsl4a/bluetoothGetConnectedDeviceName.html new file mode 100644 index 0000000..c2698b1 --- /dev/null +++ b/source/qsl4a/bluetoothGetConnectedDeviceName.html @@ -0,0 +1 @@ +bluetoothGetConnectedDeviceName

bluetoothGetConnectedDeviceName(connID=None)

Returns the name of the connected device.

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetLocalName.html b/source/qsl4a/bluetoothGetLocalName.html new file mode 100644 index 0000000..2ad18da --- /dev/null +++ b/source/qsl4a/bluetoothGetLocalName.html @@ -0,0 +1 @@ +bluetoothGetLocalName

bluetoothGetLocalName()

Gets the Bluetooth Visible device name

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetReceivedDevices.html b/source/qsl4a/bluetoothGetReceivedDevices.html new file mode 100644 index 0000000..042878f --- /dev/null +++ b/source/qsl4a/bluetoothGetReceivedDevices.html @@ -0,0 +1 @@ +bluetoothGetReceivedDevices

bluetoothGetReceivedDevices()

    Get received Bluetooth devices after droid.bluetoothDiscoveryStart() function

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetRemoteDeviceName.html b/source/qsl4a/bluetoothGetRemoteDeviceName.html new file mode 100644 index 0000000..2a49cb2 --- /dev/null +++ b/source/qsl4a/bluetoothGetRemoteDeviceName.html @@ -0,0 +1 @@ +bluetoothGetRemoteDeviceName

bluetoothGetRemoteDeviceName(address)

Queries a remote device for it's name or null if it can't be resolved

    address (String) Bluetooth Address For Target Device

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothGetScanMode.html b/source/qsl4a/bluetoothGetScanMode.html new file mode 100644 index 0000000..989f933 --- /dev/null +++ b/source/qsl4a/bluetoothGetScanMode.html @@ -0,0 +1 @@ +bluetoothGetScanMode

bluetoothGetScanMode()

Gets the scan mode for the local dongle.

Return values:

    -1 when Bluetooth is disabled.

    0 if non discoverable and non connectable.

    1 connectable non discoverable.

    3 connectable and discoverable.

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothMakeDiscoverable.html b/source/qsl4a/bluetoothMakeDiscoverable.html new file mode 100644 index 0000000..116376f --- /dev/null +++ b/source/qsl4a/bluetoothMakeDiscoverable.html @@ -0,0 +1 @@ +bluetoothMakeDiscoverable

bluetoothMakeDiscoverable(duration=300)

Requests that the device be discoverable for Bluetooth connections.

    duration (Integer) period of time, in seconds, during which the device should be discoverable (default=300)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothRead.html b/source/qsl4a/bluetoothRead.html new file mode 100644 index 0000000..5c7538c --- /dev/null +++ b/source/qsl4a/bluetoothRead.html @@ -0,0 +1 @@ +bluetoothRead

bluetoothRead(bufferSize=4096,connID=None)

Read up to bufferSize ASCII characters.

    bufferSize (Integer)  (default=4096)

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothReadBinary.html b/source/qsl4a/bluetoothReadBinary.html new file mode 100644 index 0000000..0850140 --- /dev/null +++ b/source/qsl4a/bluetoothReadBinary.html @@ -0,0 +1 @@ +bluetoothReadBinary

bluetoothReadBinary(bufferSize=4096,connID=None)

Read up to bufferSize bytes and return a chunked, base64 encoded string.

    bufferSize (Integer)  (default=4096)

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothReadLine.html b/source/qsl4a/bluetoothReadLine.html new file mode 100644 index 0000000..eff4b2c --- /dev/null +++ b/source/qsl4a/bluetoothReadLine.html @@ -0,0 +1 @@ +bluetoothReadLine

bluetoothReadLine(connID=None)

Read the next line.

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothReadReady.html b/source/qsl4a/bluetoothReadReady.html new file mode 100644 index 0000000..2329652 --- /dev/null +++ b/source/qsl4a/bluetoothReadReady.html @@ -0,0 +1 @@ +bluetoothReadReady

bluetoothReadReady(connID=None)

Returns True if the next read is guaranteed not to block.

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothSetLocalName.html b/source/qsl4a/bluetoothSetLocalName.html new file mode 100644 index 0000000..93df693 --- /dev/null +++ b/source/qsl4a/bluetoothSetLocalName.html @@ -0,0 +1 @@ +bluetoothSetLocalName

bluetoothSetLocalName(name)

Sets the Bluetooth Visible device name, returns True on success

    name (String) New local name

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothStop.html b/source/qsl4a/bluetoothStop.html new file mode 100644 index 0000000..cc076da --- /dev/null +++ b/source/qsl4a/bluetoothStop.html @@ -0,0 +1 @@ +bluetoothStop

bluetoothStop(connID=None)

Stops Bluetooth connection.

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothWrite.html b/source/qsl4a/bluetoothWrite.html new file mode 100644 index 0000000..c1ef9cb --- /dev/null +++ b/source/qsl4a/bluetoothWrite.html @@ -0,0 +1 @@ +bluetoothWrite

bluetoothWrite(ascii,connID="")

Sends ASCII characters over the currently open Bluetooth connection.

    ascii (String)

    connID (String) Connection id (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/bluetoothWriteBinary.html b/source/qsl4a/bluetoothWriteBinary.html new file mode 100644 index 0000000..d2a5f22 --- /dev/null +++ b/source/qsl4a/bluetoothWriteBinary.html @@ -0,0 +1 @@ +bluetoothWriteBinary

bluetoothWriteBinary(base64,connID=None)

Send bytes over the currently open Bluetooth connection.

    base64 (String) A base64 encoded String of the bytes to be sent.

    connID (String) Connection id (optional) (default=)

<back> \ No newline at end of file diff --git a/source/qsl4a/cameraCapturePicture.html b/source/qsl4a/cameraCapturePicture.html new file mode 100644 index 0000000..193e9e0 --- /dev/null +++ b/source/qsl4a/cameraCapturePicture.html @@ -0,0 +1 @@ +cameraCapturePicture

cameraCapturePicture(targetPath = None, cameraId = 0, useAutoFocus = True)

Take a picture and save it to the specified path.

    targetPath (String Optional) if omitted, use default path

    cameraId (Integer Optional)

    useAutoFocus (Boolean Optional)

returns: targetPath





cameraCapturePicture.CAMERA_FRONT  =  1

cameraCapturePicture.CAMERA_BACK   =  0

<back> \ No newline at end of file diff --git a/source/qsl4a/cameraSetTorchMode.html b/source/qsl4a/cameraSetTorchMode.html new file mode 100644 index 0000000..9262db5 --- /dev/null +++ b/source/qsl4a/cameraSetTorchMode.html @@ -0,0 +1 @@ +cameraSetTorchMode

cameraSetTorchMode(enabled)

set Camera Torch on/off

    enabled (Boolean) True=on, False=off.

<back> \ No newline at end of file diff --git a/source/qsl4a/cameraStartPreview.html b/source/qsl4a/cameraStartPreview.html new file mode 100644 index 0000000..a39631f --- /dev/null +++ b/source/qsl4a/cameraStartPreview.html @@ -0,0 +1 @@ +cameraStartPreview

cameraStartPreview(resolutionLevel=0,jpegQuality=20,filepath=None)

Start Preview Mode. Throws \'preview\' events.

    resolutionLevel (Integer) increasing this number provides higher resolution (default=0)

    jpegQuality (Integer) a number from 0-100 (default=20)

    filepath (String) Path to store jpeg files. (optional)

returns: (boolean) True if successful

<back> \ No newline at end of file diff --git a/source/qsl4a/cameraStopPreview.html b/source/qsl4a/cameraStopPreview.html new file mode 100644 index 0000000..9d17367 --- /dev/null +++ b/source/qsl4a/cameraStopPreview.html @@ -0,0 +1 @@ +cameraStopPreview

cameraStopPreview()

Stop the preview mode.

<back> \ No newline at end of file diff --git a/source/qsl4a/checkAirplaneMode.html b/source/qsl4a/checkAirplaneMode.html new file mode 100644 index 0000000..88a881b --- /dev/null +++ b/source/qsl4a/checkAirplaneMode.html @@ -0,0 +1 @@ +checkAirplaneMode

checkAirplaneMode()

Checks the airplane mode setting.

returns: (Boolean) True if airplane mode is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/checkBluetoothState.html b/source/qsl4a/checkBluetoothState.html new file mode 100644 index 0000000..5c9730c --- /dev/null +++ b/source/qsl4a/checkBluetoothState.html @@ -0,0 +1 @@ +checkBluetoothState

checkBluetoothState()

Checks Bluetooth state.

returns: (Boolean) True if Bluetooth is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/checkNetworkRoaming.html b/source/qsl4a/checkNetworkRoaming.html new file mode 100644 index 0000000..7af0062 --- /dev/null +++ b/source/qsl4a/checkNetworkRoaming.html @@ -0,0 +1 @@ +checkNetworkRoaming

checkNetworkRoaming()

Returns true if the device is considered roaming on the current network, for GSM purposes.

<back> \ No newline at end of file diff --git a/source/qsl4a/checkPermissions.html b/source/qsl4a/checkPermissions.html new file mode 100644 index 0000000..265797d --- /dev/null +++ b/source/qsl4a/checkPermissions.html @@ -0,0 +1 @@ +checkPermissions

checkPermissions()

  Return a dict contains key "granted" and "denied", which indicate the permission that QPython have and not have .

<back> \ No newline at end of file diff --git a/source/qsl4a/checkRingerSilentMode.html b/source/qsl4a/checkRingerSilentMode.html new file mode 100644 index 0000000..a6253a7 --- /dev/null +++ b/source/qsl4a/checkRingerSilentMode.html @@ -0,0 +1 @@ +checkRingerSilentMode

checkRingerSilentMode()

Checks the ringer silent mode setting.

returns: (Boolean) True if ringer silent mode is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/checkScreenOn.html b/source/qsl4a/checkScreenOn.html new file mode 100644 index 0000000..b749b9a --- /dev/null +++ b/source/qsl4a/checkScreenOn.html @@ -0,0 +1 @@ +checkScreenOn

checkScreenOn()

Checks if the screen is on or off (requires API level 7).

returns: (Boolean) True if the screen is currently on.

<back> \ No newline at end of file diff --git a/source/qsl4a/checkWifiState.html b/source/qsl4a/checkWifiState.html new file mode 100644 index 0000000..8a384d6 --- /dev/null +++ b/source/qsl4a/checkWifiState.html @@ -0,0 +1 @@ +checkWifiState

checkWifiState()

Checks Wifi state.

returns: (Boolean) True if Wifi is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/cipherInit.html b/source/qsl4a/cipherInit.html new file mode 100644 index 0000000..c7c43fb --- /dev/null +++ b/source/qsl4a/cipherInit.html @@ -0,0 +1 @@ +cipherInit

cipherInit( key, algorithm = "AES/CBC/PKCS5Padding", encodingFormat = "", initialVector = "" )

Cipher Initialize

key (String / Bytes)

algorithm (String Optional)

encodingFormat (String Optional)

initialVector (String / Bytes Optional)

if encodingFormat is UTF-8 or GBK etc., key and initialVector are Normal ( UTF-8 or GBK etc. ) String, if encodingFormat is omitted ( empty default ) , key and initialVector are Base64 String or Bytes .

algorithm support AES or DES etc.

if algorithm is AES, key need 16/24/32 bytes, if algorithm is DES, key need 8 bytes.

If initialVector used in AES/CBC algorithm, it need 16 bytes; if initialVector used in DES/CBC algorithm, it need 8 bytes.

If initialVector is omitted ( empty default ), then initialVector is set to be the same as key.

If an error occred from other encrypt/decrypt function, you need to run this function with the same parameters first, otherwise subsequent encryption and decryption operations will not proceed properly .

<back> \ No newline at end of file diff --git a/source/qsl4a/contactsGet.html b/source/qsl4a/contactsGet.html new file mode 100644 index 0000000..b6bfdf0 --- /dev/null +++ b/source/qsl4a/contactsGet.html @@ -0,0 +1 @@ +contactsGet

contactsGet(attributes=None)

Returns a List of all contacts.

    attributes (JSONArray)  (optional)

returns: (List) a List of contacts as Maps

<back> \ No newline at end of file diff --git a/source/qsl4a/contactsGetAttributes.html b/source/qsl4a/contactsGetAttributes.html new file mode 100644 index 0000000..0ba6d7d --- /dev/null +++ b/source/qsl4a/contactsGetAttributes.html @@ -0,0 +1 @@ +contactsGetAttributes

contactsGetAttributes()

Returns a List of all possible attributes for contacts.

<back> \ No newline at end of file diff --git a/source/qsl4a/contactsGetById.html b/source/qsl4a/contactsGetById.html new file mode 100644 index 0000000..26f23ad --- /dev/null +++ b/source/qsl4a/contactsGetById.html @@ -0,0 +1 @@ +contactsGetById

contactsGetById(id,attributes=None)

Returns contacts by ID.

    id (Integer)

    attributes (JSONArray)  (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/contactsGetCount.html b/source/qsl4a/contactsGetCount.html new file mode 100644 index 0000000..495f52d --- /dev/null +++ b/source/qsl4a/contactsGetCount.html @@ -0,0 +1 @@ +contactsGetCount

contactsGetCount()

Returns the number of contacts.

<back> \ No newline at end of file diff --git a/source/qsl4a/contactsGetIds.html b/source/qsl4a/contactsGetIds.html new file mode 100644 index 0000000..ebada30 --- /dev/null +++ b/source/qsl4a/contactsGetIds.html @@ -0,0 +1 @@ +contactsGetIds

contactsGetIds()

Returns a List of all contact IDs.

<back> \ No newline at end of file diff --git a/source/qsl4a/createScriptShortCut.html b/source/qsl4a/createScriptShortCut.html new file mode 100644 index 0000000..273a7d0 --- /dev/null +++ b/source/qsl4a/createScriptShortCut.html @@ -0,0 +1 @@ +createScriptShortCut

createScriptShortCut(scriptPath,label=None,iconPath=None,scriptArg=None)

create Python Script ShortCut, Create ShortCut Permission is Required .

    scriptPath (String)

    label (String Optional) Text to Show on ShortCut

    iconPath (String Optional) Image Path to Show as ShortCut's Icon

    scriptArg (String Optional)

    return None

Need Android >= 8.0 .

<back> \ No newline at end of file diff --git a/source/qsl4a/decryptBytes.html b/source/qsl4a/decryptBytes.html new file mode 100644 index 0000000..eba7ac5 --- /dev/null +++ b/source/qsl4a/decryptBytes.html @@ -0,0 +1 @@ +decryptBytes

decryptBytes( srcBytes )

Decrypt a Bytes to another Bytes,

needs to run droid.cipherInit first , and encodingFormat must omitted .

srcBytes (Bytes)

<back> \ No newline at end of file diff --git a/source/qsl4a/decryptFile.html b/source/qsl4a/decryptFile.html new file mode 100644 index 0000000..e304c54 --- /dev/null +++ b/source/qsl4a/decryptFile.html @@ -0,0 +1 @@ +decryptFile

decryptFile( srcFile, dstFile )

Decrypt a File to another File,

needs to run droid.cipherInit first .

if you want to operate files in Media Storage Device or /sdcard/Android/data/<packagename> , run droid.documentTreeShowOpen first .

srcFile (String)

dstFile (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/decryptFileToBytes.html b/source/qsl4a/decryptFileToBytes.html new file mode 100644 index 0000000..8e0c1a7 --- /dev/null +++ b/source/qsl4a/decryptFileToBytes.html @@ -0,0 +1 @@ +decryptFileToBytes

decryptFileToBytes( srcFile )

Decrypt a File to another Bytes,

needs to run droid.cipherInit first , and encodingFormat must omitted .

if you want to operate files in Media Storage Device or /sdcard/Android/data/<packagename> , run droid.documentTreeShowOpen first .

srcFile (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/decryptFileToString.html b/source/qsl4a/decryptFileToString.html new file mode 100644 index 0000000..4d16cb2 --- /dev/null +++ b/source/qsl4a/decryptFileToString.html @@ -0,0 +1 @@ +decryptFileToString

decryptFileToString( srcFile )

Decrypt a File to another Normal / Base64 String,

needs to run droid.cipherInit first .

if you want to operate files in Media Storage Device or /sdcard/Android/data/<packagename> , run droid.documentTreeShowOpen first .

srcFile (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/decryptString.html b/source/qsl4a/decryptString.html new file mode 100644 index 0000000..8325e9b --- /dev/null +++ b/source/qsl4a/decryptString.html @@ -0,0 +1 @@ +decryptString

decryptString( srcString )

Decrypt a Base64 String to another Normal / Base64 String,

needs to run droid.cipherInit first .

srcString (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateAlert.html b/source/qsl4a/dialogCreateAlert.html new file mode 100644 index 0000000..dadb4c3 --- /dev/null +++ b/source/qsl4a/dialogCreateAlert.html @@ -0,0 +1 @@ +dialogCreateAlert

dialogCreateAlert(title=None,message=None)

Create alert dialog.

    title (String)  (optional)

    message (String)  (optional)

Example (python)

import androidhelper

droid=androidhelper.Android()

droid.dialogCreateAlert("I like swords.","Do you like swords?")

droid.dialogSetPositiveButtonText("Yes")

droid.dialogSetNegativeButtonText("No")

droid.dialogShow()

response=droid.dialogGetResponse().result

droid.dialogDismiss()

if response.has_key("which"):

    result=response["which"]

if result=="positive":

    print("Yay! I like swords too!")

elif result=="negative":

    print("Oh. How sad.")

elif response.has_key("canceled"): # Yes, I know it's mispelled.

    print("You can't even make up your mind?")

else:

    print("Unknown response=",response)

    print("Done")

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateDatePicker.html b/source/qsl4a/dialogCreateDatePicker.html new file mode 100644 index 0000000..9242557 --- /dev/null +++ b/source/qsl4a/dialogCreateDatePicker.html @@ -0,0 +1 @@ +dialogCreateDatePicker

dialogCreateDatePicker(year=1970,month=1,day=1)

Create date picker dialog.

    year (Integer)  (default=1970)

    month (Integer)  (default=1)

    day (Integer)  (default=1)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateHorizontalProgress.html b/source/qsl4a/dialogCreateHorizontalProgress.html new file mode 100644 index 0000000..c3a9162 --- /dev/null +++ b/source/qsl4a/dialogCreateHorizontalProgress.html @@ -0,0 +1 @@ +dialogCreateHorizontalProgress

dialogCreateHorizontalProgress(title=None,message=None,maximum_progress=100)

Create a horizontal progress dialog.

    title (String)  (optional)

    message (String)  (optional)

    maximum progress (Integer)  (default=100)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateInput.html b/source/qsl4a/dialogCreateInput.html new file mode 100644 index 0000000..db44a74 --- /dev/null +++ b/source/qsl4a/dialogCreateInput.html @@ -0,0 +1 @@ +dialogCreateInput

dialogCreateInput(title="Value",message="Please enter value:",defaultText=None,inputType=None)

Create a text input dialog.

    title (String) title of the input box (default=Value)

    message (String) message to display above the input box (default=Please enter value:)

    defaultText (String) text to insert into the input box (optional)

    inputType (String) type of input data, ie number or text (optional)

For inputType, see InputTypes. Some useful ones are text, number, and textUri. Multiple flags can be

supplied, seperated by "|", ie: "textUri|textAutoComplete"

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreatePassword.html b/source/qsl4a/dialogCreatePassword.html new file mode 100644 index 0000000..3c962bd --- /dev/null +++ b/source/qsl4a/dialogCreatePassword.html @@ -0,0 +1 @@ +dialogCreatePassword

dialogCreatePassword(title="Password",message="Please enter password:")

Create a password input dialog.

    title (String) title of the input box (default=Password)

    message (String) message to display above the input box (default=Please enter password:)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateSeekBar.html b/source/qsl4a/dialogCreateSeekBar.html new file mode 100644 index 0000000..190bf4c --- /dev/null +++ b/source/qsl4a/dialogCreateSeekBar.html @@ -0,0 +1 @@ +dialogCreateSeekBar

dialogCreateSeekBar(starting_value=50,maximum_value=100,title,message)

Create seek bar dialog.

    starting value (Integer)  (default=50)

    maximum value (Integer)  (default=100)

    title (String)

    message (String)

Will produce "dialog" events on change, containing:

"progress" - Position chosen, between 0 and max

"which" = "seekbar"

"fromuser" = true/false change is from user input

Response will contain a "progress" element.

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateSpinnerProgress.html b/source/qsl4a/dialogCreateSpinnerProgress.html new file mode 100644 index 0000000..d05d1c7 --- /dev/null +++ b/source/qsl4a/dialogCreateSpinnerProgress.html @@ -0,0 +1 @@ +dialogCreateSpinnerProgress

dialogCreateSpinnerProgress(title=None,message=None,maximum_progress=100)

Create a spinner progress dialog.

    title (String)  (optional)

    message (String)  (optional)

    maximum progress (Integer)  (default=100)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogCreateTimePicker.html b/source/qsl4a/dialogCreateTimePicker.html new file mode 100644 index 0000000..1053bb3 --- /dev/null +++ b/source/qsl4a/dialogCreateTimePicker.html @@ -0,0 +1 @@ +dialogCreateTimePicker

dialogCreateTimePicker(hour=0,minute=0,is24hour=False)

Create time picker dialog.

    hour (Integer)  (default=0)

    minute (Integer)  (default=0)

    is24hour (Boolean) Use 24 hour clock (default=false)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogDismiss.html b/source/qsl4a/dialogDismiss.html new file mode 100644 index 0000000..1cbdc46 --- /dev/null +++ b/source/qsl4a/dialogDismiss.html @@ -0,0 +1 @@ +dialogDismiss

dialogDismiss()

Dismiss dialog.

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogGetInput.html b/source/qsl4a/dialogGetInput.html new file mode 100644 index 0000000..0c1231a --- /dev/null +++ b/source/qsl4a/dialogGetInput.html @@ -0,0 +1 @@ +dialogGetInput

dialogGetInput(title="Value",message="Please enter value:",defaultText=None)

Queries the user for a text input.

    title (String) title of the input box (default=Value)

    message (String) message to display above the input box (default=Please enter value:)

    defaultText (String) text to insert into the input box (optional)

The result is the user's input, or None (null) if cancel was hit.

Example (python)

import android

droid=android.Android()

print droid.dialogGetInput("Title","Message","Default").result

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogGetPassword.html b/source/qsl4a/dialogGetPassword.html new file mode 100644 index 0000000..f057360 --- /dev/null +++ b/source/qsl4a/dialogGetPassword.html @@ -0,0 +1 @@ +dialogGetPassword

dialogGetPassword(title="Password",message="Please enter password:")

Queries the user for a password.

    title (String) title of the password box (default=Password)

    message (String) message to display above the input box (default=Please enter password:)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogGetResponse.html b/source/qsl4a/dialogGetResponse.html new file mode 100644 index 0000000..6f27511 --- /dev/null +++ b/source/qsl4a/dialogGetResponse.html @@ -0,0 +1 @@ +dialogGetResponse

dialogGetResponse()

Returns dialog response.

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogGetSelectedItems.html b/source/qsl4a/dialogGetSelectedItems.html new file mode 100644 index 0000000..93511c7 --- /dev/null +++ b/source/qsl4a/dialogGetSelectedItems.html @@ -0,0 +1 @@ +dialogGetSelectedItems

dialogGetSelectedItems()

This method provides list of items user selected.

returns: (Set) Selected items

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetCurrentProgress.html b/source/qsl4a/dialogSetCurrentProgress.html new file mode 100644 index 0000000..a5a6e10 --- /dev/null +++ b/source/qsl4a/dialogSetCurrentProgress.html @@ -0,0 +1 @@ +dialogSetCurrentProgress

dialogSetCurrentProgress(current)

Set progress dialog current value.

    current (Integer)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetItems.html b/source/qsl4a/dialogSetItems.html new file mode 100644 index 0000000..db33a70 --- /dev/null +++ b/source/qsl4a/dialogSetItems.html @@ -0,0 +1 @@ +dialogSetItems

dialogSetItems(items)

Set alert dialog list items.

    items (JSONArray)

This effectively creates list of options. Clicking on an item will immediately return an "item"

element, which is the index of the selected item.

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetMaxProgress.html b/source/qsl4a/dialogSetMaxProgress.html new file mode 100644 index 0000000..ad56695 --- /dev/null +++ b/source/qsl4a/dialogSetMaxProgress.html @@ -0,0 +1 @@ +dialogSetMaxProgress

dialogSetMaxProgress(max)

Set progress dialog maximum value.

    max (Integer)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetMessageIsHtml.html b/source/qsl4a/dialogSetMessageIsHtml.html new file mode 100644 index 0000000..5ed2d6c --- /dev/null +++ b/source/qsl4a/dialogSetMessageIsHtml.html @@ -0,0 +1 @@ +dialogSetMessageIsHtml

dialogSetMessageIsHtml(messageIsHtml = True)

    Make Alert Dialog Message from Plain Text to Html .

    messageIsHtml (Boolean Optional)

    Return None .

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetMultiChoiceItems.html b/source/qsl4a/dialogSetMultiChoiceItems.html new file mode 100644 index 0000000..94630bf --- /dev/null +++ b/source/qsl4a/dialogSetMultiChoiceItems.html @@ -0,0 +1 @@ +dialogSetMultiChoiceItems

dialogSetMultiChoiceItems(items,selected=None)

Set dialog multiple choice items and selection.

    items (JSONArray)

    selected (JSONArray) list of selected items (optional)

This creates a list of check boxes. You can select multiple items out of the list. A response

will not be returned until the dialog is closed, either with the Cancel key or a button

(positive/negative/neutral). Use dialogGetSelectedItems() to find out what was

selected.

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetNegativeButtonText.html b/source/qsl4a/dialogSetNegativeButtonText.html new file mode 100644 index 0000000..22ddc2a --- /dev/null +++ b/source/qsl4a/dialogSetNegativeButtonText.html @@ -0,0 +1 @@ +dialogSetNegativeButtonText

dialogSetNegativeButtonText(text)

Set alert dialog button text.

    text (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetNeutralButtonText.html b/source/qsl4a/dialogSetNeutralButtonText.html new file mode 100644 index 0000000..96048a3 --- /dev/null +++ b/source/qsl4a/dialogSetNeutralButtonText.html @@ -0,0 +1 @@ +dialogSetNeutralButtonText

dialogSetNeutralButtonText(text)

Set alert dialog button text.

    text (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetPositiveButtonText.html b/source/qsl4a/dialogSetPositiveButtonText.html new file mode 100644 index 0000000..0d27ece --- /dev/null +++ b/source/qsl4a/dialogSetPositiveButtonText.html @@ -0,0 +1 @@ +dialogSetPositiveButtonText

dialogSetPositiveButtonText(text)

Set alert dialog positive button text.

    text (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetProgressMessage.html b/source/qsl4a/dialogSetProgressMessage.html new file mode 100644 index 0000000..ccfee90 --- /dev/null +++ b/source/qsl4a/dialogSetProgressMessage.html @@ -0,0 +1 @@ +dialogSetProgressMessage

dialogSetProgressMessage(message)

Set progress dialog message .

    message (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogSetSingleChoiceItems.html b/source/qsl4a/dialogSetSingleChoiceItems.html new file mode 100644 index 0000000..1b47d8e --- /dev/null +++ b/source/qsl4a/dialogSetSingleChoiceItems.html @@ -0,0 +1 @@ +dialogSetSingleChoiceItems

dialogSetSingleChoiceItems(items,selected=0)

Set dialog single choice items and selected item.

    items (JSONArray)

    selected (Integer) selected item index (default=0)

This creates a list of radio buttons. You can select one item out of the list. A response will

not be returned until the dialog is closed, either with the Cancel key or a button

(positive/negative/neutral). Use dialogGetSelectedItems() to find out what was

selected.

<back> \ No newline at end of file diff --git a/source/qsl4a/dialogShow.html b/source/qsl4a/dialogShow.html new file mode 100644 index 0000000..de808e3 --- /dev/null +++ b/source/qsl4a/dialogShow.html @@ -0,0 +1 @@ +dialogShow

dialogShow()

Show dialog.

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileCopy.html b/source/qsl4a/documentFileCopy.html new file mode 100644 index 0000000..8a80bc3 --- /dev/null +++ b/source/qsl4a/documentFileCopy.html @@ -0,0 +1 @@ +documentFileCopy

        documentFileCopy( SrcFileOrTree, DestFileOrTree )

          Return None .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileDelete.html b/source/qsl4a/documentFileDelete.html new file mode 100644 index 0000000..98719b9 --- /dev/null +++ b/source/qsl4a/documentFileDelete.html @@ -0,0 +1 @@ +documentFileDelete

        documentFileDelete( FileOrTree )

          Return True if Success .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileExists.html b/source/qsl4a/documentFileExists.html new file mode 100644 index 0000000..6fab690 --- /dev/null +++ b/source/qsl4a/documentFileExists.html @@ -0,0 +1 @@ +documentFileExists

        documentFileExists(path)

        Return a path is exists ,

            path (String)

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileGetStat.html b/source/qsl4a/documentFileGetStat.html new file mode 100644 index 0000000..324b3cf --- /dev/null +++ b/source/qsl4a/documentFileGetStat.html @@ -0,0 +1 @@ +documentFileGetStat

        documentFileGetStat(path)

        Return a dict of file length , last modified and file can read/write ,

            if path not exists or not available , return None .

            path (String)

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileGetUri.html b/source/qsl4a/documentFileGetUri.html new file mode 100644 index 0000000..f6c45a7 --- /dev/null +++ b/source/qsl4a/documentFileGetUri.html @@ -0,0 +1 @@ +documentFileGetUri

        documentFileGetUri(path, isDirectory = None)

        Return "content://com.android.externalstorage.documents/<ContentPaths>" according to the specific path .

            path (String)

            isDirectory (Boolean Optional) :

                True  - must     be         a directory , create an empty folder         if not exist ;

                False - must not be         a directory , create an empty file           if not exist ;

                None  - don't know if it is a directory , create nothing and return None if not exist .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileInputStream.html b/source/qsl4a/documentFileInputStream.html new file mode 100644 index 0000000..fd6a2aa --- /dev/null +++ b/source/qsl4a/documentFileInputStream.html @@ -0,0 +1 @@ +documentFileInputStream

        documentFileInputStream( srcFile, EncodingFormat = "", skip = None, length = None )

        documentFileReadFrom is the same as documentFileInputStream .

        If EncodingFormat is omitted ( empty default ) , this function will return Bytes ;

        If EncodingFormat is Base64 , this function will return Base64 String ;

        If EncodingFormat is UTF-8 or GBK etc , this function will return Normal String .

        If skip is None default, skip == 0 (start of srcFile) , otherwise skip bytes from srcFile's head,

        If length is None default, length means rest of srcFile, read length bytes from skip place .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileIsDirectory.html b/source/qsl4a/documentFileIsDirectory.html new file mode 100644 index 0000000..5331550 --- /dev/null +++ b/source/qsl4a/documentFileIsDirectory.html @@ -0,0 +1 @@ +documentFileIsDirectory

        documentFileIsDirectory(path)

        Return a path is a directory ,

            if path not exists or not available , return None .

            path (String)

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileIsFile.html b/source/qsl4a/documentFileIsFile.html new file mode 100644 index 0000000..e4bfa82 --- /dev/null +++ b/source/qsl4a/documentFileIsFile.html @@ -0,0 +1 @@ +documentFileIsFile

        documentFileIsFile(path)

        Return a path is a file ,

            if path not exists or not available , return None .

            path (String)

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileLastModified.html b/source/qsl4a/documentFileLastModified.html new file mode 100644 index 0000000..02a117e --- /dev/null +++ b/source/qsl4a/documentFileLastModified.html @@ -0,0 +1 @@ +documentFileLastModified

        documentFileLastModified(path)

        Return a path's Last Modified time,

            if path not exists or not available , return 0 .

            path (String)

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileLength.html b/source/qsl4a/documentFileLength.html new file mode 100644 index 0000000..1558879 --- /dev/null +++ b/source/qsl4a/documentFileLength.html @@ -0,0 +1 @@ +documentFileLength

        documentFileLength(path)

        Return a path's file size,

            if path not exists or not available , return 0 .

            path (String)

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileListFiles.html b/source/qsl4a/documentFileListFiles.html new file mode 100644 index 0000000..d7e2472 --- /dev/null +++ b/source/qsl4a/documentFileListFiles.html @@ -0,0 +1 @@ +documentFileListFiles

        documentFileListFiles( Folder )

          Return List of Files of the Folder .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileMkdir.html b/source/qsl4a/documentFileMkdir.html new file mode 100644 index 0000000..c95000d --- /dev/null +++ b/source/qsl4a/documentFileMkdir.html @@ -0,0 +1 @@ +documentFileMkdir

        documentFileMkdir( Dir )

          Make New Directory(s)

          documentFileMkdirs is the same as documentFileMkdir .

          Return True if Success .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileMkdirs.html b/source/qsl4a/documentFileMkdirs.html new file mode 100644 index 0000000..3f83d3d --- /dev/null +++ b/source/qsl4a/documentFileMkdirs.html @@ -0,0 +1 @@ +documentFileMkdirs

        documentFileMkdir( Dir )

          Make New Directory(s)

          documentFileMkdirs is the same as documentFileMkdir .

          Return True if Success .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileMoveTo.html b/source/qsl4a/documentFileMoveTo.html new file mode 100644 index 0000000..4077ff4 --- /dev/null +++ b/source/qsl4a/documentFileMoveTo.html @@ -0,0 +1 @@ +documentFileMoveTo

        documentFileRenameTo( Src, Dest )

          documentFileMoveTo is the same as documentFileRenameTo

          Move or Rename Tree or File .

          Return True if Success .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileOutputStream.html b/source/qsl4a/documentFileOutputStream.html new file mode 100644 index 0000000..b5437f7 --- /dev/null +++ b/source/qsl4a/documentFileOutputStream.html @@ -0,0 +1 @@ +documentFileOutputStream

        documentFileOutputStream( destFile, src, EncodingFormat = "", append = None )

        documentFileWriteTo is the same as documentFileOutputStream .

        If EncodingFormat is omitted (empty default) , src will be Bytes ;

        If EncodingFormat is Base64 , src will be Base64 String ;

        If EncodingFormat is UTF-8 or GBK etc , src will be Normal String ;

        When a destFile exists, if append is True, append content to the end of the destFile, if append is False or None, overwrite the original destFile .

        This Function always return None .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileReadFrom.html b/source/qsl4a/documentFileReadFrom.html new file mode 100644 index 0000000..b30507a --- /dev/null +++ b/source/qsl4a/documentFileReadFrom.html @@ -0,0 +1 @@ +documentFileReadFrom

        documentFileInputStream( srcFile, EncodingFormat = "", skip = None, length = None )

        documentFileReadFrom is the same as documentFileInputStream .

        If EncodingFormat is omitted ( empty default ) , this function will return Bytes ;

        If EncodingFormat is Base64 , this function will return Base64 String ;

        If EncodingFormat is UTF-8 or GBK etc , this function will return Normal String .

        If skip is None default, skip == 0 (start of srcFile) , otherwise skip bytes from srcFile's head,

        If length is None default, length means rest of srcFile, read length bytes from skip place .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileRenameTo.html b/source/qsl4a/documentFileRenameTo.html new file mode 100644 index 0000000..f7de41b --- /dev/null +++ b/source/qsl4a/documentFileRenameTo.html @@ -0,0 +1 @@ +documentFileRenameTo

        documentFileRenameTo( Src, Dest )

          documentFileMoveTo is the same as documentFileRenameTo

          Move or Rename Tree or File .

          Return True if Success .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileShowOpen.html b/source/qsl4a/documentFileShowOpen.html new file mode 100644 index 0000000..d4e854b --- /dev/null +++ b/source/qsl4a/documentFileShowOpen.html @@ -0,0 +1 @@ +documentFileShowOpen

documentTreeShowOpen( rootPath = '/storage/emulated/0' )

    Request for Media Storage Write or "/storage/emulated/0/Android/<subPath>" Read/Write Permissions .

    documentFileShowOpen is the same as documentTreeShowOpen .

    rootPath (String)

    Return Uri String if Success , if Fail return None .



Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" ,

    documentTreeShowOpen will get all documentFile functions to androidhelper at the same time ,

    documentFile functions are very slow .



    For Media Storage Devices :

        use rootPath = "/storage/ABCD-EFGH" or "/mnt/ext_sdcard" , return "content://com.android.externalstorage.documents/<ContentPaths>" .



    For "/storage/emulated/0/Android/<subPath>" :

        For Android  7-10 , use rootPath = "/storage/emulated/0/Android/data"                  , return "file://<paths>" ;

        For Android 11-13 , use rootPath = "/storage/emulated/0/Android/data/the.package.name" , return "content://com.android.externalstorage.documents/<ContentPaths>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentFileWriteTo.html b/source/qsl4a/documentFileWriteTo.html new file mode 100644 index 0000000..b92cdf9 --- /dev/null +++ b/source/qsl4a/documentFileWriteTo.html @@ -0,0 +1 @@ +documentFileWriteTo

        documentFileOutputStream( destFile, src, EncodingFormat = "", append = None )

        documentFileWriteTo is the same as documentFileOutputStream .

        If EncodingFormat is omitted (empty default) , src will be Bytes ;

        If EncodingFormat is Base64 , src will be Base64 String ;

        If EncodingFormat is UTF-8 or GBK etc , src will be Normal String ;

        When a destFile exists, if append is True, append content to the end of the destFile, if append is False or None, overwrite the original destFile .

        This Function always return None .

        Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/documentTreeShowOpen.html b/source/qsl4a/documentTreeShowOpen.html new file mode 100644 index 0000000..0209f6d --- /dev/null +++ b/source/qsl4a/documentTreeShowOpen.html @@ -0,0 +1 @@ +documentTreeShowOpen

documentTreeShowOpen( rootPath = '/storage/emulated/0' )

    Request for Media Storage Write or "/storage/emulated/0/Android/<subPath>" Read/Write Permissions .

    documentFileShowOpen is the same as documentTreeShowOpen .

    rootPath (String)

    Return Uri String if Success , if Fail return None .



Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" ,

    documentTreeShowOpen will get all documentFile functions to androidhelper at the same time ,

    documentFile functions are very slow .



    For Media Storage Devices :

        use rootPath = "/storage/ABCD-EFGH" or "/mnt/ext_sdcard" , return "content://com.android.externalstorage.documents/<ContentPaths>" .



    For "/storage/emulated/0/Android/<subPath>" :

        For Android  7-10 , use rootPath = "/storage/emulated/0/Android/data"                  , return "file://<paths>" ;

        For Android 11-13 , use rootPath = "/storage/emulated/0/Android/data/the.package.name" , return "content://com.android.externalstorage.documents/<ContentPaths>" .

<back> \ No newline at end of file diff --git a/source/qsl4a/elapsedRealtimeNanos.html b/source/qsl4a/elapsedRealtimeNanos.html new file mode 100644 index 0000000..1a6a6b7 --- /dev/null +++ b/source/qsl4a/elapsedRealtimeNanos.html @@ -0,0 +1 @@ +elapsedRealtimeNanos

elapsedRealtimeNanos()

    return Nanoseconds after system startup

<back> \ No newline at end of file diff --git a/source/qsl4a/encryptBytes.html b/source/qsl4a/encryptBytes.html new file mode 100644 index 0000000..bb32f54 --- /dev/null +++ b/source/qsl4a/encryptBytes.html @@ -0,0 +1 @@ +encryptBytes

encryptBytes( srcBytes )

Encrypt a Bytes to another Bytes ,

needs to run droid.cipherInit first , and encodingFormat must omitted .

srcBytes (Bytes)

<back> \ No newline at end of file diff --git a/source/qsl4a/encryptBytesToFile.html b/source/qsl4a/encryptBytesToFile.html new file mode 100644 index 0000000..307bc9a --- /dev/null +++ b/source/qsl4a/encryptBytesToFile.html @@ -0,0 +1 @@ +encryptBytesToFile

encryptBytesToFile( srcBytes, dstFile )

Encrypt a Bytes to another File ,

needs to run droid.cipherInit first , and encodingFormat must omitted .

if you want to operate files in Media Storage Device or /sdcard/Android/data/<packagename> , run droid.documentTreeShowOpen first .

srcBytes (Bytes)

dstFile (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/encryptFile.html b/source/qsl4a/encryptFile.html new file mode 100644 index 0000000..f60a836 --- /dev/null +++ b/source/qsl4a/encryptFile.html @@ -0,0 +1 @@ +encryptFile

encryptFile( srcFile, dstFile )

Encrypt a File to another File,

needs to run droid.cipherInit first .

if you want to operate files in Media Storage Device or /sdcard/Android/data/<packagename> , run droid.documentTreeShowOpen first .

srcFile (String)

dstFile (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/encryptString.html b/source/qsl4a/encryptString.html new file mode 100644 index 0000000..1f1f41e --- /dev/null +++ b/source/qsl4a/encryptString.html @@ -0,0 +1 @@ +encryptString

encryptString( srcString )

Encrypt a Normal / Base64 String to another Base64 String ,

needs to run droid.cipherInit first .

srcString (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/encryptStringToFile.html b/source/qsl4a/encryptStringToFile.html new file mode 100644 index 0000000..8d8b2fd --- /dev/null +++ b/source/qsl4a/encryptStringToFile.html @@ -0,0 +1 @@ +encryptStringToFile

encryptStringToFile( srcString, dstFile )

Encrypt a Normal / Base64 String to another File ,

needs to run droid.cipherInit first .

if you want to operate files in Media Storage Device or /sdcard/Android/data/<packagename> , run droid.documentTreeShowOpen first .

srcString (String)

dstFile (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/environment.html b/source/qsl4a/environment.html new file mode 100644 index 0000000..b3706f3 --- /dev/null +++ b/source/qsl4a/environment.html @@ -0,0 +1 @@ +environment

environment()

A map of various useful environment details

Map returned:

TZ = Timezone

id = Timezone ID

display = Timezone display name

offset = Offset from UTC (in ms)

SDK = SDK Version

download = default download path

appcache = Location of application cache

sdcard = Space on sdcard

availblocks = Available blocks

blockcount = Total Blocks

blocksize = size of block.

<back> \ No newline at end of file diff --git a/source/qsl4a/eventClearBuffer.html b/source/qsl4a/eventClearBuffer.html new file mode 100644 index 0000000..9124d87 --- /dev/null +++ b/source/qsl4a/eventClearBuffer.html @@ -0,0 +1 @@ +eventClearBuffer

eventClearBuffer()

Clears all events from the event buffer.

Example (python): droid.eventClearBuffer()

<back> \ No newline at end of file diff --git a/source/qsl4a/eventGetBrodcastCategories.html b/source/qsl4a/eventGetBrodcastCategories.html new file mode 100644 index 0000000..adfc544 --- /dev/null +++ b/source/qsl4a/eventGetBrodcastCategories.html @@ -0,0 +1 @@ +eventGetBrodcastCategories

eventGetBrodcastCategories()

Lists all the broadcast signals we are listening for

<back> \ No newline at end of file diff --git a/source/qsl4a/eventPoll.html b/source/qsl4a/eventPoll.html new file mode 100644 index 0000000..31219ec --- /dev/null +++ b/source/qsl4a/eventPoll.html @@ -0,0 +1 @@ +eventPoll

eventPoll(number_of_events=1)

Returns and removes the oldest n events (i.e. location or sensor update, etc.) from the event buffer.

    number_of_events (Integer)  (default=1)

returns: (List) A List of Maps of event properties.

Actual data returned in the map will depend on the type of event.

Example (python):

import android, time

droid = android.Android()

droid.startSensing()

time.sleep(1)

droid.eventClearBuffer()

time.sleep(1)

e = eventPoll(1).result

event_entry_number = 0

x = e[event_entry_ number]['data']['xforce']

e has the format:

[{u'data': {u'accuracy': 0, u'pitch': -0.48766891956329345, u'xmag': -5.6875, u'azimuth':

0.3312483489513397, u'zforce': 8.3492730000000002, u'yforce': 4.5628165999999997, u'time':

1297072704.813, u'ymag': -11.125, u'zmag': -42.375, u'roll': -0.059393649548292161, u'xforce':

0.42223078000000003}, u'name': u'sensors', u'time': 1297072704813000L}]

x has the string value of the x force data (0.42223078000000003) at the time of the event

entry.

<back> \ No newline at end of file diff --git a/source/qsl4a/eventPost.html b/source/qsl4a/eventPost.html new file mode 100644 index 0000000..aa54278 --- /dev/null +++ b/source/qsl4a/eventPost.html @@ -0,0 +1 @@ +eventPost

eventPost(name,data,enqueue=None)

Post an event to the event queue.

    name (String) Name of event

    data (String) Data contained in event.

    enqueue (Boolean) Set to False if you don\'t want your events to be added to the event queue, just dispatched. (optional) (default=false)

Example:

import android

from datetime import datetime

droid = android.Android()

t = datetime.now()

droid.eventPost('Some Event', t)

<back> \ No newline at end of file diff --git a/source/qsl4a/eventRegisterForBroadcast.html b/source/qsl4a/eventRegisterForBroadcast.html new file mode 100644 index 0000000..22c2789 --- /dev/null +++ b/source/qsl4a/eventRegisterForBroadcast.html @@ -0,0 +1 @@ +eventRegisterForBroadcast

eventRegisterForBroadcast(category,enqueue=True)

Registers a listener for a new broadcast signal

    category (String)

    enqueue (Boolean) Should this events be added to the event queue or only dispatched (default=true)

Registers a listener for a new broadcast signal

<back> \ No newline at end of file diff --git a/source/qsl4a/eventUnregisterForBroadcast.html b/source/qsl4a/eventUnregisterForBroadcast.html new file mode 100644 index 0000000..d5eadb9 --- /dev/null +++ b/source/qsl4a/eventUnregisterForBroadcast.html @@ -0,0 +1 @@ +eventUnregisterForBroadcast

eventUnregisterForBroadcast(category)

Stop listening for a broadcast signal

    category (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/eventWait.html b/source/qsl4a/eventWait.html new file mode 100644 index 0000000..0296127 --- /dev/null +++ b/source/qsl4a/eventWait.html @@ -0,0 +1 @@ +eventWait

eventWait(timeout=None)

Blocks until an event occurs. The returned event is removed from the buffer.

    timeout (Integer) the maximum time to wait (optional)

returns: (Event) Map of event properties.

<back> \ No newline at end of file diff --git a/source/qsl4a/eventWaitFor.html b/source/qsl4a/eventWaitFor.html new file mode 100644 index 0000000..dc14d38 --- /dev/null +++ b/source/qsl4a/eventWaitFor.html @@ -0,0 +1 @@ +eventWaitFor

eventWaitFor(eventName,timeout=None)

Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer.

    eventName (String)

    timeout (Integer) the maximum time to wait (in ms) (optional)

returns: (Event) Map of event properties.

<back> \ No newline at end of file diff --git a/source/qsl4a/executeQPy.html b/source/qsl4a/executeQPy.html new file mode 100644 index 0000000..1518850 --- /dev/null +++ b/source/qsl4a/executeQPy.html @@ -0,0 +1 @@ +executeQPy

executeQPy(scriptPath='',arg=None)

Run a QPython script with path .

    scriptPath (String)

    arg (String Optional)

    If scriptPath is empty, open python shell only .

<back> \ No newline at end of file diff --git a/source/qsl4a/floatView.html b/source/qsl4a/floatView.html new file mode 100644 index 0000000..0474def --- /dev/null +++ b/source/qsl4a/floatView.html @@ -0,0 +1 @@ +floatView

floatView(Args=None)

    Show Float View .

        Only support Android >= 8.0 .

# FloatView Args is a dict which default (empty) value is :

{

    'text':"drag move\nlong click close",

    # FloatView Drag Move , Long Click Close

    'html':<omitted>,

    # if has text, html will be omitted, if text is omitted and html has content, FloatView will use html

    'width':300,

    'height':150,

    'x':0,

    'y':0,

    # original point (x=y=0) is the center of screen

    # x,y,width,height can assign a String "last"

    'backColor':'7f7f7f7f',

    'textColor':'ff000000',

    # backColor and textColor can assign a String "last"

    'textSize':10,

    'textAlign':0,

    # floatView.TEXT_ALIGNMENT_INHERIT = 0

    # textSize and textAlign can assign a String "last"

    'script':<omitted>, # script path

    # after Long Click Close the FloatView, run script with script arg, if script is omitted, do nothing after Long Click Close the FloatView

    'arg':<omitted>, # script arg

    # script arg is use with script

    'index':-1,

    # if index is omitted ( i.e. floatView.INDEX_NEW = -1 ) , create a new Float View,

    # if index > 0, modify an existed Float View with index .

    'clickRemove':True,

    'flag':40

    # floatView.FLAG_DEFAULT_TOUCHABLE = 40

}

    Return Float View current chain list length (not the number of Float Views) .





floatView.INDEX_NEW = -1

floatView.FLAG_DEFAULT_TOUCHABLE = 40

floatView.FLAG_DEFAULT_NOT_TOUCHABLE = 24

floatView.FLAG_NOT_TOUCH_MODAL = 32

floatView.FLAG_NOT_FOCUSABLE = 8

floatView.FLAG_NOT_TOUCHABLE = 16

floatView.TEXT_ALIGNMENT_INHERIT = 0

floatView.TEXT_ALIGNMENT_GRAVITY = 1

floatView.TEXT_ALIGNMENT_TEXT_START = 2

floatView.TEXT_ALIGNMENT_TEXT_END = 3

floatView.TEXT_ALIGNMENT_CENTER = 4

floatView.TEXT_ALIGNMENT_VIEW_START = 5

floatView.TEXT_ALIGNMENT_VIEW_END = 6

<back> \ No newline at end of file diff --git a/source/qsl4a/floatViewCount.html b/source/qsl4a/floatViewCount.html new file mode 100644 index 0000000..5e42f30 --- /dev/null +++ b/source/qsl4a/floatViewCount.html @@ -0,0 +1 @@ +floatViewCount

floatViewCount()

Count Float View number ,

  Returns an integer .

<back> \ No newline at end of file diff --git a/source/qsl4a/floatViewRemove.html b/source/qsl4a/floatViewRemove.html new file mode 100644 index 0000000..cbf9373 --- /dev/null +++ b/source/qsl4a/floatViewRemove.html @@ -0,0 +1 @@ +floatViewRemove

floatViewRemove(index = -1)

Remove Float View with index,

    index (Integer Optional) If index is omitted ( i.e. floatViewRemove.ALL = -1 ) , Remove All Float Views ,

    Return the number of removed Float Views .





floatViewRemove.ALL = -1

<back> \ No newline at end of file diff --git a/source/qsl4a/floatViewResult.html b/source/qsl4a/floatViewResult.html new file mode 100644 index 0000000..531a380 --- /dev/null +++ b/source/qsl4a/floatViewResult.html @@ -0,0 +1 @@ +floatViewResult

floatViewResult(index = -1)

Return Float View Result with index:

    x, y, time (miliseconds) , operation, index .

    Only support Android >= 8.0 .

index (Integer Optional) if index is omitted ( i.e. floatViewResult.LAST = -1 ) , return the Result of the last Float View .





floatViewResult.LAST = -1

<back> \ No newline at end of file diff --git a/source/qsl4a/forceStopPackage.html b/source/qsl4a/forceStopPackage.html new file mode 100644 index 0000000..abaef63 --- /dev/null +++ b/source/qsl4a/forceStopPackage.html @@ -0,0 +1 @@ +forceStopPackage

forceStopPackage(packageName)

Force stops a package.

    packageName (String) name of package

<back> \ No newline at end of file diff --git a/source/qsl4a/ftpGet.html b/source/qsl4a/ftpGet.html new file mode 100644 index 0000000..7a44580 --- /dev/null +++ b/source/qsl4a/ftpGet.html @@ -0,0 +1 @@ +ftpGet

ftpGet()

    ftp get ip address and port number .

    return a list of ftp address like ["ftp://12.34.56.78:4321", "ftp://12.34.56.90:4321"], if ftp address is "ftp://0.0.0.0:4321", means ftp address not valid, you should connect wifi or open wifi hotspot .

<back> \ No newline at end of file diff --git a/source/qsl4a/ftpIsRunning.html b/source/qsl4a/ftpIsRunning.html new file mode 100644 index 0000000..ac31645 --- /dev/null +++ b/source/qsl4a/ftpIsRunning.html @@ -0,0 +1 @@ +ftpIsRunning

ftpIsRunning()

    return True/False

<back> \ No newline at end of file diff --git a/source/qsl4a/ftpSet.html b/source/qsl4a/ftpSet.html new file mode 100644 index 0000000..294620b --- /dev/null +++ b/source/qsl4a/ftpSet.html @@ -0,0 +1 @@ +ftpSet

ftpSet(port = None, chrootDir = None, username = "ftp", password = "ftp")

    port (Integer Optional) default is 2121

    chrootDir (String Optional) default is "/sdcard"

    username / password (String Optional) default is "ftp"

    return None

    If the current ftp server is running, you need to restart the ftp server to take effect .

<back> \ No newline at end of file diff --git a/source/qsl4a/ftpStart.html b/source/qsl4a/ftpStart.html new file mode 100644 index 0000000..13ce846 --- /dev/null +++ b/source/qsl4a/ftpStart.html @@ -0,0 +1 @@ +ftpStart

ftpStart()

    Start ftp server .

    return a list of ftp address like ["ftp://12.34.56.78:4321", "ftp://12.34.56.90:4321"], if ftp address is "ftp://0.0.0.0:4321", means ftp address not valid, you should connect wifi or open wifi hotspot .

<back> \ No newline at end of file diff --git a/source/qsl4a/ftpStop.html b/source/qsl4a/ftpStop.html new file mode 100644 index 0000000..c61a6c3 --- /dev/null +++ b/source/qsl4a/ftpStop.html @@ -0,0 +1 @@ +ftpStop

ftpStop()

    Stop ftp server .

    return None

<back> \ No newline at end of file diff --git a/source/qsl4a/fullDismiss.html b/source/qsl4a/fullDismiss.html new file mode 100644 index 0000000..4a00bf3 --- /dev/null +++ b/source/qsl4a/fullDismiss.html @@ -0,0 +1 @@ +fullDismiss

fullDismiss()

Dismiss Full Screen.

<back> \ No newline at end of file diff --git a/source/qsl4a/fullGetProperties.html b/source/qsl4a/fullGetProperties.html new file mode 100644 index 0000000..bd2095d --- /dev/null +++ b/source/qsl4a/fullGetProperties.html @@ -0,0 +1 @@ +fullGetProperties

fullGetProperties(ids,property)

Get a fullscreen property for many specific widgets

    ids (String List) ids of layout widgets

    property (String) property of layout widgets

<back> \ No newline at end of file diff --git a/source/qsl4a/fullGetProperty.html b/source/qsl4a/fullGetProperty.html new file mode 100644 index 0000000..f986971 --- /dev/null +++ b/source/qsl4a/fullGetProperty.html @@ -0,0 +1 @@ +fullGetProperty

fullGetProperty(id,property)

Get a fullscreen property for a specific widget

    id (String) id of layout widget

    property (String) property of layout widget

<back> \ No newline at end of file diff --git a/source/qsl4a/fullGetScreenShot.html b/source/qsl4a/fullGetScreenShot.html new file mode 100644 index 0000000..66b0611 --- /dev/null +++ b/source/qsl4a/fullGetScreenShot.html @@ -0,0 +1 @@ +fullGetScreenShot

fullGetScreenShot(path = None)

Get the Full Screen Activity ScreenShot to path .

    path (String Optional) jpeg file path, if omitted, use default path

return path

<back> \ No newline at end of file diff --git a/source/qsl4a/fullQuery.html b/source/qsl4a/fullQuery.html new file mode 100644 index 0000000..c1e5ea2 --- /dev/null +++ b/source/qsl4a/fullQuery.html @@ -0,0 +1 @@ +fullQuery

fullQuery()

Get Fullscreen Properties

<back> \ No newline at end of file diff --git a/source/qsl4a/fullQueryDetail.html b/source/qsl4a/fullQueryDetail.html new file mode 100644 index 0000000..d0ecf6d --- /dev/null +++ b/source/qsl4a/fullQueryDetail.html @@ -0,0 +1 @@ +fullQueryDetail

fullQueryDetail(id)

Get fullscreen properties for a specific widget

    id (String) id of layout widget

<back> \ No newline at end of file diff --git a/source/qsl4a/fullSetList.html b/source/qsl4a/fullSetList.html new file mode 100644 index 0000000..f7eacc0 --- /dev/null +++ b/source/qsl4a/fullSetList.html @@ -0,0 +1 @@ +fullSetList

fullSetList(id,list)

Attach a text list to a fullscreen widget

    id (String) id of layout widget

    list (JSONArray) Text List to set

<back> \ No newline at end of file diff --git a/source/qsl4a/fullSetList2.html b/source/qsl4a/fullSetList2.html new file mode 100644 index 0000000..0f682dc --- /dev/null +++ b/source/qsl4a/fullSetList2.html @@ -0,0 +1 @@ +fullSetList2

fullSetList2(id,list,intRes)

Attach a 2-line list to a fullscreen widget

    id (String) id of layout widget

    list (JSONArray) List to set like [1Up,1Down,2Up,2Down,……]

    intRes (JSONArray) constant integer like :

        [R.layout.simple_list_item_2,R.id.text1,R.id.text2]

        [R.layout.simple_list_item_1,R.id.text1]

        [R.layout.simple_spinner_item,R.id.text1,R.layout.simple_spinner_dropdown_item]

        R is (

            from androidhelper.R import R

            R=R()

        )

<back> \ No newline at end of file diff --git a/source/qsl4a/fullSetListHtml.html b/source/qsl4a/fullSetListHtml.html new file mode 100644 index 0000000..7648425 --- /dev/null +++ b/source/qsl4a/fullSetListHtml.html @@ -0,0 +1 @@ +fullSetListHtml

fullSetListHtml(id,list)

Attach a html list to a fullscreen widget

    id (String) id of layout widget

    list (JSONArray) Html List to set

<back> \ No newline at end of file diff --git a/source/qsl4a/fullSetProperties.html b/source/qsl4a/fullSetProperties.html new file mode 100644 index 0000000..88076e7 --- /dev/null +++ b/source/qsl4a/fullSetProperties.html @@ -0,0 +1 @@ +fullSetProperties

fullSetProperties(ids,property,value)

Set many fullscreen widgets' a property

    ids (String List) ids of layout widgets

    property (String) name of property to set

    value (String) value to set property to

<back> \ No newline at end of file diff --git a/source/qsl4a/fullSetProperty.html b/source/qsl4a/fullSetProperty.html new file mode 100644 index 0000000..383dde8 --- /dev/null +++ b/source/qsl4a/fullSetProperty.html @@ -0,0 +1 @@ +fullSetProperty

fullSetProperty(id,property,value)

Set a fullscreen widget's a property

    id (String) id of layout widget

    property (String) name of property to set

    value (String) value to set property to

<back> \ No newline at end of file diff --git a/source/qsl4a/fullShow.html b/source/qsl4a/fullShow.html new file mode 100644 index 0000000..78af5c3 --- /dev/null +++ b/source/qsl4a/fullShow.html @@ -0,0 +1 @@ +fullShow

fullShow(layout,title=None,theme=None)

Show Full Screen.

    layout (String) String containing View layout

    title  (String Optional)

    theme  (Integer Optional) See https://developer.android.google.cn/reference/android/R.style for Integer constant .

Commonly used theme please use :

    from androidhelper.R import R

    R=R()

    R.style

<back> \ No newline at end of file diff --git a/source/qsl4a/generateDtmfTones.html b/source/qsl4a/generateDtmfTones.html new file mode 100644 index 0000000..260ab65 --- /dev/null +++ b/source/qsl4a/generateDtmfTones.html @@ -0,0 +1 @@ +generateDtmfTones

generateDtmfTones(phoneNumber,toneDuration=100)

Generate DTMF tones for the given phone number.

    phoneNumber (String)

    toneDuration (Integer) duration of each tone in milliseconds (default=100)

<back> \ No newline at end of file diff --git a/source/qsl4a/geocode.html b/source/qsl4a/geocode.html new file mode 100644 index 0000000..0fd5fc6 --- /dev/null +++ b/source/qsl4a/geocode.html @@ -0,0 +1 @@ +geocode

geocode(latitude,longitude,maxResults=1)

Returns a list of addresses for the given latitude and longitude.

    latitude (Double)

    longitude (Double)

    maxResults (Integer) maximum number of results (default=1)

returns: (List) A list of addresses.

<back> \ No newline at end of file diff --git a/source/qsl4a/getAllCellInfo.html b/source/qsl4a/getAllCellInfo.html new file mode 100644 index 0000000..345bff8 --- /dev/null +++ b/source/qsl4a/getAllCellInfo.html @@ -0,0 +1 @@ +getAllCellInfo

getAllCellInfo()

Returns all the neighboring cell information of the device.

<back> \ No newline at end of file diff --git a/source/qsl4a/getAllCellsLocation.html b/source/qsl4a/getAllCellsLocation.html new file mode 100644 index 0000000..724f074 --- /dev/null +++ b/source/qsl4a/getAllCellsLocation.html @@ -0,0 +1 @@ +getAllCellsLocation

getAllCellsLocation()

Returns all the cells location : LAC/CID/SID/NID/BID/MccMnc/Arcfn and signal dbm of NR/LTE/WCDMA/CDMA/GSM .

<back> \ No newline at end of file diff --git a/source/qsl4a/getAndroidID.html b/source/qsl4a/getAndroidID.html new file mode 100644 index 0000000..df93318 --- /dev/null +++ b/source/qsl4a/getAndroidID.html @@ -0,0 +1 @@ +getAndroidID

getAndroidID()

Returns Android ID .

<back> \ No newline at end of file diff --git a/source/qsl4a/getApplicationInfo.html b/source/qsl4a/getApplicationInfo.html new file mode 100644 index 0000000..4921091 --- /dev/null +++ b/source/qsl4a/getApplicationInfo.html @@ -0,0 +1 @@ +getApplicationInfo

getApplicationInfo(packageName = None)

Get Application Information with Package Name .

    packageName (String Optional)

        If omitted, use QPython Package Name .

        If Package Name not exists , android.content.pm.PackageManager$NameNotFoundException will be ocured .

<back> \ No newline at end of file diff --git a/source/qsl4a/getCellLocation.html b/source/qsl4a/getCellLocation.html new file mode 100644 index 0000000..e48e83b --- /dev/null +++ b/source/qsl4a/getCellLocation.html @@ -0,0 +1 @@ +getCellLocation

getCellLocation()

Returns the current cell location : LAC/CID/SID/NID/BID and signal dbm of NR/LTE/WCDMA/CDMA/GSM ,

and cells count around .

<back> \ No newline at end of file diff --git a/source/qsl4a/getClipboard.html b/source/qsl4a/getClipboard.html new file mode 100644 index 0000000..e615e44 --- /dev/null +++ b/source/qsl4a/getClipboard.html @@ -0,0 +1 @@ +getClipboard

getClipboard()

Read text from the clipboard.

returns: (String) The text in the clipboard.

<back> \ No newline at end of file diff --git a/source/qsl4a/getConnectedInfo.html b/source/qsl4a/getConnectedInfo.html new file mode 100644 index 0000000..113f9ec --- /dev/null +++ b/source/qsl4a/getConnectedInfo.html @@ -0,0 +1 @@ +getConnectedInfo

getConnectedInfo()

    return Dict in List of IpAddress,MacAddress,Device .

    Only support Android <= 9 .

<back> \ No newline at end of file diff --git a/source/qsl4a/getConstants.html b/source/qsl4a/getConstants.html new file mode 100644 index 0000000..c1cf20a --- /dev/null +++ b/source/qsl4a/getConstants.html @@ -0,0 +1 @@ +getConstants

getConstants(classname)

Get list of constants (static final fields) for a class

    classname (String) Class to get constants from

<back> \ No newline at end of file diff --git a/source/qsl4a/getDeviceSoftwareVersion.html b/source/qsl4a/getDeviceSoftwareVersion.html new file mode 100644 index 0000000..3ba3265 --- /dev/null +++ b/source/qsl4a/getDeviceSoftwareVersion.html @@ -0,0 +1 @@ +getDeviceSoftwareVersion

getDeviceSoftwareVersion()

Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available.

<back> \ No newline at end of file diff --git a/source/qsl4a/getDhcpInfo.html b/source/qsl4a/getDhcpInfo.html new file mode 100644 index 0000000..02ca582 --- /dev/null +++ b/source/qsl4a/getDhcpInfo.html @@ -0,0 +1 @@ +getDhcpInfo

getDhcpInfo(ipConvertToString=True)

    return DHCP Infomation Dict .

    If ipConvertToString is True, IP address is like "10.0.3.193",

    If ipConvertToString is False, IP address is like 167773121.

<back> \ No newline at end of file diff --git a/source/qsl4a/getFileStat.html b/source/qsl4a/getFileStat.html new file mode 100644 index 0000000..e8d43bc --- /dev/null +++ b/source/qsl4a/getFileStat.html @@ -0,0 +1 @@ +getFileStat

getFileStat(path)

Return a dict of file length , last modified , file can read/write and disk space .

    path (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/getHarmonyOsInformation.html b/source/qsl4a/getHarmonyOsInformation.html new file mode 100644 index 0000000..193107d --- /dev/null +++ b/source/qsl4a/getHarmonyOsInformation.html @@ -0,0 +1 @@ +getHarmonyOsInformation

getHarmonyOsInformation()

Returns a dict of isHarmonyOs and HarmonyVersion(if isHarmonyOs is true) .

<back> \ No newline at end of file diff --git a/source/qsl4a/getImei.html b/source/qsl4a/getImei.html new file mode 100644 index 0000000..0941d5c --- /dev/null +++ b/source/qsl4a/getImei.html @@ -0,0 +1 @@ +getImei

getImei( slotIndex = None )

Returns IMEI for GSM phones .

Return null if IMEI is not available.

slotIndex (Integer Optional)

If Android <= 7.1, return legacy deviceId .

<back> \ No newline at end of file diff --git a/source/qsl4a/getInstalledPackages.html b/source/qsl4a/getInstalledPackages.html new file mode 100644 index 0000000..ab62a95 --- /dev/null +++ b/source/qsl4a/getInstalledPackages.html @@ -0,0 +1 @@ +getInstalledPackages

getInstalledPackages(flag = 4)

Returns a list of installed packages with application name .

    flag (Integer Optional) :

        5 - All apps

        4 - User apps (default)

        3 - System apps

        2 - Updated System apps

        1 - Not Updated System apps





getInstalledPackages.APPS_ALL = 5

getInstalledPackages.APPS_USER = 4

getInstalledPackages.APPS_SYSTEM = 3

getInstalledPackages.APPS_SYSTEM_UPDATED = 2

getInstalledPackages.APPS_SYSTEM_NOT_UPDATED = 1

<back> \ No newline at end of file diff --git a/source/qsl4a/getIntent.html b/source/qsl4a/getIntent.html new file mode 100644 index 0000000..807ba5d --- /dev/null +++ b/source/qsl4a/getIntent.html @@ -0,0 +1 @@ +getIntent

getIntent()

Returns the intent that launched the script.

<back> \ No newline at end of file diff --git a/source/qsl4a/getInternetInterfaceAddress.html b/source/qsl4a/getInternetInterfaceAddress.html new file mode 100644 index 0000000..43da95f --- /dev/null +++ b/source/qsl4a/getInternetInterfaceAddress.html @@ -0,0 +1 @@ +getInternetInterfaceAddress

getInternetInterfaceAddress()

Returns a dict of InterfaceName and InetAddressList .

<back> \ No newline at end of file diff --git a/source/qsl4a/getLastKnownLocation.html b/source/qsl4a/getLastKnownLocation.html new file mode 100644 index 0000000..d5fd240 --- /dev/null +++ b/source/qsl4a/getLastKnownLocation.html @@ -0,0 +1 @@ +getLastKnownLocation

getLastKnownLocation()

Returns the last known location of the device.

returns: (Map) A map of location information by provider.

<back> \ No newline at end of file diff --git a/source/qsl4a/getLastLog.html b/source/qsl4a/getLastLog.html new file mode 100644 index 0000000..3c48cfc --- /dev/null +++ b/source/qsl4a/getLastLog.html @@ -0,0 +1 @@ +getLastLog

getLastLog(logFileName='last.log')

    Return Log with Log File Name

<back> \ No newline at end of file diff --git a/source/qsl4a/getLaunchablePackages.html b/source/qsl4a/getLaunchablePackages.html new file mode 100644 index 0000000..c17f803 --- /dev/null +++ b/source/qsl4a/getLaunchablePackages.html @@ -0,0 +1 @@ +getLaunchablePackages

getLaunchablePackages(needClassName=False)

If needClassName is True , returns a list of all launchable packages with class name and application name .

If needClassName is False default , returns a list of all launchable packages with application name .

<back> \ No newline at end of file diff --git a/source/qsl4a/getLine1Number.html b/source/qsl4a/getLine1Number.html new file mode 100644 index 0000000..bc07289 --- /dev/null +++ b/source/qsl4a/getLine1Number.html @@ -0,0 +1 @@ +getLine1Number

getLine1Number()

Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable.

<back> \ No newline at end of file diff --git a/source/qsl4a/getLocale.html b/source/qsl4a/getLocale.html new file mode 100644 index 0000000..30dc61c --- /dev/null +++ b/source/qsl4a/getLocale.html @@ -0,0 +1 @@ +getLocale

getLocale()

Get system language and country .

<back> \ No newline at end of file diff --git a/source/qsl4a/getMaxMediaVolume.html b/source/qsl4a/getMaxMediaVolume.html new file mode 100644 index 0000000..de7849a --- /dev/null +++ b/source/qsl4a/getMaxMediaVolume.html @@ -0,0 +1 @@ +getMaxMediaVolume

getMaxMediaVolume()

Returns the maximum media volume.

<back> \ No newline at end of file diff --git a/source/qsl4a/getMaxRingerVolume.html b/source/qsl4a/getMaxRingerVolume.html new file mode 100644 index 0000000..4b20154 --- /dev/null +++ b/source/qsl4a/getMaxRingerVolume.html @@ -0,0 +1 @@ +getMaxRingerVolume

getMaxRingerVolume()

Returns the maximum ringer volume.

<back> \ No newline at end of file diff --git a/source/qsl4a/getMediaVolume.html b/source/qsl4a/getMediaVolume.html new file mode 100644 index 0000000..e1b1059 --- /dev/null +++ b/source/qsl4a/getMediaVolume.html @@ -0,0 +1 @@ +getMediaVolume

getMediaVolume()

Returns the current media volume.

<back> \ No newline at end of file diff --git a/source/qsl4a/getMeid.html b/source/qsl4a/getMeid.html new file mode 100644 index 0000000..dda946f --- /dev/null +++ b/source/qsl4a/getMeid.html @@ -0,0 +1 @@ +getMeid

getMeid( slotIndex = None )

Returns MEID for CDMA phones .

Return null if MEID is not available.

slotIndex (Integer Optional)

If Android <= 7.1, return legacy deviceId .

<back> \ No newline at end of file diff --git a/source/qsl4a/getMemoryInfo.html b/source/qsl4a/getMemoryInfo.html new file mode 100644 index 0000000..ec3aa77 --- /dev/null +++ b/source/qsl4a/getMemoryInfo.html @@ -0,0 +1 @@ +getMemoryInfo

getMemoryInfo()

get Memory Information

<back> \ No newline at end of file diff --git a/source/qsl4a/getNetworkOperator.html b/source/qsl4a/getNetworkOperator.html new file mode 100644 index 0000000..51a5684 --- /dev/null +++ b/source/qsl4a/getNetworkOperator.html @@ -0,0 +1 @@ +getNetworkOperator

getNetworkOperator()

Returns the numeric name (MCC+MNC) of current registered operator.

<back> \ No newline at end of file diff --git a/source/qsl4a/getNetworkOperatorName.html b/source/qsl4a/getNetworkOperatorName.html new file mode 100644 index 0000000..53fb1e5 --- /dev/null +++ b/source/qsl4a/getNetworkOperatorName.html @@ -0,0 +1 @@ +getNetworkOperatorName

getNetworkOperatorName()

Returns the alphabetic name of current registered operator.

<back> \ No newline at end of file diff --git a/source/qsl4a/getNetworkType.html b/source/qsl4a/getNetworkType.html new file mode 100644 index 0000000..72cee06 --- /dev/null +++ b/source/qsl4a/getNetworkType.html @@ -0,0 +1 @@ +getNetworkType

getNetworkType()

Returns a the radio technology (network type) currently in use on the device.

<back> \ No newline at end of file diff --git a/source/qsl4a/getPackageVersion.html b/source/qsl4a/getPackageVersion.html new file mode 100644 index 0000000..3d8f9db --- /dev/null +++ b/source/qsl4a/getPackageVersion.html @@ -0,0 +1 @@ +getPackageVersion

getPackageVersion(packageName)

Returns package version name.

    packageName (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/getPackageVersionCode.html b/source/qsl4a/getPackageVersionCode.html new file mode 100644 index 0000000..b9ae720 --- /dev/null +++ b/source/qsl4a/getPackageVersionCode.html @@ -0,0 +1 @@ +getPackageVersionCode

getPackageVersionCode(packageName)

Returns package version code.

    packageName (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/getPhoneType.html b/source/qsl4a/getPhoneType.html new file mode 100644 index 0000000..8941937 --- /dev/null +++ b/source/qsl4a/getPhoneType.html @@ -0,0 +1 @@ +getPhoneType

getPhoneType()

Returns the device phone type.

<back> \ No newline at end of file diff --git a/source/qsl4a/getRingerVolume.html b/source/qsl4a/getRingerVolume.html new file mode 100644 index 0000000..57a879f --- /dev/null +++ b/source/qsl4a/getRingerVolume.html @@ -0,0 +1 @@ +getRingerVolume

getRingerVolume()

Returns the current ringer volume.

<back> \ No newline at end of file diff --git a/source/qsl4a/getRunningPackages.html b/source/qsl4a/getRunningPackages.html new file mode 100644 index 0000000..e17d954 --- /dev/null +++ b/source/qsl4a/getRunningPackages.html @@ -0,0 +1 @@ +getRunningPackages

getRunningPackages()

Returns a list of packages running activities or services.

returns: (List) List of packages running activities.

<back> \ No newline at end of file diff --git a/source/qsl4a/getScreenBrightness.html b/source/qsl4a/getScreenBrightness.html new file mode 100644 index 0000000..44ed73c --- /dev/null +++ b/source/qsl4a/getScreenBrightness.html @@ -0,0 +1 @@ +getScreenBrightness

getScreenBrightness()

Returns the screen backlight brightness.

returns: (Integer) the current screen brightness between 0 and 255

<back> \ No newline at end of file diff --git a/source/qsl4a/getScreenInfo.html b/source/qsl4a/getScreenInfo.html new file mode 100644 index 0000000..9e1c776 --- /dev/null +++ b/source/qsl4a/getScreenInfo.html @@ -0,0 +1 @@ +getScreenInfo

getScreenInfo()

get screen information

<back> \ No newline at end of file diff --git a/source/qsl4a/getScreenTimeout.html b/source/qsl4a/getScreenTimeout.html new file mode 100644 index 0000000..0a9fb9b --- /dev/null +++ b/source/qsl4a/getScreenTimeout.html @@ -0,0 +1 @@ +getScreenTimeout

getScreenTimeout()

Returns the current screen timeout in seconds.

returns: (Integer) the current screen timeout in seconds.

<back> \ No newline at end of file diff --git a/source/qsl4a/getSdCardPaths.html b/source/qsl4a/getSdCardPaths.html new file mode 100644 index 0000000..183a3e8 --- /dev/null +++ b/source/qsl4a/getSdCardPaths.html @@ -0,0 +1 @@ +getSdCardPaths

getSdCardPaths()

  Return Paths of Emulated, SD Card and USB Disk .

<back> \ No newline at end of file diff --git a/source/qsl4a/getSimCountryIso.html b/source/qsl4a/getSimCountryIso.html new file mode 100644 index 0000000..da9a828 --- /dev/null +++ b/source/qsl4a/getSimCountryIso.html @@ -0,0 +1 @@ +getSimCountryIso

getSimCountryIso()

Returns the ISO country code equivalent for the SIM provider\'s country code.

<back> \ No newline at end of file diff --git a/source/qsl4a/getSimOperator.html b/source/qsl4a/getSimOperator.html new file mode 100644 index 0000000..69d1fa3 --- /dev/null +++ b/source/qsl4a/getSimOperator.html @@ -0,0 +1 @@ +getSimOperator

getSimOperator()

Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.

<back> \ No newline at end of file diff --git a/source/qsl4a/getSimOperatorName.html b/source/qsl4a/getSimOperatorName.html new file mode 100644 index 0000000..7118cc2 --- /dev/null +++ b/source/qsl4a/getSimOperatorName.html @@ -0,0 +1 @@ +getSimOperatorName

getSimOperatorName()

Returns the Service Provider Name (SPN).

<back> \ No newline at end of file diff --git a/source/qsl4a/getSimSerialNumber.html b/source/qsl4a/getSimSerialNumber.html new file mode 100644 index 0000000..c3418dd --- /dev/null +++ b/source/qsl4a/getSimSerialNumber.html @@ -0,0 +1 @@ +getSimSerialNumber

getSimSerialNumber()

Returns the serial number of the SIM, if applicable. Return null if it is unavailable.

<back> \ No newline at end of file diff --git a/source/qsl4a/getSimState.html b/source/qsl4a/getSimState.html new file mode 100644 index 0000000..21174b1 --- /dev/null +++ b/source/qsl4a/getSimState.html @@ -0,0 +1 @@ +getSimState

getSimState()

Returns the state of the device SIM card.

<back> \ No newline at end of file diff --git a/source/qsl4a/getSubscriberId.html b/source/qsl4a/getSubscriberId.html new file mode 100644 index 0000000..1aa303e --- /dev/null +++ b/source/qsl4a/getSubscriberId.html @@ -0,0 +1 @@ +getSubscriberId

getSubscriberId()

Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable.

<back> \ No newline at end of file diff --git a/source/qsl4a/getSysInfo.html b/source/qsl4a/getSysInfo.html new file mode 100644 index 0000000..01ca227 --- /dev/null +++ b/source/qsl4a/getSysInfo.html @@ -0,0 +1 @@ +getSysInfo

getSysInfo()

get system information

<back> \ No newline at end of file diff --git a/source/qsl4a/getTelephoneSignalStrengthDetail.html b/source/qsl4a/getTelephoneSignalStrengthDetail.html new file mode 100644 index 0000000..e75ff07 --- /dev/null +++ b/source/qsl4a/getTelephoneSignalStrengthDetail.html @@ -0,0 +1 @@ +getTelephoneSignalStrengthDetail

getTelephoneSignalStrengthDetail()

Return Signal Strength Detail Information,

    like RSRP, RSRQ, SNR .

    need Android >= 9.0 .

<back> \ No newline at end of file diff --git a/source/qsl4a/getTelephoneSignalStrengthLevel.html b/source/qsl4a/getTelephoneSignalStrengthLevel.html new file mode 100644 index 0000000..6d971cb --- /dev/null +++ b/source/qsl4a/getTelephoneSignalStrengthLevel.html @@ -0,0 +1 @@ +getTelephoneSignalStrengthLevel

getTelephoneSignalStrengthLevel()

Return Signal Strength Level,

    for different models have (0 to 5) or (0 to 4) ,

    need Android >= 9.0 .

<back> \ No newline at end of file diff --git a/source/qsl4a/getTrafficStats.html b/source/qsl4a/getTrafficStats.html new file mode 100644 index 0000000..d6b83bb --- /dev/null +++ b/source/qsl4a/getTrafficStats.html @@ -0,0 +1 @@ +getTrafficStats

getTrafficStats(flags=7)

flags (Integer Optional) ALL(7,Default) = TOTAL(1) + MOBILE(2) + QPYTHON(4)

Return a map of Rx/Tx Bytes since startup and Startup Time millis .



getTrafficStats.TOTAL   = 1

getTrafficStats.MOBILE  = 2

getTrafficStats.QPYTHON = 4

<back> \ No newline at end of file diff --git a/source/qsl4a/getVibrateMode.html b/source/qsl4a/getVibrateMode.html new file mode 100644 index 0000000..28a979a --- /dev/null +++ b/source/qsl4a/getVibrateMode.html @@ -0,0 +1 @@ +getVibrateMode

getVibrateMode(ringer=None)

Checks Vibration setting. If ringer=true then query Ringer setting, else query Notification setting

    ringer (Boolean)  (optional)

returns: (Boolean) True if vibrate mode is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/getVoiceMailAlphaTag.html b/source/qsl4a/getVoiceMailAlphaTag.html new file mode 100644 index 0000000..4a48987 --- /dev/null +++ b/source/qsl4a/getVoiceMailAlphaTag.html @@ -0,0 +1 @@ +getVoiceMailAlphaTag

getVoiceMailAlphaTag()

Retrieves the alphabetic identifier associated with the voice mail number.

<back> \ No newline at end of file diff --git a/source/qsl4a/getVoiceMailNumber.html b/source/qsl4a/getVoiceMailNumber.html new file mode 100644 index 0000000..9700294 --- /dev/null +++ b/source/qsl4a/getVoiceMailNumber.html @@ -0,0 +1 @@ +getVoiceMailNumber

getVoiceMailNumber()

Returns the voice mail number. Return null if it is unavailable.

<back> \ No newline at end of file diff --git a/source/qsl4a/htmlPictureGetSize.html b/source/qsl4a/htmlPictureGetSize.html new file mode 100644 index 0000000..f498a50 --- /dev/null +++ b/source/qsl4a/htmlPictureGetSize.html @@ -0,0 +1 @@ +htmlPictureGetSize

htmlPictureGetSize()

  Return a dict of widthFixed , heightFixed , widthRatio , heightRatio .

<back> \ No newline at end of file diff --git a/source/qsl4a/htmlPictureSetSize.html b/source/qsl4a/htmlPictureSetSize.html new file mode 100644 index 0000000..329c138 --- /dev/null +++ b/source/qsl4a/htmlPictureSetSize.html @@ -0,0 +1 @@ +htmlPictureSetSize

htmlPictureSetSize(widthFixed = None, heightFixed = None, widthRatio = None, heightRatio = None)

  widthFixed , heightFixed (Integer Optional) :

    set the picture fixed size,

    if ommitted to None, use intrinsic width and height .

  widthRatio , heightRatio (Float Optional) :

    set the picture size ratio,

    if >1.0 , pictures will zoom in ,

    if <1.0 , pictures will zoom out,

    if ommitted to None or is 1.0 , the picture width and height will not zoom .

  Return None .

<back> \ No newline at end of file diff --git a/source/qsl4a/imageCompress.html b/source/qsl4a/imageCompress.html new file mode 100644 index 0000000..b1eac03 --- /dev/null +++ b/source/qsl4a/imageCompress.html @@ -0,0 +1 @@ +imageCompress

imageCompress(srcPath,destPath,targetByteSize=0,targetWidth=0,targetHeight=0)

    Compress images based on given parameters .

    srcPath (String) source image path

    destPath (String) destination image path

    targetByteSize (Integer Optional) size of bytes of target image , if omitted to 0 , do not limit size of target image

    targetWidth (Integer Optional) width of target image , if omitted to 0 , do not limit width of target image

    targetHeight (Integer Optional) height of target image , if omitted to 0 , do not limit height of target image

<back> \ No newline at end of file diff --git a/source/qsl4a/imageReaderGetScreenShot.html b/source/qsl4a/imageReaderGetScreenShot.html new file mode 100644 index 0000000..0014d57 --- /dev/null +++ b/source/qsl4a/imageReaderGetScreenShot.html @@ -0,0 +1 @@ +imageReaderGetScreenShot

imageReaderGetScreenShot(path = None, delayMilliSec = 1000)

Get Screen Shot to path .

    path (String Optional) jpeg file path, if omitted, use default path

    delayMilliSec (Integer Optional) wait delayMilliSec to get Screen Shot

return path

<back> \ No newline at end of file diff --git a/source/qsl4a/isExternalStorageManager.html b/source/qsl4a/isExternalStorageManager.html new file mode 100644 index 0000000..0520540 --- /dev/null +++ b/source/qsl4a/isExternalStorageManager.html @@ -0,0 +1 @@ +isExternalStorageManager

isExternalStorageManager()

return None if Android <= 10 .

return QPython is External Storage Manager (True or False) if Android >= 11 .

<back> \ No newline at end of file diff --git a/source/qsl4a/launch.html b/source/qsl4a/launch.html new file mode 100644 index 0000000..ba297ae --- /dev/null +++ b/source/qsl4a/launch.html @@ -0,0 +1 @@ +launch

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

<back> \ No newline at end of file diff --git a/source/qsl4a/log.html b/source/qsl4a/log.html new file mode 100644 index 0000000..53f8fa8 --- /dev/null +++ b/source/qsl4a/log.html @@ -0,0 +1 @@ +log

log(message)

Writes message to logcat.

    message (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/makeIntent.html b/source/qsl4a/makeIntent.html new file mode 100644 index 0000000..45159a6 --- /dev/null +++ b/source/qsl4a/makeIntent.html @@ -0,0 +1 @@ +makeIntent

makeIntent(action,uri=None,type=None,extras=None,categories=None,packagename=None,classname=None,flags=None)

Create an Intent.

    action (String)

    uri (String)  (optional)

    type (String) MIME type/subtype of the URI (optional)

    extras (JSONObject) a Map of extras to add to the Intent (optional) :

        elements of extras support Integer, Float, String, List, Dict, single Bytes, Uri(String) .

    categories (JSONArray) a List of categories to add to the Intent (optional)

    packagename (String) name of package. If used, requires classname to be useful (optional)

    classname (String) name of class. If used, requires packagename to be useful (optional)

    flags (Integer) Intent flags (optional)

returns: (Intent) An object representing an Intent

<back> \ No newline at end of file diff --git a/source/qsl4a/makeToast.html b/source/qsl4a/makeToast.html new file mode 100644 index 0000000..30c413b --- /dev/null +++ b/source/qsl4a/makeToast.html @@ -0,0 +1 @@ +makeToast

makeToast(message,length=0,isHtml=False,backColor=None,textColor=None,textSize=0,textAlign=0)

Displays a Toast notification.

    message (String)

    length  (Integer Optional) 0 is 2 second , 1 is 3.5 second

    isHtml  (Boolean Optional) Indicates that the message is html, the values are True (HTML, HyperText Markup Language) / False (Default, Plain Text with new Toast) / None (Plain Text with original Toast, Background support)

    If isHtml is not None, you can also use these parameters, but not support Background:

    backColor (String Optional) default is 'efefefef'

    textColor (String Optional) default is 'ff000000'

    textSize (Interger Optional) default determined by the system

    textAlign (Interger Optional) default determined by the system





makeToast.SHORT = 0   # 2.0 seconds

makeToast.LONG  = 1   # 3.5 seconds

makeToast.TEXT_ALIGNMENT_INHERIT    = 0

makeToast.TEXT_ALIGNMENT_GRAVITY    = 1

makeToast.TEXT_ALIGNMENT_TEXT_START = 2

makeToast.TEXT_ALIGNMENT_TEXT_END   = 3

makeToast.TEXT_ALIGNMENT_CENTER     = 4

makeToast.TEXT_ALIGNMENT_VIEW_START = 5

makeToast.TEXT_ALIGNMENT_VIEW_END   = 6

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaIsPlaying.html b/source/qsl4a/mediaIsPlaying.html new file mode 100644 index 0000000..0111cce --- /dev/null +++ b/source/qsl4a/mediaIsPlaying.html @@ -0,0 +1 @@ +mediaIsPlaying

mediaIsPlaying(tag="default")

Checks if media file is playing.

    tag (String) string identifying resource (default=default)

returns: (boolean) true if playing

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlay.html b/source/qsl4a/mediaPlay.html new file mode 100644 index 0000000..b93dc70 --- /dev/null +++ b/source/qsl4a/mediaPlay.html @@ -0,0 +1 @@ +mediaPlay

mediaPlay(url,tag="default",play=True)

Open a media file

    url (String) url of media resource

    tag (String) string identifying resource (default=default)

    play (Boolean) start playing immediately (default=true)

returns: (boolean) true if play successful

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlayClose.html b/source/qsl4a/mediaPlayClose.html new file mode 100644 index 0000000..03fc01f --- /dev/null +++ b/source/qsl4a/mediaPlayClose.html @@ -0,0 +1 @@ +mediaPlayClose

mediaPlayClose(tag="default")

Close media file

    tag (String) string identifying resource (default=default)

returns: (boolean) true if successful

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlayInfo.html b/source/qsl4a/mediaPlayInfo.html new file mode 100644 index 0000000..f9ac1b4 --- /dev/null +++ b/source/qsl4a/mediaPlayInfo.html @@ -0,0 +1 @@ +mediaPlayInfo

mediaPlayInfo(tag="default")

Information on current media

    tag (String) string identifying resource (default=default)

returns: (Map) Media Information

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlayList.html b/source/qsl4a/mediaPlayList.html new file mode 100644 index 0000000..0c2138b --- /dev/null +++ b/source/qsl4a/mediaPlayList.html @@ -0,0 +1 @@ +mediaPlayList

mediaPlayList()

Lists currently loaded media

returns: (Set) List of Media Tags

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlayPause.html b/source/qsl4a/mediaPlayPause.html new file mode 100644 index 0000000..2b3145b --- /dev/null +++ b/source/qsl4a/mediaPlayPause.html @@ -0,0 +1 @@ +mediaPlayPause

mediaPlayPause(tag="default")

pause playing media file

    tag (String) string identifying resource (default=default)

returns: (boolean) true if successful

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlaySeek.html b/source/qsl4a/mediaPlaySeek.html new file mode 100644 index 0000000..52f8753 --- /dev/null +++ b/source/qsl4a/mediaPlaySeek.html @@ -0,0 +1 @@ +mediaPlaySeek

mediaPlaySeek(msec,tag="default")

Seek To Position

    msec (Integer) Position in millseconds

    tag (String) string identifying resource (default=default)

returns: (int) New Position (in ms)

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlaySetLooping.html b/source/qsl4a/mediaPlaySetLooping.html new file mode 100644 index 0000000..efd7b26 --- /dev/null +++ b/source/qsl4a/mediaPlaySetLooping.html @@ -0,0 +1 @@ +mediaPlaySetLooping

mediaPlaySetLooping(enabled=True,tag="default")

Set Looping

    enabled (Boolean)  (default=true)

    tag (String) string identifying resource (default=default)

returns: (boolean) True if successful

<back> \ No newline at end of file diff --git a/source/qsl4a/mediaPlayStart.html b/source/qsl4a/mediaPlayStart.html new file mode 100644 index 0000000..04f5ccc --- /dev/null +++ b/source/qsl4a/mediaPlayStart.html @@ -0,0 +1 @@ +mediaPlayStart

mediaPlayStart(tag="default")

start playing media file

    tag (String) string identifying resource (default=default)

returns: (boolean) true if successful

<back> \ No newline at end of file diff --git a/source/qsl4a/notify.html b/source/qsl4a/notify.html new file mode 100644 index 0000000..b546a3a --- /dev/null +++ b/source/qsl4a/notify.html @@ -0,0 +1 @@ +notify

notify(title, message, uri=None, arg=None)

Displays a notification that will be disappeared when the user clicks on it.

    title (String)

    message (String)

    uri (String Optional)

    arg (String Optional)

If uri is not None, after the user clicks on it, these operation will be doing :

    # uri is web url like http:// or https:// --> open system browser

    # uri is .py script path --> run .py script with script arg

<back> \ No newline at end of file diff --git a/source/qsl4a/openFile.html b/source/qsl4a/openFile.html new file mode 100644 index 0000000..db8dfc4 --- /dev/null +++ b/source/qsl4a/openFile.html @@ -0,0 +1 @@ +openFile

openFile(path, type=None, wait=True)

Open the file in the default open mode with content:// .

    path (String) file path

    type (String Optional) MIME-type self-defined

    wait (Boolean Optional) wait for the end of the file open operation

<back> \ No newline at end of file diff --git a/source/qsl4a/pathToUri.html b/source/qsl4a/pathToUri.html new file mode 100644 index 0000000..7b3870b --- /dev/null +++ b/source/qsl4a/pathToUri.html @@ -0,0 +1 @@ +pathToUri

pathToUri(path, fileProvider=True, uriObject=False)

Convert normal path to content:// .

    path (String) file path

    fileProvider (Boolean Optional)

      True is default means content://<qpython>.provider/ ,

      False is default means content://media/external/ .

    uriObject (Boolean Optional)

        True means return uriObject ,

        False means return uriString .

<back> \ No newline at end of file diff --git a/source/qsl4a/phoneCall.html b/source/qsl4a/phoneCall.html new file mode 100644 index 0000000..63bddbd --- /dev/null +++ b/source/qsl4a/phoneCall.html @@ -0,0 +1 @@ +phoneCall

phoneCall(uri)

Calls a contact/phone number by URI.

    uri (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/phoneCallNumber.html b/source/qsl4a/phoneCallNumber.html new file mode 100644 index 0000000..9c01bb5 --- /dev/null +++ b/source/qsl4a/phoneCallNumber.html @@ -0,0 +1 @@ +phoneCallNumber

phoneCallNumber(phone_number)

Calls a phone number.

    phone number (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/phoneDial.html b/source/qsl4a/phoneDial.html new file mode 100644 index 0000000..05d300a --- /dev/null +++ b/source/qsl4a/phoneDial.html @@ -0,0 +1 @@ +phoneDial

phoneDial(uri)

Dials a contact/phone number by URI.

    uri (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/phoneDialNumber.html b/source/qsl4a/phoneDialNumber.html new file mode 100644 index 0000000..f4f75e1 --- /dev/null +++ b/source/qsl4a/phoneDialNumber.html @@ -0,0 +1 @@ +phoneDialNumber

phoneDialNumber(phone_number)

Dials a phone number.

    phone number (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/pick.html b/source/qsl4a/pick.html new file mode 100644 index 0000000..2ca2ed3 --- /dev/null +++ b/source/qsl4a/pick.html @@ -0,0 +1 @@ +pick

pick(uri)

Display content to be picked by URI (e.g. contacts)

    uri (String)

returns: (Intent) A map of result values.

<back> \ No newline at end of file diff --git a/source/qsl4a/pickContact.html b/source/qsl4a/pickContact.html new file mode 100644 index 0000000..b7cfb83 --- /dev/null +++ b/source/qsl4a/pickContact.html @@ -0,0 +1 @@ +pickContact

pickContact()

Displays a list of contacts to pick from.

returns: (Intent) A map of result values.

<back> \ No newline at end of file diff --git a/source/qsl4a/pickPhone.html b/source/qsl4a/pickPhone.html new file mode 100644 index 0000000..5ba91e0 --- /dev/null +++ b/source/qsl4a/pickPhone.html @@ -0,0 +1 @@ +pickPhone

pickPhone()

Displays a list of phone numbers to pick from.

returns: (String) The selected phone number.

<back> \ No newline at end of file diff --git a/source/qsl4a/prefGetAll.html b/source/qsl4a/prefGetAll.html new file mode 100644 index 0000000..cb3e54c --- /dev/null +++ b/source/qsl4a/prefGetAll.html @@ -0,0 +1 @@ +prefGetAll

prefGetAll(filename=None)

Get list of Shared Preference Values

    filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)

returns: (Map) Map of key,value

<back> \ No newline at end of file diff --git a/source/qsl4a/prefGetValue.html b/source/qsl4a/prefGetValue.html new file mode 100644 index 0000000..9871f5e --- /dev/null +++ b/source/qsl4a/prefGetValue.html @@ -0,0 +1 @@ +prefGetValue

prefGetValue(key,filename=None)

Read a value from shared preferences

    key (String)

    filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/prefPutValue.html b/source/qsl4a/prefPutValue.html new file mode 100644 index 0000000..d673f52 --- /dev/null +++ b/source/qsl4a/prefPutValue.html @@ -0,0 +1 @@ +prefPutValue

prefPutValue(key,value,filename=None)

Write a value to shared preferences

    key (String)

    value (Object)

    filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/prefRemoveValue.html b/source/qsl4a/prefRemoveValue.html new file mode 100644 index 0000000..bf47907 --- /dev/null +++ b/source/qsl4a/prefRemoveValue.html @@ -0,0 +1 @@ +prefRemoveValue

prefRemoveValue(key,filename=None)

Remove a value from shared preferences

    key (String)

    filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/provider.Settings.html b/source/qsl4a/provider.Settings.html new file mode 100644 index 0000000..b904289 --- /dev/null +++ b/source/qsl4a/provider.Settings.html @@ -0,0 +1 @@ +provider.Settings

'android.provider.Settings Constants, for more Settings Constants, please refer https://developer.android.google.cn/reference/android/provider/Settings.html .\n\nYou can use them like droid.startActivity(droid.provider.Settings.ACTION_SETTINGS) .'



ACTION_SETTINGS='android.settings.SETTINGS'

ACTION_SOUND_SETTINGS='android.settings.SOUND_SETTINGS'

ACTION_WIRELESS_SETTINGS='android.settings.WIRELESS_SETTINGS'

ACTION_APPLICATION_SETTINGS='android.settings.APPLICATION_SETTINGS'

ACTION_BLUETOOTH_SETTINGS='android.settings.BLUETOOTH_SETTINGS'

ACTION_CAPTIONING_SETTINGS='android.settings.CAPTIONING_SETTINGS'

ACTION_DATA_USAGE_SETTINGS='android.settings.DATA_USAGE_SETTINGS'

ACTION_DATE_SETTINGS='android.settings.DATE_SETTINGS'

ACTION_DEVICE_INFO_SETTINGS='android.settings.DEVICE_INFO_SETTINGS'

ACTION_DISPLAY_SETTINGS='android.settings.DISPLAY_SETTINGS'

ACTION_HARD_KEYBOARD_SETTINGS='android.settings.HARD_KEYBOARD_SETTINGS'

ACTION_INPUT_METHOD_SETTINGS='android.settings.INPUT_METHOD_SETTINGS'

ACTION_INTERNAL_STORAGE_SETTINGS='android.settings.INTERNAL_STORAGE_SETTINGS'

ACTION_LOCALE_SETTINGS='android.settings.LOCALE_SETTINGS'

ACTION_LOCATION_SOURCE_SETTINGS='android.settings.LOCATION_SOURCE_SETTINGS'

ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS='android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS'

ACTION_BATTERY_SAVER_SETTINGS="android.settings.BATTERY_SAVER_SETTINGS"

<back> \ No newline at end of file diff --git a/source/qsl4a/provider.html b/source/qsl4a/provider.html new file mode 100644 index 0000000..3b2a8b5 --- /dev/null +++ b/source/qsl4a/provider.html @@ -0,0 +1 @@ +provider

android.provider module, include Settings .

<back> \ No newline at end of file diff --git a/source/qsl4a/queryAttributes.html b/source/qsl4a/queryAttributes.html new file mode 100644 index 0000000..e9b7db9 --- /dev/null +++ b/source/qsl4a/queryAttributes.html @@ -0,0 +1 @@ +queryAttributes

queryAttributes(uri)

Content Resolver Query Attributes

    uri (String) The URI, using the content:// scheme, for the content to retrieve.

returns: (JSONArray) a list of available columns for a given content uri

<back> \ No newline at end of file diff --git a/source/qsl4a/queryContent.html b/source/qsl4a/queryContent.html new file mode 100644 index 0000000..5ad5332 --- /dev/null +++ b/source/qsl4a/queryContent.html @@ -0,0 +1 @@ +queryContent

queryContent(uri,attributes=None,selection=None,selectionArgs=None,order=None)

Content Resolver Query

    uri (String) The URI, using the content:// scheme, for the content to retrieve.

    attributes (JSONArray) A list of which columns to return. Passing null will return all columns (optional)

    selection (String) A filter declaring which rows to return (optional)

    selectionArgs (JSONArray) You may include ?s in selection, which will be replaced by the values from selectionArgs (optional)

    order (String) How to order the rows (optional)

returns: (List) result of query as Maps

Exactly as per ContentResolver.query

<back> \ No newline at end of file diff --git a/source/qsl4a/readBatteryData.html b/source/qsl4a/readBatteryData.html new file mode 100644 index 0000000..d6b3f5a --- /dev/null +++ b/source/qsl4a/readBatteryData.html @@ -0,0 +1 @@ +readBatteryData

readBatteryData()

Returns the most recently recorded battery data.

<back> \ No newline at end of file diff --git a/source/qsl4a/readGnssStatus.html b/source/qsl4a/readGnssStatus.html new file mode 100644 index 0000000..0e1a4a3 --- /dev/null +++ b/source/qsl4a/readGnssStatus.html @@ -0,0 +1 @@ +readGnssStatus

readGnssStatus()

Returns the current Global Navigation Satellite System status , data type is dict in list .

Need Android >= 8 .

<back> \ No newline at end of file diff --git a/source/qsl4a/readLocation.html b/source/qsl4a/readLocation.html new file mode 100644 index 0000000..45a8daa --- /dev/null +++ b/source/qsl4a/readLocation.html @@ -0,0 +1 @@ +readLocation

readLocation()

Returns the current location as indicated by all available providers.

returns: (Map) A map of location information by provider.

<back> \ No newline at end of file diff --git a/source/qsl4a/readPhoneState.html b/source/qsl4a/readPhoneState.html new file mode 100644 index 0000000..c8ca53c --- /dev/null +++ b/source/qsl4a/readPhoneState.html @@ -0,0 +1 @@ +readPhoneState

readPhoneState()

Returns the current phone state and incoming number.

returns: (Bundle) A Map of \"state\" and \"incomingNumber\"

<back> \ No newline at end of file diff --git a/source/qsl4a/readSensors.html b/source/qsl4a/readSensors.html new file mode 100644 index 0000000..3e6e641 --- /dev/null +++ b/source/qsl4a/readSensors.html @@ -0,0 +1 @@ +readSensors

readSensors()

Returns the most recently recorded sensor data.

<back> \ No newline at end of file diff --git a/source/qsl4a/readSignalStrengths.html b/source/qsl4a/readSignalStrengths.html new file mode 100644 index 0000000..efab46e --- /dev/null +++ b/source/qsl4a/readSignalStrengths.html @@ -0,0 +1 @@ +readSignalStrengths

readSignalStrengths()

Returns the current signal strengths. GSM/CDMA/EVDO/LTE

returns: (Bundle) A map of "signal_strength"

<back> \ No newline at end of file diff --git a/source/qsl4a/receiveEvent.html b/source/qsl4a/receiveEvent.html new file mode 100644 index 0000000..95574f5 --- /dev/null +++ b/source/qsl4a/receiveEvent.html @@ -0,0 +1 @@ +receiveEvent

receiveEvent()

Returns and removes the oldest event (i.e. location or sensor update, etc.) from the event buffer.

returns: (Event) Map of event properties.

Deprecated in r4. Use eventPoll instead.

<back> \ No newline at end of file diff --git a/source/qsl4a/recordAudio.html b/source/qsl4a/recordAudio.html new file mode 100644 index 0000000..c94ecbb --- /dev/null +++ b/source/qsl4a/recordAudio.html @@ -0,0 +1 @@ +recordAudio

recordAudio()

Record Audio with system soundrecorder .

return path if success, return None if canceled .

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderCaptureVideo.html b/source/qsl4a/recorderCaptureVideo.html new file mode 100644 index 0000000..24415f1 --- /dev/null +++ b/source/qsl4a/recorderCaptureVideo.html @@ -0,0 +1 @@ +recorderCaptureVideo

recorderCaptureVideo(targetPath = None, duration = 10, cameraId = 0, quality = 8)

Records video from the camera and saves it to the given location.

    targetPath (String Optional) if omitted, use default path

    duration (Integer Optional) seconds

    cameraId (Integer Optional)

    quality (Integer Optional)

returns: targetPath





recorderCaptureVideo.QUALITY_8KUHD = 13

recorderCaptureVideo.QUALITY_2K    = 12

recorderCaptureVideo.QUALITY_4KDCI = 10

recorderCaptureVideo.QUALITY_2160P =  8

recorderCaptureVideo.QUALITY_1080P =  6

recorderCaptureVideo.QUALITY_720P  =  5

recorderCaptureVideo.CAMERA_FRONT  =  1

recorderCaptureVideo.CAMERA_BACK   =  0

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderPause.html b/source/qsl4a/recorderPause.html new file mode 100644 index 0000000..3222961 --- /dev/null +++ b/source/qsl4a/recorderPause.html @@ -0,0 +1 @@ +recorderPause

recorderPause()

Pause a previously started recording.

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderResume.html b/source/qsl4a/recorderResume.html new file mode 100644 index 0000000..259598f --- /dev/null +++ b/source/qsl4a/recorderResume.html @@ -0,0 +1 @@ +recorderResume

recorderResume()

Resume a previously paused recording.

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderSoundVolumeDetect.html b/source/qsl4a/recorderSoundVolumeDetect.html new file mode 100644 index 0000000..b9d2fb8 --- /dev/null +++ b/source/qsl4a/recorderSoundVolumeDetect.html @@ -0,0 +1 @@ +recorderSoundVolumeDetect

recorderSoundVolumeDetect(interval = 100)

Start or Stop to detect Sound Volume Decibel,

    interval (Integer Optional)

        interval > 0 --> start to detect sound volume decibel according to the time interval (miliseconds),

        interval <= 0 --> stop to detect sound volume decibel,

    Return None .

  If you want to detect Sound Volume Decibel while record sound , you need run recorderStartMicrophone first , then call recorderSoundVolumeDetect .

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderSoundVolumeGetDb.html b/source/qsl4a/recorderSoundVolumeGetDb.html new file mode 100644 index 0000000..b43bf64 --- /dev/null +++ b/source/qsl4a/recorderSoundVolumeGetDb.html @@ -0,0 +1 @@ +recorderSoundVolumeGetDb

recorderSoundVolumeGetDb()

Get current Sound Volume Decibel,

    Return Sound Volume Decibel float .

    Need to run droid.recorderSoundVolumeDetect(interval = 100) first .

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderStart.html b/source/qsl4a/recorderStart.html new file mode 100644 index 0000000..744f6fd --- /dev/null +++ b/source/qsl4a/recorderStart.html @@ -0,0 +1 @@ +recorderStart

recorderStart()

Start a prepared recording.

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderStartMicrophone.html b/source/qsl4a/recorderStartMicrophone.html new file mode 100644 index 0000000..b9aa6dc --- /dev/null +++ b/source/qsl4a/recorderStartMicrophone.html @@ -0,0 +1 @@ +recorderStartMicrophone

recorderStartMicrophone(targetPath=None)

Records audio from the microphone and saves it to the given location.

    targetPath (String Optional) if omitted, use default path

  If you want to detect Sound Volume Decibel while record sound , you need run recorderStartMicrophone first , then call recorderSoundVolumeDetect .

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderStartScreenRecord.html b/source/qsl4a/recorderStartScreenRecord.html new file mode 100644 index 0000000..a33bd5e --- /dev/null +++ b/source/qsl4a/recorderStartScreenRecord.html @@ -0,0 +1 @@ +recorderStartScreenRecord

recorderStartScreenRecord(path = None, audio = True, quality = 1, rotation = False, autoStart = True)

Record Screen to path .

    path (String Optional) mpeg4 file path, if omitted, use default path

    audio (Boolean Optional) record audio

    quality (Integer Optional) 1 is high, 0 is low

    rotation (Boolean Optional) width and height rotation exchange

    autoStart (Boolean Optional) Auto Start Record after Prepare

    { rotation = True and autoStart = False } : {

        is for some incompatible devices horizontal screen record,

        which can only prepare screen record on the vertical screen,

        then switch to the horizontal screen,

        then start recording with recorderStart() .

    }

return path



recorderStartScreenRecord.QUALITY_HIGH = 1

recorderStartScreenRecord.QUALITY_LOW  = 0

<back> \ No newline at end of file diff --git a/source/qsl4a/recorderStop.html b/source/qsl4a/recorderStop.html new file mode 100644 index 0000000..38f9ab9 --- /dev/null +++ b/source/qsl4a/recorderStop.html @@ -0,0 +1 @@ +recorderStop

recorderStop()

Stops a previously started recording.

<back> \ No newline at end of file diff --git a/source/qsl4a/requestPermissions.html b/source/qsl4a/requestPermissions.html new file mode 100644 index 0000000..2385aec --- /dev/null +++ b/source/qsl4a/requestPermissions.html @@ -0,0 +1 @@ +requestPermissions

requestPermissions(permissions = None)

  Request Permissions that QPython do not have, some permission cannot be granted succesfully,

  permissions (List of String, Optional) if permissions is None, use all denied permissions .

<back> \ No newline at end of file diff --git a/source/qsl4a/rpcPostEvent.html b/source/qsl4a/rpcPostEvent.html new file mode 100644 index 0000000..5c00c42 --- /dev/null +++ b/source/qsl4a/rpcPostEvent.html @@ -0,0 +1 @@ +rpcPostEvent

rpcPostEvent(name,data)

Post an event to the event queue.

    name (String)

    data (String)

Deprecated in r4. Use eventPost instead.

<back> \ No newline at end of file diff --git a/source/qsl4a/scanBarcode.html b/source/qsl4a/scanBarcode.html new file mode 100644 index 0000000..f7aca2e --- /dev/null +++ b/source/qsl4a/scanBarcode.html @@ -0,0 +1 @@ +scanBarcode

scanBarcode( title = None )

Starts the barcode scanner.

returns the result String of Barcode .

title (String Optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/scanBarcodeFromImage.html b/source/qsl4a/scanBarcodeFromImage.html new file mode 100644 index 0000000..4b010b4 --- /dev/null +++ b/source/qsl4a/scanBarcodeFromImage.html @@ -0,0 +1 @@ +scanBarcodeFromImage

scanBarcodeFromImage( path, compressRatio = 0, x = 0, y = 0, width = 0, height = 0)

Scan the QR code from the picture,

path (String):

    original Picture path;

compressRatio (Integer Optional):

    if a Picture is 1000x800;

    if compressRatio == 0 or 1, the Picture will not compress;

    if compressRatio == 2, the Picture will compress to 500x400;

    if compressRatio == 4, the Picture will compress to 250x200;

    and so on;

x or y (Integer Optional):

    Position of the original Picture, x==y==0 is the top left corner;

width or height (Integer Optional):

    Intercept Size of the original Picture, width==height==0 means original width and height;

returns the result String of Barcode .

<back> \ No newline at end of file diff --git a/source/qsl4a/search.html b/source/qsl4a/search.html new file mode 100644 index 0000000..31e0796 --- /dev/null +++ b/source/qsl4a/search.html @@ -0,0 +1 @@ +search

search(query)

Starts a search for the given query.

    query (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/send.html b/source/qsl4a/send.html new file mode 100644 index 0000000..31ef755 --- /dev/null +++ b/source/qsl4a/send.html @@ -0,0 +1 @@ +send

send(uri,type=None,extras=None,wait=True)

Start activity with send action by URI (i.e. browser, contacts, etc.).

    uri (String)

    type (String) MIME type/subtype of the URI (optional)

    extras (JSONObject) a Map of extras to add to the Intent (optional)

    wait (Boolean Optional) wait for the send operation end

<back> \ No newline at end of file diff --git a/source/qsl4a/sendBroadcast.html b/source/qsl4a/sendBroadcast.html new file mode 100644 index 0000000..650ee0c --- /dev/null +++ b/source/qsl4a/sendBroadcast.html @@ -0,0 +1 @@ +sendBroadcast

sendBroadcast(action,uri=None,type=None,extras=None,packagename=None,classname=None)

Send a broadcast.

    action (String)

    uri (String)  (optional)

    type (String) MIME type/subtype of the URI (optional)

    extras (JSONObject) a Map of extras to add to the Intent (optional)

    packagename (String) name of package. If used, requires classname to be useful (optional)

    classname (String) name of class. If used, requires packagename to be useful (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/sendBroadcastIntent.html b/source/qsl4a/sendBroadcastIntent.html new file mode 100644 index 0000000..93e6f03 --- /dev/null +++ b/source/qsl4a/sendBroadcastIntent.html @@ -0,0 +1 @@ +sendBroadcastIntent

sendBroadcastIntent(intent)

Send Broadcast Intent

    intent (Intent) Intent in the format as returned from makeIntent

<back> \ No newline at end of file diff --git a/source/qsl4a/sendEmail.html b/source/qsl4a/sendEmail.html new file mode 100644 index 0000000..2a4f048 --- /dev/null +++ b/source/qsl4a/sendEmail.html @@ -0,0 +1 @@ +sendEmail

sendEmail(to,subject,body,attachmentUri=None)

Launches an activity that sends an e-mail message to a given recipient.

    to (String) A comma separated list of recipients.

    subject (String)

    body (String)

    attachmentUri (String)  (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/sendFile.html b/source/qsl4a/sendFile.html new file mode 100644 index 0000000..67240bf --- /dev/null +++ b/source/qsl4a/sendFile.html @@ -0,0 +1 @@ +sendFile

sendFile(path, type=None, extras=None, wait=True)

Send file(s) with the type and extras with content:// .

    path (single String or List of Strings) file path(s)

    type (String Optional) MIME-type self-defined

    extras (Dict Optional) Extras self-defined, it is not recommended to fill in droid.Intent.EXTRA_STREAM ( "android.intent.extra.STREAM" )

    wait (Boolean Optional) wait for the end of the file send operation

<back> \ No newline at end of file diff --git a/source/qsl4a/sendText.html b/source/qsl4a/sendText.html new file mode 100644 index 0000000..1b979fe --- /dev/null +++ b/source/qsl4a/sendText.html @@ -0,0 +1 @@ +sendText

sendText(text,extras=None,wait=True)

Start activity with send action by text .

    text (String)

    extras (Dict Optional) Extras self-defined, it is not recommended to fill in droid.Intent.EXTRA_TEXT ( "android.intent.extra.TEXT" )

    wait (Boolean Optional) wait for the send operation end

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsGetAccuracy.html b/source/qsl4a/sensorsGetAccuracy.html new file mode 100644 index 0000000..4b93b45 --- /dev/null +++ b/source/qsl4a/sensorsGetAccuracy.html @@ -0,0 +1 @@ +sensorsGetAccuracy

sensorsGetAccuracy()

Returns the most recently received accuracy value.

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsGetLight.html b/source/qsl4a/sensorsGetLight.html new file mode 100644 index 0000000..32e61eb --- /dev/null +++ b/source/qsl4a/sensorsGetLight.html @@ -0,0 +1 @@ +sensorsGetLight

sensorsGetLight()

Returns the most recently received light value.

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsGetStepCounter.html b/source/qsl4a/sensorsGetStepCounter.html new file mode 100644 index 0000000..e152c57 --- /dev/null +++ b/source/qsl4a/sensorsGetStepCounter.html @@ -0,0 +1 @@ +sensorsGetStepCounter

sensorsGetStepCounter()

Returns the most recently Step Counter.

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsReadAccelerometer.html b/source/qsl4a/sensorsReadAccelerometer.html new file mode 100644 index 0000000..008e032 --- /dev/null +++ b/source/qsl4a/sensorsReadAccelerometer.html @@ -0,0 +1 @@ +sensorsReadAccelerometer

sensorsReadAccelerometer()

Returns the most recently received accelerometer values.

returns: (List) a List of Floats [(acceleration on the) X axis, Y axis, Z axis].

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsReadGyroscope.html b/source/qsl4a/sensorsReadGyroscope.html new file mode 100644 index 0000000..74741ae --- /dev/null +++ b/source/qsl4a/sensorsReadGyroscope.html @@ -0,0 +1 @@ +sensorsReadGyroscope

sensorsReadGyroscope()

Returns the most recently received gyroscope value.

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsReadMagnetometer.html b/source/qsl4a/sensorsReadMagnetometer.html new file mode 100644 index 0000000..8b59a13 --- /dev/null +++ b/source/qsl4a/sensorsReadMagnetometer.html @@ -0,0 +1 @@ +sensorsReadMagnetometer

sensorsReadMagnetometer()

Returns the most recently received magnetic field values.

returns: (List) a List of Floats [(magnetic field value for) X axis, Y axis, Z axis].

<back> \ No newline at end of file diff --git a/source/qsl4a/sensorsReadOrientation.html b/source/qsl4a/sensorsReadOrientation.html new file mode 100644 index 0000000..0808396 --- /dev/null +++ b/source/qsl4a/sensorsReadOrientation.html @@ -0,0 +1 @@ +sensorsReadOrientation

sensorsReadOrientation()

Returns the most recently received orientation values.

returns: (List) a List of Doubles [azimuth, pitch, roll].

<back> \ No newline at end of file diff --git a/source/qsl4a/setClipboard.html b/source/qsl4a/setClipboard.html new file mode 100644 index 0000000..d5f7556 --- /dev/null +++ b/source/qsl4a/setClipboard.html @@ -0,0 +1 @@ +setClipboard

setClipboard(text)

Put text in the clipboard.

    text (String)

Creates a new AndroidFacade that simplifies the interface to various Android APIs.

<back> \ No newline at end of file diff --git a/source/qsl4a/setMediaVolume.html b/source/qsl4a/setMediaVolume.html new file mode 100644 index 0000000..781992d --- /dev/null +++ b/source/qsl4a/setMediaVolume.html @@ -0,0 +1 @@ +setMediaVolume

setMediaVolume(volume)

Sets the media volume.

    volume (Integer)

<back> \ No newline at end of file diff --git a/source/qsl4a/setRingerVolume.html b/source/qsl4a/setRingerVolume.html new file mode 100644 index 0000000..fda08d8 --- /dev/null +++ b/source/qsl4a/setRingerVolume.html @@ -0,0 +1 @@ +setRingerVolume

setRingerVolume(volume)

Sets the ringer volume.

    volume (Integer)

<back> \ No newline at end of file diff --git a/source/qsl4a/setScreenBrightness.html b/source/qsl4a/setScreenBrightness.html new file mode 100644 index 0000000..33e55b5 --- /dev/null +++ b/source/qsl4a/setScreenBrightness.html @@ -0,0 +1 @@ +setScreenBrightness

setScreenBrightness(value=None)

Sets the the screen backlight brightness.

    value (Integer) brightness value between 0 and 255,

    if value defaults to None, use automatic brightness .

returns: (Integer) the original screen brightness.

<back> \ No newline at end of file diff --git a/source/qsl4a/setScreenTimeout.html b/source/qsl4a/setScreenTimeout.html new file mode 100644 index 0000000..2ac9d3d --- /dev/null +++ b/source/qsl4a/setScreenTimeout.html @@ -0,0 +1 @@ +setScreenTimeout

setScreenTimeout(value)

Sets the screen timeout to this number of seconds.

    value (Integer)

returns: (Integer) The original screen timeout.

<back> \ No newline at end of file diff --git a/source/qsl4a/sharedVariableGet.html b/source/qsl4a/sharedVariableGet.html new file mode 100644 index 0000000..ab1374d --- /dev/null +++ b/source/qsl4a/sharedVariableGet.html @@ -0,0 +1 @@ +sharedVariableGet

sharedVariableGet(key)

Get Shared Variable of SL4A which can be use by other QPython scripts .

    key (String)

Return the value string corresponding to the key string .

If the key does not exist, an error will be reported.

Note: when qpython is closed, these shared variables will be cleared.

<back> \ No newline at end of file diff --git a/source/qsl4a/sharedVariableRemove.html b/source/qsl4a/sharedVariableRemove.html new file mode 100644 index 0000000..ba264ed --- /dev/null +++ b/source/qsl4a/sharedVariableRemove.html @@ -0,0 +1 @@ +sharedVariableRemove

sharedVariableRemove(key)

remove Shared Variable of SL4A which will cannot use by other QPython scripts .

    key (String) which need to remove

If the key exists, return the original value string corresponding to the key string ,

If the key not exist, return None .

note: when qpython is closed, these shared variables will be cleared.

<back> \ No newline at end of file diff --git a/source/qsl4a/sharedVariableSet.html b/source/qsl4a/sharedVariableSet.html new file mode 100644 index 0000000..b3f7ef2 --- /dev/null +++ b/source/qsl4a/sharedVariableSet.html @@ -0,0 +1 @@ +sharedVariableSet

sharedVariableSet(key, value)

set Shared Variable of SL4A which can be use by other QPython scripts .

    key (String)

    value (String)

If the key exists, return the original value string corresponding to the key string ,

If the key not exist, return None .

note: when qpython is closed, these shared variables will be cleared.

<back> \ No newline at end of file diff --git a/source/qsl4a/showScreenLock.html b/source/qsl4a/showScreenLock.html new file mode 100644 index 0000000..6a0407c --- /dev/null +++ b/source/qsl4a/showScreenLock.html @@ -0,0 +1 @@ +showScreenLock

showScreenLock()

Show Screen Lock Verify with password or fingerprint .

    return True  if verify ok   ,

    return False if verify fail .

<back> \ No newline at end of file diff --git a/source/qsl4a/sl4aHelp.py b/source/qsl4a/sl4aHelp.py new file mode 100644 index 0000000..2539ecf --- /dev/null +++ b/source/qsl4a/sl4aHelp.py @@ -0,0 +1,82 @@ +from WinGui.ListCmd import * +from WinGui.LongHtml import * +from androidhelper import * +droid = Android() +droid.cipherInit(b's'*16) +droid.documentTreeShowOpen() +droid.batteryStartMonitoring() +droid.batteryStopMonitoring() +droid.startSensingTimed(5,100) +droid.stopSensing() +droid.checkBluetoothState() +p1='/storage/emulated/0/Download/QSL4A/' +p2=p1+'qsl4a/%s.html' +p3=p1+'qsl4a.html' +open(p3,'w').write('QSL4A Functions\n') +Functions = ['R.id','R.layout','R.style','provider.Settings'] +for i in dir(droid): + if i[0]!='_': + Functions.append(i) +Functions.sort() +o='

确认 调用 百度翻译url 成 简体中文,只提示一次
' +def Text2Html(s,u=None): + t=[''] + r=t.append + firstLine=True + for i in s: + j=ord(i) + if j==10: + if firstLine: + if len(t)==1: + continue + r('') + firstLine=False + r('

') + elif j==32: + r(' ') + elif j<256 and not (i.isalpha() or i.isdigit()): + r('&#');r(str(j));r(";") + else: + r(i) + t=''.join(t) + if u: + t=t.replace(u,""+u+"") + return t +def sl4aHelp(Title): + global o,Functions + for a in Functions: + #c=ListCmd('%s:%s个'%(Title,len(Functions)),Functions) + #if None==c: + #break + #a=Functions[c] + if a.split('.',1)[0] in ('R','provider','Intent'): + try: + b=open(eval(f'droid.{a}.__file__')).read() + except: + b=eval(f'droid.{a}.__doc__') + else: + b=eval(f'droid.{a}.__doc__') + #Functions=Functions[c:]+Functions[:c] + h1=Text2Html(a)+o + h2=Text2Html(b,a) + #a=LongHtml(h1,h2) + open(p2%a,'w').write(f'{a}

{h2}

<back>') + open(p3,'a').write(f'{a}
\n') + if o: + o='' + if a==None and len(a)>0: + a=bytes(b,'utf-8') + b=[];d=-1 + for c in a: + if 65<=c<=90 and ( 97<=d<=122 or 48<=d<=57 ): + b.append('%20') + d=c + c=hex(c) + if len(c)==4: + b.append('%'+c[2:]) + else: + b.append('%0'+c[2:]) + b=''.join(b) + droid.viewHtml('https://fanyi.baidu.com/?tpltype=sigma#en/zh/'+b) +open(p3,'a').write('') +#by 乘着船 Bilibili diff --git a/source/qsl4a/smsDeleteMessage.html b/source/qsl4a/smsDeleteMessage.html new file mode 100644 index 0000000..0d4775a --- /dev/null +++ b/source/qsl4a/smsDeleteMessage.html @@ -0,0 +1 @@ +smsDeleteMessage

smsDeleteMessage(id)

Deletes a message.

    id (Integer)

returns: (Boolean) True if the message was deleted

<back> \ No newline at end of file diff --git a/source/qsl4a/smsGetAttributes.html b/source/qsl4a/smsGetAttributes.html new file mode 100644 index 0000000..b1905bf --- /dev/null +++ b/source/qsl4a/smsGetAttributes.html @@ -0,0 +1 @@ +smsGetAttributes

smsGetAttributes()

Returns a List of all possible message attributes.

<back> \ No newline at end of file diff --git a/source/qsl4a/smsGetMessageById.html b/source/qsl4a/smsGetMessageById.html new file mode 100644 index 0000000..0074123 --- /dev/null +++ b/source/qsl4a/smsGetMessageById.html @@ -0,0 +1 @@ +smsGetMessageById

smsGetMessageById(id,attributes=None)

Returns message attributes.

    id (Integer) message ID

    attributes (JSONArray)  (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/smsGetMessageCount.html b/source/qsl4a/smsGetMessageCount.html new file mode 100644 index 0000000..a4e8c29 --- /dev/null +++ b/source/qsl4a/smsGetMessageCount.html @@ -0,0 +1 @@ +smsGetMessageCount

smsGetMessageCount(unreadOnly,folder="inbox")

Returns the number of messages.

    unreadOnly (Boolean)

    folder (String)  (default=inbox)

<back> \ No newline at end of file diff --git a/source/qsl4a/smsGetMessageIds.html b/source/qsl4a/smsGetMessageIds.html new file mode 100644 index 0000000..ce22f41 --- /dev/null +++ b/source/qsl4a/smsGetMessageIds.html @@ -0,0 +1 @@ +smsGetMessageIds

smsGetMessageIds(unreadOnly,folder="inbox")

Returns a List of all message IDs.

    unreadOnly (Boolean)

    folder (String)  (default=inbox)

<back> \ No newline at end of file diff --git a/source/qsl4a/smsGetMessages.html b/source/qsl4a/smsGetMessages.html new file mode 100644 index 0000000..5172c2d --- /dev/null +++ b/source/qsl4a/smsGetMessages.html @@ -0,0 +1 @@ +smsGetMessages

smsGetMessages(unreadOnly,folder="inbox",attributes=None)

Returns a List of all messages.

    unreadOnly (Boolean)

    folder (String)  (default=inbox)

    attributes (JSONArray)  (optional)

returns: (List) a List of messages as Maps

<back> \ No newline at end of file diff --git a/source/qsl4a/smsMarkMessageRead.html b/source/qsl4a/smsMarkMessageRead.html new file mode 100644 index 0000000..4140637 --- /dev/null +++ b/source/qsl4a/smsMarkMessageRead.html @@ -0,0 +1 @@ +smsMarkMessageRead

smsMarkMessageRead(ids,read)

Marks messages as read.

    ids (JSONArray) List of message IDs to mark as read.

    read (Boolean)

returns: (Integer) number of messages marked read

<back> \ No newline at end of file diff --git a/source/qsl4a/smsSend.html b/source/qsl4a/smsSend.html new file mode 100644 index 0000000..50db3b7 --- /dev/null +++ b/source/qsl4a/smsSend.html @@ -0,0 +1 @@ +smsSend

smsSend(destinationAddress,text)

Sends an SMS. You need start SMS permission first .

    destinationAddress (String) typically a phone number

    text (String)

<back> \ No newline at end of file diff --git a/source/qsl4a/speechToText.html b/source/qsl4a/speechToText.html new file mode 100644 index 0000000..56a1e23 --- /dev/null +++ b/source/qsl4a/speechToText.html @@ -0,0 +1 @@ +speechToText

speechToText(RecordSecond = 10, AmrFile = None, Language = None)

    RecordSecond ( Integer , Optional ) Recording duration ,

    AmrFile ( String , Optional ) Temporary stored amr file ,

    If RecordSecond is None , use only AmrFile to input speech content .

    If AmrFile is None , use AmrFile = os.environ['TMP']+'/tmp.amr' .

    If Language is None, use system language .

<back> \ No newline at end of file diff --git a/source/qsl4a/startActivity.html b/source/qsl4a/startActivity.html new file mode 100644 index 0000000..75deb49 --- /dev/null +++ b/source/qsl4a/startActivity.html @@ -0,0 +1 @@ +startActivity

startActivity(action,uri=None,type=None,extras=None,wait=None,packagename=None,classname=None)

Starts an activity.

    action (String)

    uri (String)  (optional)

    type (String) MIME type/subtype of the URI (optional)

    extras (JSONObject) a Map of extras to add to the Intent (optional)

    wait (Boolean) block until the user exits the started activity (optional)

    packagename (String) name of package. If used, requires classname to be useful (optional)

    classname (String) name of class. If used, requires packagename to be useful (optional)

packagename and classname, if provided, are used in a 'setComponent' call.

<back> \ No newline at end of file diff --git a/source/qsl4a/startActivityForResult.html b/source/qsl4a/startActivityForResult.html new file mode 100644 index 0000000..7e05178 --- /dev/null +++ b/source/qsl4a/startActivityForResult.html @@ -0,0 +1 @@ +startActivityForResult

startActivityForResult(action,uri=None,type=None,extras=None,packagename=None,classname=None)

Starts an activity and returns the result.

    action (String)

    uri (String)  (optional)

    type (String) MIME type/subtype of the URI (optional)

    extras (JSONObject) a Map of extras to add to the Intent (optional)

    packagename (String) name of package. If used, requires classname to be useful (optional)

    classname (String) name of class. If used, requires packagename to be useful (optional)

returns: (Intent) A Map representation of the result Intent.

<back> \ No newline at end of file diff --git a/source/qsl4a/startActivityForResultIntent.html b/source/qsl4a/startActivityForResultIntent.html new file mode 100644 index 0000000..df72857 --- /dev/null +++ b/source/qsl4a/startActivityForResultIntent.html @@ -0,0 +1 @@ +startActivityForResultIntent

startActivityForResultIntent(intent)

Starts an activity and returns the result.

    intent (Intent) Intent in the format as returned from makeIntent

returns: (Intent) A Map representation of the result Intent.

<back> \ No newline at end of file diff --git a/source/qsl4a/startActivityIntent.html b/source/qsl4a/startActivityIntent.html new file mode 100644 index 0000000..ba85cd5 --- /dev/null +++ b/source/qsl4a/startActivityIntent.html @@ -0,0 +1 @@ +startActivityIntent

startActivityIntent(intent,wait=None)

Start Activity using Intent

    intent (Intent) Intent in the format as returned from makeIntent

    wait (Boolean) block until the user exits the started activity (optional)

<back> \ No newline at end of file diff --git a/source/qsl4a/startEventDispatcher.html b/source/qsl4a/startEventDispatcher.html new file mode 100644 index 0000000..7326bad --- /dev/null +++ b/source/qsl4a/startEventDispatcher.html @@ -0,0 +1 @@ +startEventDispatcher

startEventDispatcher(port=None)

Opens up a socket where you can read for events posted

    port (Integer) Port to use (optional) (default=0)

<back> \ No newline at end of file diff --git a/source/qsl4a/startLocating.html b/source/qsl4a/startLocating.html new file mode 100644 index 0000000..ba313b2 --- /dev/null +++ b/source/qsl4a/startLocating.html @@ -0,0 +1 @@ +startLocating

startLocating(minUpdateTime=60000,minUpdateDistance=30,updateGnssStatus=False)

Starts collecting location data.

    minUpdateTime (Integer) minimum time between updates in milliseconds (default=60000) ,

    minUpdateDistance (Integer) minimum distance between updates in meters (default=30) ,

    updateGnssStatus (Boolean) if Android >= 9 and updateGnssStatus is True (default=False) , update Global Navigation Satellite System status .

<back> \ No newline at end of file diff --git a/source/qsl4a/startSensingThreshold.html b/source/qsl4a/startSensingThreshold.html new file mode 100644 index 0000000..69c3797 --- /dev/null +++ b/source/qsl4a/startSensingThreshold.html @@ -0,0 +1 @@ +startSensingThreshold

startSensingThreshold(sensorNumber,threshold,axis)

Records to the Event Queue sensor data exceeding a chosen threshold.

    sensorNumber (Integer) 1 = All, 2 = Accelerometer, 3 = Magnetometer, 4 = Light, 5 = StepCounter, 6 = Gyroscope

    threshold (Integer) Threshold level for chosen sensor (integer)

    axis (Integer) 0 = No axis, 1 = X, 2 = Y, 3 = X+Y, 4 = Z, 5= X+Z, 6 = Y+Z, 7 = X+Y+Z





startSensingThreshold.ALL = 1

startSensingThreshold.ACCELEROMETER = 2

startSensingThreshold.MAGNETOMETER = 3

startSensingThreshold.LIGHT = 4

startSensingThreshold.STEP_COUNTER = 5

startSensingThreshold.GYROSCOPE = 6

<back> \ No newline at end of file diff --git a/source/qsl4a/startSensingTimed.html b/source/qsl4a/startSensingTimed.html new file mode 100644 index 0000000..bd53a6d --- /dev/null +++ b/source/qsl4a/startSensingTimed.html @@ -0,0 +1 @@ +startSensingTimed

startSensingTimed(sensorNumber,delayTime)

Starts recording sensor data to be available for polling.

    sensorNumber (Integer) 1 = All, 2 = Accelerometer, 3 = Magnetometer, 4 = Light, 5 = StepCounter, 6 = Gyroscope

    delayTime (Integer) Minimum time between readings in milliseconds





startSensingTimed.ALL = 1

startSensingTimed.ACCELEROMETER = 2

startSensingTimed.MAGNETOMETER = 3

startSensingTimed.LIGHT = 4

startSensingTimed.STEP_COUNTER = 5

startSensingTimed.GYROSCOPE = 6

<back> \ No newline at end of file diff --git a/source/qsl4a/startTrackingPhoneState.html b/source/qsl4a/startTrackingPhoneState.html new file mode 100644 index 0000000..7c9b519 --- /dev/null +++ b/source/qsl4a/startTrackingPhoneState.html @@ -0,0 +1 @@ +startTrackingPhoneState

startTrackingPhoneState()

Starts tracking phone state.

<back> \ No newline at end of file diff --git a/source/qsl4a/startTrackingSignalStrengths.html b/source/qsl4a/startTrackingSignalStrengths.html new file mode 100644 index 0000000..347f6fe --- /dev/null +++ b/source/qsl4a/startTrackingSignalStrengths.html @@ -0,0 +1 @@ +startTrackingSignalStrengths

startTrackingSignalStrengths()

Starts tracking signal strengths. GSM/CDMA/EVDO

<back> \ No newline at end of file diff --git a/source/qsl4a/stopEventDispatcher.html b/source/qsl4a/stopEventDispatcher.html new file mode 100644 index 0000000..82c7e5b --- /dev/null +++ b/source/qsl4a/stopEventDispatcher.html @@ -0,0 +1 @@ +stopEventDispatcher

stopEventDispatcher()

Stops the event server, you can\'t read in the port anymore

<back> \ No newline at end of file diff --git a/source/qsl4a/stopLocating.html b/source/qsl4a/stopLocating.html new file mode 100644 index 0000000..4e9b7c0 --- /dev/null +++ b/source/qsl4a/stopLocating.html @@ -0,0 +1 @@ +stopLocating

stopLocating()

Stops collecting location data.

<back> \ No newline at end of file diff --git a/source/qsl4a/stopSensing.html b/source/qsl4a/stopSensing.html new file mode 100644 index 0000000..2d7dbd8 --- /dev/null +++ b/source/qsl4a/stopSensing.html @@ -0,0 +1 @@ +stopSensing

stopSensing()

Stops collecting sensor data.

<back> \ No newline at end of file diff --git a/source/qsl4a/stopTrackingPhoneState.html b/source/qsl4a/stopTrackingPhoneState.html new file mode 100644 index 0000000..4788ec9 --- /dev/null +++ b/source/qsl4a/stopTrackingPhoneState.html @@ -0,0 +1 @@ +stopTrackingPhoneState

stopTrackingPhoneState()

Stops tracking phone state.

<back> \ No newline at end of file diff --git a/source/qsl4a/stopTrackingSignalStrengths.html b/source/qsl4a/stopTrackingSignalStrengths.html new file mode 100644 index 0000000..39e0c59 --- /dev/null +++ b/source/qsl4a/stopTrackingSignalStrengths.html @@ -0,0 +1 @@ +stopTrackingSignalStrengths

stopTrackingSignalStrengths()

Stops tracking signal strength. GSM/CDMA/EVDO

<back> \ No newline at end of file diff --git a/source/qsl4a/takePicture.html b/source/qsl4a/takePicture.html new file mode 100644 index 0000000..6ffdc98 --- /dev/null +++ b/source/qsl4a/takePicture.html @@ -0,0 +1 @@ +takePicture

takePicture(path = None)

Take Picture with system camera .

path (String Optional) if omitted, use default path

return path if success, return None if canceled .

<back> \ No newline at end of file diff --git a/source/qsl4a/takeVideo.html b/source/qsl4a/takeVideo.html new file mode 100644 index 0000000..939807c --- /dev/null +++ b/source/qsl4a/takeVideo.html @@ -0,0 +1 @@ +takeVideo

takeVideo(path = None, quality = 1)

Take Video with system camera .

path (String Optional) if omitted, use default path

quality (Integer Optional) default 1 is high quality, 0 is low quality.

return path if success, return None if canceled .



takeVideo.QUALITY_HIGH = 1

takeVideo.QUALITY_LOW  = 0

<back> \ No newline at end of file diff --git a/source/qsl4a/textToSpeech.html b/source/qsl4a/textToSpeech.html new file mode 100644 index 0000000..035b613 --- /dev/null +++ b/source/qsl4a/textToSpeech.html @@ -0,0 +1 @@ +textToSpeech

textToSpeech(Text, AutoPlay = True, WavFile = None, VoiceName = None)

    Text (String) the String to convert to speech ,

    AutoPlay (Boolean Optional) auto play the speech ,

    WavFile (String Optional) the wav file to store the speech, if it is None, means os.environ['TMP']+'/tmp.wav' ,

    VoiceName (String Optional) 

<back> \ No newline at end of file diff --git a/source/qsl4a/toggleBluetoothState.html b/source/qsl4a/toggleBluetoothState.html new file mode 100644 index 0000000..7895f36 --- /dev/null +++ b/source/qsl4a/toggleBluetoothState.html @@ -0,0 +1 @@ +toggleBluetoothState

toggleBluetoothState(enabled=None,prompt=True)

Toggle Bluetooth on and off.

    enabled (Boolean)  (optional)

    prompt (Boolean) Prompt the user to confirm changing the Bluetooth state. (default=true)

returns: (Boolean) True if Bluetooth is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/toggleRingerSilentMode.html b/source/qsl4a/toggleRingerSilentMode.html new file mode 100644 index 0000000..2b3e8e3 --- /dev/null +++ b/source/qsl4a/toggleRingerSilentMode.html @@ -0,0 +1 @@ +toggleRingerSilentMode

toggleRingerSilentMode(enabled=None)

Toggles ringer silent mode on and off.

    enabled (Boolean)  (optional)

returns: (Boolean) True if ringer silent mode is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/toggleVibrateMode.html b/source/qsl4a/toggleVibrateMode.html new file mode 100644 index 0000000..8dde1d3 --- /dev/null +++ b/source/qsl4a/toggleVibrateMode.html @@ -0,0 +1 @@ +toggleVibrateMode

toggleVibrateMode(enabled=None,ringer=None)

Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else set Notification setting

    enabled (Boolean)  (optional)

    ringer (Boolean)  (optional)

returns: (Boolean) True if vibrate mode is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/toggleWifiState.html b/source/qsl4a/toggleWifiState.html new file mode 100644 index 0000000..d446e40 --- /dev/null +++ b/source/qsl4a/toggleWifiState.html @@ -0,0 +1 @@ +toggleWifiState

toggleWifiState(enabled=None)

Toggle Wifi on and off.

    enabled (Boolean)  (optional)

returns: (Boolean) True if Wifi is enabled.

<back> \ No newline at end of file diff --git a/source/qsl4a/ttsIsSpeaking.html b/source/qsl4a/ttsIsSpeaking.html new file mode 100644 index 0000000..bdf3aa2 --- /dev/null +++ b/source/qsl4a/ttsIsSpeaking.html @@ -0,0 +1 @@ +ttsIsSpeaking

ttsIsSpeaking()

Returns True if speech is currently in progress.

<back> \ No newline at end of file diff --git a/source/qsl4a/ttsSpeak.html b/source/qsl4a/ttsSpeak.html new file mode 100644 index 0000000..1d99c0b --- /dev/null +++ b/source/qsl4a/ttsSpeak.html @@ -0,0 +1 @@ +ttsSpeak

ttsSpeak(message,pitch=1,pitchRate=1)

Speaks the provided message via TTS.

    message (String)

    pitch (Float Optional) speech pitch

    pitchRate (Float Optional) speech pitch rate

<back> \ No newline at end of file diff --git a/source/qsl4a/ttsStop.html b/source/qsl4a/ttsStop.html new file mode 100644 index 0000000..f88f7b5 --- /dev/null +++ b/source/qsl4a/ttsStop.html @@ -0,0 +1 @@ +ttsStop

ttsStop()

Stop the speaking TTS .

<back> \ No newline at end of file diff --git a/source/qsl4a/usbserialConnect.html b/source/qsl4a/usbserialConnect.html new file mode 100644 index 0000000..0304c23 --- /dev/null +++ b/source/qsl4a/usbserialConnect.html @@ -0,0 +1 @@ +usbserialConnect

usbserialConnect(hash = "", options ="")

Connect to a device with USB-Host. request the connection and exit.

<back> \ No newline at end of file diff --git a/source/qsl4a/usbserialDisconnect.html b/source/qsl4a/usbserialDisconnect.html new file mode 100644 index 0000000..0b2060f --- /dev/null +++ b/source/qsl4a/usbserialDisconnect.html @@ -0,0 +1 @@ +usbserialDisconnect

usbserialDisconnect(connID = "")

Disconnect all USB-device.

<back> \ No newline at end of file diff --git a/source/qsl4a/usbserialGetDeviceList.html b/source/qsl4a/usbserialGetDeviceList.html new file mode 100644 index 0000000..2980cb0 --- /dev/null +++ b/source/qsl4a/usbserialGetDeviceList.html @@ -0,0 +1 @@ +usbserialGetDeviceList

usbserialGetDeviceList()

Returns USB devices reported by USB Host API.,

returns Map of id and string information ',' separated

<back> \ No newline at end of file diff --git a/source/qsl4a/usbserialRead.html b/source/qsl4a/usbserialRead.html new file mode 100644 index 0000000..f3936ae --- /dev/null +++ b/source/qsl4a/usbserialRead.html @@ -0,0 +1 @@ +usbserialRead

usbserialRead(connID = "", bufferSize = 4096)

Read up to bufferSize ASCII characters.

<back> \ No newline at end of file diff --git a/source/qsl4a/usbserialReadReady.html b/source/qsl4a/usbserialReadReady.html new file mode 100644 index 0000000..70e7a5d --- /dev/null +++ b/source/qsl4a/usbserialReadReady.html @@ -0,0 +1 @@ +usbserialReadReady

usbserialReadReady(connID = "")

Returns True if the next read is guaranteed not to block.

<back> \ No newline at end of file diff --git a/source/qsl4a/usbserialWrite.html b/source/qsl4a/usbserialWrite.html new file mode 100644 index 0000000..332be7d --- /dev/null +++ b/source/qsl4a/usbserialWrite.html @@ -0,0 +1 @@ +usbserialWrite

usbserialWrite(ascii, connID = "")

Sends ASCII characters over the currently open USB Serial connection.

<back> \ No newline at end of file diff --git a/source/qsl4a/vibrate.html b/source/qsl4a/vibrate.html new file mode 100644 index 0000000..b931760 --- /dev/null +++ b/source/qsl4a/vibrate.html @@ -0,0 +1 @@ +vibrate

vibrate(duration=300)

Vibrates the phone or a specified duration in milliseconds.

    duration (Integer) duration in milliseconds (default=300)

<back> \ No newline at end of file diff --git a/source/qsl4a/videoPlay.html b/source/qsl4a/videoPlay.html new file mode 100644 index 0000000..d8bb5e8 --- /dev/null +++ b/source/qsl4a/videoPlay.html @@ -0,0 +1 @@ +videoPlay

videoPlay(path, wait=True)

Play a video file

    path (String) video file path

    wait (Boolean Optional) wait for the end of video file viewing

<back> \ No newline at end of file diff --git a/source/qsl4a/view.html b/source/qsl4a/view.html new file mode 100644 index 0000000..6c9cea1 --- /dev/null +++ b/source/qsl4a/view.html @@ -0,0 +1 @@ +view

view(uri,type=None,extras=None,wait=True)

Start activity with view action by URI (i.e. browser, contacts, etc.).

    uri (String)

    type (String) MIME type/subtype of the URI (optional)

    extras (JSONObject) a Map of extras to add to the Intent (optional)

    wait (Boolean Optional) wait for the view operation end

<back> \ No newline at end of file diff --git a/source/qsl4a/viewContacts.html b/source/qsl4a/viewContacts.html new file mode 100644 index 0000000..988d589 --- /dev/null +++ b/source/qsl4a/viewContacts.html @@ -0,0 +1 @@ +viewContacts

viewContacts(wait=True)

Opens the list of contacts.

wait (Boolean Optional) wait for the contacts operation end

<back> \ No newline at end of file diff --git a/source/qsl4a/viewHtml.html b/source/qsl4a/viewHtml.html new file mode 100644 index 0000000..dc38af6 --- /dev/null +++ b/source/qsl4a/viewHtml.html @@ -0,0 +1 @@ +viewHtml

viewHtml(path,title=None,wait=True)

Opens the browser to display a local HTML/text/audio/video File or http(s) Website .

    path (String) the path to the HTML/text/audio/video File or http(s) Website

    title (String Optional) title bar text, if omitted, use app name as default title, if title is empty String, title bar will hidden to show a full screen webpage.

    wait (Boolean Optional) wait for the file operation end

<back> \ No newline at end of file diff --git a/source/qsl4a/viewMap.html b/source/qsl4a/viewMap.html new file mode 100644 index 0000000..31b12a2 --- /dev/null +++ b/source/qsl4a/viewMap.html @@ -0,0 +1 @@ +viewMap

viewMap(query,wait=True)

Opens a map search for query .

    query (String) :

      └  address : "pizza, 123 My Street" ;

      └  latitude,longitude : "30,40" for (N30°,E40°) .

    wait (Boolean Optional) wait for the map operation end

<back> \ No newline at end of file diff --git a/source/qsl4a/waitForEvent.html b/source/qsl4a/waitForEvent.html new file mode 100644 index 0000000..5974624 --- /dev/null +++ b/source/qsl4a/waitForEvent.html @@ -0,0 +1 @@ +waitForEvent

waitForEvent(eventName,timeout=None)

Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer.

    eventName (String)

    timeout (Integer) the maximum time to wait (optional)

returns: (Event) Map of event properties.

Deprecated in r4. Use eventWaitFor instead.

<back> \ No newline at end of file diff --git a/source/qsl4a/wakeLockAcquireBright.html b/source/qsl4a/wakeLockAcquireBright.html new file mode 100644 index 0000000..e566ef0 --- /dev/null +++ b/source/qsl4a/wakeLockAcquireBright.html @@ -0,0 +1 @@ +wakeLockAcquireBright

wakeLockAcquireBright()

Acquires a bright wake lock (CPU on, screen bright).

<back> \ No newline at end of file diff --git a/source/qsl4a/wakeLockAcquireDim.html b/source/qsl4a/wakeLockAcquireDim.html new file mode 100644 index 0000000..0530ca0 --- /dev/null +++ b/source/qsl4a/wakeLockAcquireDim.html @@ -0,0 +1 @@ +wakeLockAcquireDim

wakeLockAcquireDim()

Acquires a dim wake lock (CPU on, screen dim).

<back> \ No newline at end of file diff --git a/source/qsl4a/wakeLockAcquireFull.html b/source/qsl4a/wakeLockAcquireFull.html new file mode 100644 index 0000000..1792df4 --- /dev/null +++ b/source/qsl4a/wakeLockAcquireFull.html @@ -0,0 +1 @@ +wakeLockAcquireFull

wakeLockAcquireFull()

Acquires a full wake lock (CPU on, screen bright, keyboard bright).

<back> \ No newline at end of file diff --git a/source/qsl4a/wakeLockAcquirePartial.html b/source/qsl4a/wakeLockAcquirePartial.html new file mode 100644 index 0000000..2762586 --- /dev/null +++ b/source/qsl4a/wakeLockAcquirePartial.html @@ -0,0 +1 @@ +wakeLockAcquirePartial

wakeLockAcquirePartial()

Acquires a partial wake lock (CPU on).

<back> \ No newline at end of file diff --git a/source/qsl4a/wakeLockRelease.html b/source/qsl4a/wakeLockRelease.html new file mode 100644 index 0000000..2c66e63 --- /dev/null +++ b/source/qsl4a/wakeLockRelease.html @@ -0,0 +1 @@ +wakeLockRelease

wakeLockRelease()

Releases the wake lock.

<back> \ No newline at end of file diff --git a/source/qsl4a/webcamAdjustQuality.html b/source/qsl4a/webcamAdjustQuality.html new file mode 100644 index 0000000..82e69f0 --- /dev/null +++ b/source/qsl4a/webcamAdjustQuality.html @@ -0,0 +1 @@ +webcamAdjustQuality

webcamAdjustQuality(resolutionLevel=0,jpegQuality=20)

Adjusts the quality of the webcam stream while it is running.

    resolutionLevel (Integer) increasing this number provides higher resolution (default=0)

    jpegQuality (Integer) a number from 0-100 (default=20)

<back> \ No newline at end of file diff --git a/source/qsl4a/webcamStart.html b/source/qsl4a/webcamStart.html new file mode 100644 index 0000000..fae0e13 --- /dev/null +++ b/source/qsl4a/webcamStart.html @@ -0,0 +1 @@ +webcamStart

webcamStart(resolutionLevel=0,jpegQuality=20,port=0)

Starts an MJPEG stream and returns a Tuple of address and port for the stream.

    resolutionLevel (Integer) increasing this number provides higher resolution (default=0)

    jpegQuality (Integer) a number from 0-100 (default=20)

    port (Integer) If port is specified, the webcam service will bind to port, otherwise it will pick any available port. (default=0)

<back> \ No newline at end of file diff --git a/source/qsl4a/webcamStop.html b/source/qsl4a/webcamStop.html new file mode 100644 index 0000000..f386e9c --- /dev/null +++ b/source/qsl4a/webcamStop.html @@ -0,0 +1 @@ +webcamStop

webcamStop()

Stops the webcam stream.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiDisconnect.html b/source/qsl4a/wifiDisconnect.html new file mode 100644 index 0000000..b38e7b4 --- /dev/null +++ b/source/qsl4a/wifiDisconnect.html @@ -0,0 +1 @@ +wifiDisconnect

wifiDisconnect()

Disconnects from the currently active access point.

returns: (Boolean) True if the operation succeeded.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiGetApState.html b/source/qsl4a/wifiGetApState.html new file mode 100644 index 0000000..69dcf50 --- /dev/null +++ b/source/qsl4a/wifiGetApState.html @@ -0,0 +1 @@ +wifiGetApState

wifiGetApState()

    return "disabling","disabled","enabling","enabled","failed"

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiGetConnectionInfo.html b/source/qsl4a/wifiGetConnectionInfo.html new file mode 100644 index 0000000..cdf5ece --- /dev/null +++ b/source/qsl4a/wifiGetConnectionInfo.html @@ -0,0 +1 @@ +wifiGetConnectionInfo

wifiGetConnectionInfo(ipConvertToString=True)

Returns information about the currently active access point.

    If ipConvertToString is True, IP address is like "10.0.3.193",

    If ipConvertToString is False, IP address is like 167773121.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiGetScanResults.html b/source/qsl4a/wifiGetScanResults.html new file mode 100644 index 0000000..52d5c29 --- /dev/null +++ b/source/qsl4a/wifiGetScanResults.html @@ -0,0 +1 @@ +wifiGetScanResults

wifiGetScanResults()

Returns the list of access points found during the most recent Wifi scan.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiLockAcquireFull.html b/source/qsl4a/wifiLockAcquireFull.html new file mode 100644 index 0000000..acc4f07 --- /dev/null +++ b/source/qsl4a/wifiLockAcquireFull.html @@ -0,0 +1 @@ +wifiLockAcquireFull

wifiLockAcquireFull()

Acquires a full Wifi lock.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiLockAcquireScanOnly.html b/source/qsl4a/wifiLockAcquireScanOnly.html new file mode 100644 index 0000000..1a78f6a --- /dev/null +++ b/source/qsl4a/wifiLockAcquireScanOnly.html @@ -0,0 +1 @@ +wifiLockAcquireScanOnly

wifiLockAcquireScanOnly()

Acquires a scan only Wifi lock.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiLockRelease.html b/source/qsl4a/wifiLockRelease.html new file mode 100644 index 0000000..0bbedfb --- /dev/null +++ b/source/qsl4a/wifiLockRelease.html @@ -0,0 +1 @@ +wifiLockRelease

wifiLockRelease()

Releases a previously acquired Wifi lock.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiReassociate.html b/source/qsl4a/wifiReassociate.html new file mode 100644 index 0000000..63dec2c --- /dev/null +++ b/source/qsl4a/wifiReassociate.html @@ -0,0 +1 @@ +wifiReassociate

wifiReassociate()

Reassociates with the currently active access point.

returns: (Boolean) True if the operation succeeded.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiReconnect.html b/source/qsl4a/wifiReconnect.html new file mode 100644 index 0000000..609da55 --- /dev/null +++ b/source/qsl4a/wifiReconnect.html @@ -0,0 +1 @@ +wifiReconnect

wifiReconnect()

Reconnects to the currently active access point.

returns: (Boolean) True if the operation succeeded.

<back> \ No newline at end of file diff --git a/source/qsl4a/wifiStartScan.html b/source/qsl4a/wifiStartScan.html new file mode 100644 index 0000000..ef80b5e --- /dev/null +++ b/source/qsl4a/wifiStartScan.html @@ -0,0 +1 @@ +wifiStartScan

wifiStartScan()

Starts a scan for Wifi access points.

returns: (Boolean) True if the scan was initiated successfully.

<back> \ No newline at end of file