Here you go!
app_iA.aia (305.2 KB)
Post your Arduino code too, just in case.
Some samples in this thread:
this is whats happening...the listpicker works fine and it displays my hc-05 module's address but in the label where it is supposed to display the output it shows the else block statement...please help i am starting to feel hopeless
You are making progress.
Now you know that you have a connection problem.
Most people use a ListView instead of a List Picker for their connection establishment.
Here is a technique to deal with connection permissions, using a ListView:
(Canned Response ABG - Bluetooth non-BLE SCAN Permission Blocks)
The easiest solution, for immediate relief
(from @Barry_Meaker) ...
I had the same issue. The problem is your app does not have permission to see nearby devices. The solution is to give your app permission on your phone (no code changes in your app).
on your phone,
- goto settings
- search for your app
- in App Info for your app select Permissions
- change Nearby Devices from Not Allowed to Allowed
- Done
By the way, the very first time you run the app, Android will ask if you want to grant the app this permission. If you say no, or ignore the pop-up, the permission will be set as Denied. Android will not ask again.
A more complex approach, for professional app development:
See Bluetooth liste of devices deosn't work anymore - #7 by Anke
Special note for Xiaomi devices:
I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC - #20 by Patryk_F
the permission issue has been taken care of since yesterday...i have granted it permission.
Show your current blocks and how you solved the permissions problem.
Did you post your sketch yet?
Maybe it has been "improved" to death since yesterday, and it is losing the connection.
Also, I have downloaded a Blocks Image of the button click where you use the translator...
You mentioned that adding the translator broke your app.
Removing the translator component would lose all your translation request blocks, but allow you to verify if it indeed had an effect on your BlueTooth operations.
The draggable event block above would let you restore your translation calls if you drag it back into the Blocks Editor.
flex_mpu_bt_try_iA.ino (10.8 KB)
attached sketch.
I tried that already...deleting the translation blocks. Apparently, the HC-05 is not getting connected to the arduino
Update: I got the output on the app (my wiring was wrong) but now the translator functionality is not working :((
Please help!!.
If you can help me with getting the translated text on another app,please do.
Thanks for all the deubgging up till now.
Instead of posting the received text to a Label.Text, post it to a Textbox.Text to allow you to feed the translator independently of received text (hand typing.)
Has the translator ever worked for you?
How do you know your target language codes are suitable for the translator?
Also, Spinners are fussy about their first Element.
I prefer List Pickers.
i do not want to enter the text manually, basically the idea is to automatically translate the output from the label (which is coming from arduino) hence another label.
language codes i got from a yt tutorial
It's only temporary, for testing the language translator through hand input.
ok...how to do this?
You could make a separate app,, with just the
- translator
- textbox
- output Label
- speech output (did you want that?)
- button.
umm okay, i shall try that.
I have a question though. So in my existing translation blocks, the text that my arduino is sending,is it essentially stored in my variable called "Received_data"?
because I feel I may have wrongly been calling the mere label instead of the variable so just want to confirm. Please check my .aia file one more time and let me know,please.
app_iA (2).aia (305.3 KB)