How will i Split a String that received from a ble device for if else checking and display a value on Textview
问题 In my Android app I receive data from my ble device as something like 10100201201511 ( it includes date,time and other attributes). I hope I received it as a string, I want to check that value and display it on textview. My Requirement is If (position1=0){ //display yes in Text view }else { // display No in Textview } But I always get errors like Array type expected; found 'Java.lang.String' My current code is: @Override public void onCharacteristicRead(BluetoothGatt gatt,