# Blepdroid Bluetooth BLE and FragmentManager Issue

**URL:** <https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531>\
**Category:** Processing for Android\
**Created:** [August 10, 2018, 1:06pm UTC](https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531 "2018-08-10T13:06:46Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![rajduino](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rajduino](https://discourse.processing.org/u/rajduino)\
**Post date:** [October 22, 2018, 7:05pm UTC](https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531/21 "2018-10-22T19:05:25Z")

</div>

Hello, I also recently came across this very problem, I am trying to make an android app to communicate with a Bluetooth 4 BLE module with Arduino. After facing this problem with Blepdroid, I wanted to write the program from scratch from the codes of Java on the website of android developers. But couldn’t get started with even the basic lines of Android Java code. I read other codes on Processing Android to get started but I couldn’t get them to work, even after importing the proper files!!  
For example I got errors like the IDE couldn’t resolve the datatype BluetoothAdapter and BluetoothManager. I am also less than a beginner in Android Java coding. So my question is processing android can execute original Android Java codes, right? If so can anybody point me to the right resource to learn to use the original JAVA android code to run on Processing!  
ThankYou

---

<div class="post-metadata">

**Author:** ![PeterO](https://avatars.discourse-cdn.com/v4/letter/p/d78d45/32.png) [@PeterO](https://discourse.processing.org/u/PeterO)\
**Post date:** [October 22, 2018, 8:01pm UTC](https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531/22 "2018-10-22T20:01:32Z")

</div>

Hi Rajduino,

My application was also for use with Arduino module BLE interfaces. The problem with the Blepdroid library seems to be due to the Processing Android Mode version change from version 3 to version 4. Before the version change my software ran in Processing with no problem.

I also tried to get other BLE libraries to work with the new version of Processing but no success. That is almost certainly a reflection of my lack of knowledge of Java. I left a comment on Joshua’s Github page under the issues section and emailed him. He kindly offered to check the Blepdroid issue but I imagine its a tricky problem.

I’ve rewritten my software using another programming language ‘App Inventor’ which has a very capable BLE interface but would like to have my old software running in Processing as it did before because of its graphics capability.

---

<div class="post-metadata">

**Author:** ![Hans](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@Hans](https://discourse.processing.org/u/Hans)\
**Post date:** [December 27, 2018, 8:06pm UTC](https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531/23 "2018-12-27T20:06:20Z")

</div>

It’s working again: [https://github.com/processing/processing-android/issues/507](https://github.com/processing/processing-android/issues/507)

> **[codeanticode/blepdroid](https://github.com/codeanticode/blepdroid/releases)**
>
> Bluetooth Low Energy for Processing Android. Contribute to codeanticode/blepdroid development by creating an account on GitHub.

> **[codeanticode/blepdroid](https://github.com/codeanticode/blepdroid)**
>
> Bluetooth Low Energy for Processing Android. Contribute to codeanticode/blepdroid development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Hans](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@Hans](https://discourse.processing.org/u/Hans)\
**Post date:** [December 27, 2018, 10:31pm UTC](https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531/24 "2018-12-27T22:31:48Z")

</div>

I manual updated to Android mode 271

> **[processing/processing-android](https://github.com/processing/processing-android/releases/tag/android-271)**
>
> Processing mode and core library to create Android apps with Processing - processing/processing-android

It’s searching and find the device but it won’t connect (yet)

This is causing it:

java.lang.NoSuchMethodError: No virtual method keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView; in class Ljava/util/concurrent/ConcurrentHashMap; or its super classes (declaration of ‘java.util.concurrent.ConcurrentHashMap’ appears in /system/framework/core-libart.jar)

[Previous page](https://discourse.processing.org/t/blepdroid-bluetooth-ble-and-fragmentmanager-issue/2531.md?page=1)
