Android Question Google voice recognition - can not start with SDK 30

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends, please

if i am using target sdk 29 then I can start google service. After I speak some words I get result in text..
but
if I set in Manifest:
B4X:
android:targetSdkVersion="30"

then I can not start google listening
B4X:
   Dim i As Intent
   i.Initialize("android.speech.action.RECOGNIZE_SPEECH", "")

I need use sdk 30,
what can I do - please for advice?
Best regards
p4ppc
 
Solution
Try adding:
B4X:
AddManifestText(
<queries>
    <intent>
        <action
            <android:name="android.speech.RecognitionService" />   
    </intent>
</queries>
)

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
DonManfred,

thank you for your answer, but I not see error...
for example:"Network operation timed out",etc...

Is it possible that exists some new permission?

p4ppc
 
Last edited:
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
LucaMs and DonManfred, thank you for your answer,

I am trying to put in manifest this:
B4X:
AddApplicationText(<meta-data
        android:name="android.speech.RecognitionService" />
)

1648474690906.png

What is wrong, please?
Best regards
p4ppc
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Try adding:
B4X:
AddManifestText(
<queries>
    <intent>
        <action
            <android:name="android.speech.RecognitionService" />   
    </intent>
</queries>
)
 
Upvote 0
Solution
Top