Comments (3)
Hi, @Mritunjaysingh. Can you please try putting the lines below before your call to checkAvailability(), and let me know the log lines you see in LogCat?
Thanks,
David
Log.d(TAG, "appContext is "+this.getApplicationContext());
Log.d(TAG, "packageManager is "+this.getApplicationContext().getPackageManager());
Log.d(TAG, "hasBluetoothLE is "+this.getApplicationContext().getPackageManager().hasSystemFeature(android.content.pm.PackageManager.FEATURE_BLUETOOTH_LE));
Log.d(TAG, "bluetoothManager is "+this.getApplicationContext().getSystemService(Context.BLUETOOTH_SERVICE) );
Log.d(TAG, "bluetoothAdapter is "+((android.bluetooth.BluetoothManager) this.getApplicationContext().getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter() );
Log.d(TAG, "enabled is "+((android.bluetooth.BluetoothManager) this.getApplicationContext().getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter().isEnabled() );
from android-ibeacon-service.
Hi, @Mritunjaysingh. I cannot reproduce this issue, so I am closing this for now. If you are still seeing this, and can put the log lines in your app as I have proposed above, please reopen the issue with the requested info.
from android-ibeacon-service.
I put those lines ahead of checkAvailability() and I am getting an NPE. Here is the output:
05-19 09:22:29.872 29830-29830/com.example.helloworld.debug D/MainActivity﹕ appContext is com.example.helloworld.HelloWorldApplication@1221a945
05-19 09:22:29.872 29830-29830/com.example.helloworld.debug D/MainActivity﹕ packageManager is android.app.ApplicationPackageManager@5369b49
05-19 09:22:29.873 29830-29830/com.example.helloworld.debug D/MainActivity﹕ hasBluetoothLE is true
05-19 09:22:29.877 29830-29830/com.example.helloworld.debug D/MainActivity﹕ bluetoothManager is android.bluetooth.BluetoothManager@3f068c4e
05-19 09:22:29.877 29830-29830/com.example.helloworld.debug D/MainActivity﹕ bluetoothAdapter is android.bluetooth.BluetoothAdapter@26ddb16f
05-19 09:22:29.877 29830-29830/com.example.helloworld.debug D/MainActivity﹕ enabled is false
from android-ibeacon-service.
Related Issues (20)
- Is this library compatible with Google Glass XE16.x? HOT 6
- RSSI is negative with USB Radius beacon HOT 2
- Bluetooth crash recovery infinite loop on Galaxy S3 HOT 5
- Unable to start service Intent { cmp=myPackageName/com.radiusnetworks.ibeacon.service.IBeaconService } U=0: not found HOT 2
- Android Studio TroubleShooting
- NoclassDefFoundError when implements BootstrapNotifier for the Background mode. HOT 1
- [Feature] Add advertising support HOT 3
- Sequent 'didExitRegion()' and 'didEnterRegion()' event occurrence HOT 10
- Inconsistent monitoring behavior HOT 1
- Not able to integrate the beacon library with existing project HOT 1
- Not able to integrate the beacon library with existing project HOT 2
- Mulitple Beacon monitoring problems HOT 1
- Cordova Plugin tweak HOT 2
- Note From CEO Page is Down HOT 2
- Does Android BLE scanner ask scan response by default?
- is it not possible to bind a service on BeaconManager.bind(myService) ??? HOT 2
- How to calculate distance/accuracy when we need rapid updates from the beacons HOT 1
- how to import the beacon library to cordova?
- Bluetooth share not working
- Provide fields for the store number, store name, zip code and addresses in order data HOT 3
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 android-ibeacon-service.