Dear friends, please for advice,
Dim i As Intent
i.Initialize("android.speech.action.RECOGNIZE_SPEECH", "")
Call this voice recognitioning from APP (I see the app) - everything is OK
Call this voice recognitioning from service (app is in background) - NOK, I get:
java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
at android.media.AudioRecord.startRecording(AudioRecord.java:1195)
EDIT, notice - Only for certain I must write - now I dont know what I am doing wrong, but after recognize speech I can not run audio recording from service (app in background). In sdk29 = OK, sdk30=NOK. I dont know if ins sdk30 is some new security. I am writing question because I hope that somebody have same situation.
EDIT2 - if I run recognizer service from service (app is background) I realy get error: "Insufficient permissions"
Do you think please it is because of SDK 30 - some security?
best regards
p4ppc