Android Question BLE Module Serial Help

woodpecker

Member
Licensed User
Longtime User
Hi,

I have been using roving networks bluetooth modules and the serial library to send serial data over bluetooth using AsyncStreams, I've just got a SH-M08 BLE module but I can't connect to it like the older modules. Do I need to use the BLE2 library instead?

I tried to load the BLE2 example here:-
https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/

But I get this error:-
Generating R file. Error
invalid resource directory name: C:\BLE_Example\BLE\Objects\bin\extra\res1\res/values-b+sr+Latn

The SDK is up to data afaik, please help.
 

woodpecker

Member
Licensed User
Longtime User
Hi Erel,

I run the SDK manager from within B4A, everything recommended is already installed.

I did notice in file paths that the android.jar looks a bit old, is this the problem, where do I download a newer version?
I have:-

C:\android\platforms\android-19\android.jar
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Did you setup a NEW SDK in a new Folder (using the B4A SDK Manager) or did you reused the old SDK Folder?

C:\android\platforms\android-19\android.jar
looks like you are reusing an old SDK folder.

You should install the SDK in a new folder. Follow the Instructions here: https://www.b4x.com/b4a.html#installation
Make sure to use the newly installed path (and android.jar) inside the Ide under Tools->Configure Paths
 
Upvote 0

woodpecker

Member
Licensed User
Longtime User
I did setup a new SDK folder and have just tried again with a new folder called android-sdk-2018, unzipped the command line tools then installed all the recommended bits using SDK manager.

There is no platforms folder in the new sdk directory, is there a step I'm missing somewhere?

I also get this error when running SDKmanager but read somewhere to just ignore this?

upload_2018-4-27_8-54-40.png
 
Upvote 0
Top