Tech εφευρέτης

unread,
Sep 23, 2018, 11:27:49 AM9/23/18
to MIT App Inventor Forum
Hello there. 
I'm trying to connect Bluetooth to hc-08 trough my android phone. But when i tap on list picker it just gives me nothing. It's all black. My bluetooth is on. I have tried other application on google play and they work fine.
Can you help me, please?
blocchi bluetooth.PNG

Tech εφευρέτης

unread,
Sep 23, 2018, 12:09:14 PM9/23/18
to MIT App Inventor Forum
i'm using only one screen

SteveJG

unread,
Sep 23, 2018, 12:35:07 PM9/23/18
to mitappinv...@googlegroups.com
When you elicit the ListPicker I expect the behavior of displaying the ListPicker selections behaves in a way similar to what happens when a user changes Screens and perhaps the Bluetooth client behaves as if you changed screens.  I really don't know.

As an experiment, I suggest you try using a ListView component instead of the ListPicker.  Try to select using the ListView (the selection process is similar but the ListPickers selection stays on the screen of origin)   Use a ListView and see what happens.  If you can select that way and cannot with the ListPicker, you just discovered an undesirable behavior of the ListPicker when used in conjunction with a Bluetooth client.

What do you discover?

Regards,
Steve


Tech εφευρέτης

unread,
Sep 23, 2018, 4:42:12 PM9/23/18
to MIT App Inventor Forum
i have tried using List view, but it doesn't work... Why it works for everyone else but not to me?

SteveJG

unread,
Sep 23, 2018, 5:52:42 PM9/23/18
to MIT App Inventor Forum


Here is an example that 'seems' to work with bluetooth and a ListPicker.  Why it works for everyone else but not to me?   

Why it works for everyone else but not to me?  , Do you have the bluetooth paired with your device?   I understand the bluetooth devices links won't appear unless the devices are paired..

Tech εφευρέτης

unread,
Sep 24, 2018, 5:30:31 AM9/24/18
to MIT App Inventor Forum
my device won't pair with HC-08 directly... but other apps can see all the bluetooth devices but not my app....

Chris Ward

unread,
Sep 24, 2018, 5:57:10 AM9/24/18
to MIT App Inventor Forum
Hello Tech εφευρέτης

Is that the HC-08 Arduino?

If so, I think you are using the wrong Bluetooth functions - try the MIT BLE (Bluetooth Lite Edition) Extension:

Tech εφευρέτης

unread,
Sep 24, 2018, 6:09:09 AM9/24/18
to MIT App Inventor Forum
i have downloaded the extension but i don't know how to add it on my app. Can you help me please?

Chris Ward

unread,
Sep 24, 2018, 6:22:56 AM9/24/18
to MIT App Inventor Forum
Here we go. On Screen1:

Designer Components Palette.png


Designer Component Extension.png


Import Extension.png


Tech εφευρέτης

unread,
Sep 24, 2018, 7:00:53 AM9/24/18
to MIT App Inventor Forum
Thank you all for help.Now i can see all the device and i can also connect to them.... For me the normal bluetooth thing just didn't work.... 
I also found this video for people like me who has the same problem as mine: https://www.youtube.com/watch?v=a1S-abFOZMA


Thank you Chris Ward
Reply all
Reply to author
Forward
0 new messages