Comments (2)
Hi, I meet the same problem as you. Did you get the result in the end?
from qpython.
Hi
The problem is in absence of activity
have a reference to activity
if (address == null) {
Intent deviceChooserIntent = new Intent();
deviceChooserIntent.setComponent(Constants.BLUETOOTH_DEVICE_LIST_COMPONENT_NAME);
Intent result = mAndroidFacade.startActivityForResult(deviceChooserIntent);
if (result != null && result.hasExtra(Constants.EXTRA_DEVICE_ADDRESS)) {
address = result.getStringExtra(Constants.EXTRA_DEVICE_ADDRESS);
} else {
return null;
}
}
but there is no code of this activity in src
Probably the problem may be solved by getting the list of paired BT devices and connecting directly by MAC address but I didn't find the way how to get the list of connected devices with their names from the script.
from qpython.
Related Issues (20)
- 正在循环的脚本关闭终端或关闭APP都不能结束运行
- Turtle spiral drawing HOT 1
- How do i build pygame from source for qpython3 ?
- OpenCV for QPython3
- Getting errors while running a telegram Bot script. The code works perfectly fine on Pycharm, but not in qpython.
- how to turn on the phone flashlight with qpython ? HOT 2
- how to install package offline? HOT 1
- Error with projects path
- Can't run django on Qpython
- F-Droid inclusion
- Installation of matplotlib-aipy3 fails HOT 1
- Problem with kivy, old python3 version. HOT 5
- Jackpal Terminal Emulator
- qpython3 problem in installing matlpotlib-aipy3 HOT 4
- Uninstall pip to replace with new version HOT 1
- matplotlib-aipy3 is not compatible with python v3.11
- Pygame无法安装
- No code will execute! HOT 2
- To install OpenCV in Qpython
- qpypi.qpython.org 无法打开 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qpython.