Posts
Showing posts from September, 2020
Bluetooth chatting app
- Get link
- X
- Other Apps
import androidhelper import time android = androidhelper.Android() android.toggleBluetoothState(True) android.dialogCreateAlert('Be a server?') android.dialogSetPositiveButtonText('Yes') android.dialogSetNegativeButtonText('No') android.dialogShow() result = android.dialogGetResponse() is_server = result.result['which'] == 'positive' if is_server: android.bluetoothMakeDiscoverable() android.bluetoothAccept() else: android.bluetoothConnect() if is_server: result = android.getInput('Chat', 'Enter a message').result if result is None: android.exit() android.bluetoothWrite(result + '\n') while True: message = droid.bluetoothReadLine().result android.dialogCreateAlert('Chat Received', message) android.dialogSetPositiveButtonText('Ok') android.dialogShow() android.dialogGetResponse() result = android.getInput('Chat', 'Enter a message').result...
Virtual Assistant
- Get link
- X
- Other Apps
import androidhelper import datetime time=str(datetime.datetime.now()) android=androidhelper.Android() android.ttsSpeak("I am Ramu Kaka Tell me what to do") android.ttsSpeak("Hope you are fine Sir") task=android.dialogGetInput("Hello I am Your Assistant","Tell me What to do") if "time" in task: android.ttsSpeak("Sir The time is") android.ttsSpeak(time) if "on" in task: android.toggleBluetoothState(True) if "off" in task: android.toggleBluetoothState(False) if "wish" in task: android.ttsSpeak("Mr.Tirthesh I am glad to have the master like you You are a part time coder and a student it is a great thing") if "master" in task: android.ttsSpeak("My master is Tirthesh Jain") if "repeat" in task: while True: android.ttsSpeak("Darshko you are late subscribe the channel now") android.ttsSpeak(...