This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2650STK Android Source Problem

Other Parts Discussed in Thread: CC2650STK, CC2650, CC2640, BLE-STACK

Hey,

I have some problem with the Android app source code provided here: 

When I imported the shared source code into Android studio I can start the application and the Tag is found. But when I press the Connect the GUI hangs as you can see on the images. I have tried with 2 different devices ( Note 3 and A3 2016 ) but the problem still exists. The Sensortag has FW version : 1.32 The latest that I can download with the app.  Rev. 1.3.2

I saw that there are many different applications exists on the Play Store. and the shared example is non of them. Any idea why doesn't work? Do you want to share more example code form CC2650STK related to Android?

Happy new year by the way! :)

  • The Android SensorTag app used with the CCS built SensorTag sources crashes, see dump below.

    Is there an updated version of BLE-STACK-2: BLE-STACK V2 (Support for CC2640/CC2650) SensorTag code to prevent?

    -----------

    E/AndroidRuntime(10425): Process: com.ti.ble.sensortag, PID: 10425

    E/AndroidRuntime(10425): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.ti.ble.common.ACTION_DATA_READ flg=0x10 (has extras) } in com.ti.ble.sensortag.DeviceActivity$1@d1c81b1

    E/AndroidRuntime(10425): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:876)

    E/AndroidRuntime(10425): at android.os.Handler.handleCallback(Handler.java:739)

    E/AndroidRuntime(10425): at android.os.Handler.dispatchMessage(Handler.java:95)

    E/AndroidRuntime(10425): at android.os.Looper.loop(Looper.java:135)

    E/AndroidRuntime(10425): at android.app.ActivityThread.main(ActivityThread.java:5254)

    E/AndroidRuntime(10425): at java.lang.reflect.Method.invoke(Native Method)

    E/AndroidRuntime(10425): at java.lang.reflect.Method.invoke(Method.java:372)

    E/AndroidRuntime(10425): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    E/AndroidRuntime(10425): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    E/AndroidRuntime(10425): Caused by: java.lang.NullPointerException: Attempt to get length of null array

    E/AndroidRuntime(10425): at java.lang.String.<init>(String.java:206)

    E/AndroidRuntime(10425): at com.ti.ble.btsig.profiles.DeviceInformationServiceProfile.didReadValueForCharacteristic(DeviceInformationServiceProfile.java:200)

    E/AndroidRuntime(10425): at com.ti.ble.sensortag.DeviceActivity$1.onReceive(DeviceActivity.java:672)

    E/AndroidRuntime(10425): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:866)

    E/AndroidRuntime(10425): ... 8 more

    W/ActivityManager( 1965):   Force finishing activity 1 com.ti.ble.sensortag/.DeviceActivity

  • Hello Bill,

    On which make/model & OS version is this crash observed? Also, is this apk ver 2.20?
    I'll send these details to our apk team.

    EDIT: Also, if known, what is the FW version of the CC2650STK SensorTag?

    Best wishes

  • I am also having the same problem.  The V2.20 Android application, crashes just after tapping the "Connect" button when the CC2650 sensor tag is running code built with CCS Version: 6.1.0.00104 (source code from BLE stack Version 2.0, dated Feb 20, 2015).  However, the Android application runs fine after reloading the original sensor tag hex file via the dev-pack debugger..  My Android tablet is the Google Nexus 7 2013, running Android 4.4.4

    I am also having trouble with the Android source code.  The project build with out errors and loads onto the tablet without any problems.  However, it will not detect the sensor tag. If I uninstall the just built version and replace it with the download from Google Play it will once again detect the tag but crash after tapping the "connect" button.

  • Hello,

    I'm having the same problem. Can you tell me how did you solve it? That would be very helpful. Thanks!
  • Solution: stackoverflow.com/.../sensortag20-error-scanning-services

    I hope it helps

    I can't believe it...

    Can you explain this issue?