time: 1601897458516
msg: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.os.IInterface.asBinder()' on a null object reference
stacktrace: java.lang.RuntimeException: Unable to start service net.alea.beaconsimulator.bluetooth.BeaconSimulatorService@dab232b with Intent { act=net.alea.beaconsimulator.service.ACTION_START cmp=net.alea.beaconsimulator/.bluetooth.BeaconSimulatorService (has extras) }: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.os.IInterface.asBinder()' on a null object reference
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4105)
at android.app.ActivityThread.access$1800(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:915)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.os.IInterface.asBinder()' on a null object reference
at android.os.Parcel.createException(Parcel.java:2077)
at android.os.Parcel.readException(Parcel.java:2039)
at android.os.Parcel.readException(Parcel.java:1987)
at android.bluetooth.IBluetoothGatt$Stub$Proxy.startAdvertisingSet(IBluetoothGatt.java:1526)
at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertisingSet(BluetoothLeAdvertiser.java:434)
at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertisingSet(BluetoothLeAdvertiser.java:306)
at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertising(BluetoothLeAdvertiser.java:158)
at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertising(BluetoothLeAdvertiser.java:93)
at net.alea.beaconsimulator.bluetooth.BeaconSimulatorService.a(BeaconSimulatorService.java:243)
at net.alea.beaconsimulator.bluetooth.BeaconSimulatorService.onStartCommand(BeaconSimulatorService.java:135)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4087)
... 8 more
Hi!
When I try to minify the URL in case of EddystoneURL, I have the "java.util.MissingResourceException The Bitly API key is missing". Could you be so kind to tell me what should I do in this case?
This app provides a great way to detect presence around a house, e.g. using room assistant project, but currently does not persist when Bluetooth restarts.
A tasker plugin to trigger broadcasting of beacon would allow fine grained control of automating the beacon broadcast.
I would like to be able to activate or deactivate beacons that I have added in the Beacon Simulator via an external app like Tasker. This can also be done with Intents. Unfortunately, I don't know which intent leads to the activation / deactivation of iBeacons in the Beacon Simulator.
I try to implement this beacon code to my course project, but when I made new beacon in that project, the beacon can't detected by the scanner. in the logcat I got this "Unable to start service Intent { act=net.alea.beaconsimulator.service.ACTION_START"
Is it possible to make an app which uses android BLE and can broadcasts at least 10 kilobytes of data? Will it be too heavy operation if broadcasting will be on during several hours?
Beacon Simulator currently supports a set of known beacon formats. There are a number of companies creating there own beacons with proprietary formats. It'd be really useful to properly scan them and transmit them as well.
altbeacon provides support for custom layouts via the 'setBeaconLayout' call: