Translator output does not show

okay! can you give me a walkthrough? i am new to this and it is my first app ever

Search this board for 'FAQ Bluetooth'

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

1 Like

Here you go!
app_iA.aia (305.2 KB)

P.S. These blocks can be dragged directly into your Blocks Editor workspace.

Dragging blocks

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

1 Like

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.

app_iA (1).aia (305.2 KB)

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.

1 Like

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.

1 Like

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.

1 Like to do this?

You could make a separate app,, with just the

  • translator
  • textbox
  • output Label
  • speech output (did you want that?)
  • button.
1 Like

Oops, I forgot that you needed this:

1 Like