onlyinamerica / blemeshchat Goto Github PK
View Code? Open in Web Editor NEWAndroid client for iOS to Android chat application over Bluetooth LE, using Android L APIs
License: Mozilla Public License 2.0
Android client for iOS to Android chat application over Bluetooth LE, using Android L APIs
License: Mozilla Public License 2.0
I get this error when running on Nexus 5 with Lollipop (lpx13d image).
It looks like Lollipop has a bug in mBTAdapter.getBluetoothLeAdvertiser() https://code.google.com/p/android/issues/detail?id=77827
Proper bug: https://code.google.com/p/android-developer-preview/issues/detail?id=1570
Do you have your code running on Nexus 7 by any chance?
Here is the error log:
FATAL EXCEPTION: main
Process: pro.dbro.ble, PID: 3094
java.lang.NullPointerException: Attempt to invoke virtual method 'void pro.dbro.airshare.app.ui.AirShareFragment.setShouldServiceContinueInBackground(boolean)' on a null object referenceat pro.dbro.ble.ui.activities.MainActivity$1.onItemSelected(MainActivity.java:125)
Code:
mStatusSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
switch (position) {
case 0: // Always online
mClient.makeAvailable();
mAirShareFragment.setShouldServiceContinueInBackground(true); // <---- Null Here
break;
case 1: // Online when using app
mClient.makeAvailable();
mAirShareFragment.setShouldServiceContinueInBackground(false);
break;
case 2: // Offline
mClient.makeUnavailable();
// mPeerAdapter.clearPeers();
break;
}
PrefsManager.setStatus(MainActivity.this, position);
}
I am curious about this restriction, is it because Bluetooth should enable discoverable mode each several minutes like here: https://code.google.com/p/android/issues/detail?id=6348.
Can this app run on android 8.0 or later. As I know BLE cannot connect between two android phones since Android API 23.
Hello,
would you consider adding support for work over standard Bluetooth (non-LE) piconet / scatternet? You don't have to pair BT devices if you use listenUsingInsecureRfcommWithServiceRecord / createInsecureRfcommSocketToServiceRecord and compatibility with older smartphones would be much better (any Android >= 4.0.3 should work). Somebody already created Bluetooth mesh network framework which can be used as lower network layer for any app: https://github.com/Rasum/beddernet
i could not compile this project that I have checked out. Im not sure why.
I would like to evaluate ble mesh chat and installed it in 2 android phones. It seems that it works at android 5.1 but stuck in welcome page at android 6.0. So what's the difference between android 5.1 and 6.0? How can I fix this issue?
i have successfully run the app on some devices but i'm stuck in the welcome screen. it does not work as said. when i press done after entering my name, just the peer count gets increased. what might be the problem?
Could you add your app into F-Droid?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.