Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ralphcrutzen

Pages: 1
1
TinyDuino Processors & TinyShields / Re: Smartwatch Kit Issue
« on: April 05, 2015, 03:42:54 PM »
I don't know if this is any help, but this is the exception thrown by the app:

Code: [Select]
04-05 21:37:57.383  10327-10327/com.tinycircuits.tinycircuitsble E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.tinycircuits.tinycircuitsble, PID: 10327
    java.lang.RuntimeException: Unable to instantiate service com.tinycircuits.tinycircuitsble.bluetoothservice.BluetoothLeService: java.lang.NullPointerException
            at android.app.ActivityThread.handleCreateService(ActivityThread.java:2574)
            at android.app.ActivityThread.access$1800(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5139)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.NullPointerException
            at android.content.ContextWrapper.getPackageName(ContextWrapper.java:135)
            at android.content.ComponentName.<init>(ComponentName.java:77)
            at android.content.Intent.<init>(Intent.java:3875)
            at com.tinycircuits.tinycircuitsble.bluetoothservice.BluetoothLeService.<init>(BluetoothLeService.java:45)
            at java.lang.Class.newInstanceImpl(Native Method)
            at java.lang.Class.newInstance(Class.java:1208)
            at android.app.ActivityThread.handleCreateService(ActivityThread.java:2571)
            at android.app.ActivityThread.access$1800(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5139)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
            at dalvik.system.NativeStart.main(Native Method)

I have a Nexus 5 with CyanogenMod 11.0.

2
TinyDuino Processors & TinyShields / Re: TinyScreen Smartwatch
« on: March 24, 2015, 03:52:16 PM »
I have the same problem with the BLEWatch app crashing. Sending messagas to the TinyDuino with the nRF UART v2.0 app works fine. I have a Nexus 5 with Cyanogenmod 11.

Did someone already manage to fix this?

I looked at the code of the Android App myself, but the only thing I found out is that you have to use
Code: [Select]
BluetoothLeScanner.startScan(List, ScanSettings, ScanCallback) instead of
Code: [Select]
BluetoothAdapter.startLeScan(LeScanCallback)But after that I'm stuck because I'm just not experienced enough to understand how to use those three arguments in the startScan() method...

Pages: 1
SMF spam blocked by CleanTalk