Hello all,
I am new to android programming and B4A, i tried to run the example project here
https://www.b4x.com/android/forum/threads/ble-hm-10-module-broadcasting-a-single-byte.65785/#content
(because i'm developing an app that will connect to an HM-11 module -The UUID is the same-) and it didn't work, a message said that the app was corrupted when trying to install.
After many searches and looking at other Apps where BLE was working (including an old one from a coworker) i found out that i had to change the manifest file in order for the BLE2 Library to work.
I first changed the recommended sdk from "14" to "19" (the one he used), then i could install the app. However, it never hit the DeviceFound Sub.
I found out that as i'm using B4A V8.00 (coworker used 5.2) i had to remove this line from the manifest
and then the app was able to find devices.
I wanted then to suppress the minimum recommended sdk warning and changed it to "26", but now the app can't find devices anymore. Crazy..
I don't really know what to do other than Leave things as they are because it is working, but it's not my style. i'd like to understand what's happening and why..
Other data:
B4A B8.00
BLE2 Library Version 1.36, the one i found here https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/#content
Reference on the manifest thing here https://www.b4x.com/android/forum/threads/version-safe-themes.87694/#content
Device i'm trying the app on: Samsung J-510FN with Android 7.1.1
Thanks
I am new to android programming and B4A, i tried to run the example project here
https://www.b4x.com/android/forum/threads/ble-hm-10-module-broadcasting-a-single-byte.65785/#content
(because i'm developing an app that will connect to an HM-11 module -The UUID is the same-) and it didn't work, a message said that the app was corrupted when trying to install.
After many searches and looking at other Apps where BLE was working (including an old one from a coworker) i found out that i had to change the manifest file in order for the BLE2 Library to work.
I first changed the recommended sdk from "14" to "19" (the one he used), then i could install the app. However, it never hit the DeviceFound Sub.
I found out that as i'm using B4A V8.00 (coworker used 5.2) i had to remove this line from the manifest
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
I wanted then to suppress the minimum recommended sdk warning and changed it to "26", but now the app can't find devices anymore. Crazy..
I don't really know what to do other than Leave things as they are because it is working, but it's not my style. i'd like to understand what's happening and why..
Other data:
B4A B8.00
BLE2 Library Version 1.36, the one i found here https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/#content
Reference on the manifest thing here https://www.b4x.com/android/forum/threads/version-safe-themes.87694/#content
Device i'm trying the app on: Samsung J-510FN with Android 7.1.1
Thanks