Android Question Android GO ( Ruggear) intent

Nizze

Active Member
Licensed User
Longtime User
Hi

I can't get the PTT button event to work .

I can see this in line raw log

Background execution not allowed: receiving Intent { act=android.intent.action.PTT.down flg=0x10 } to se.nizze.talk/.special$special_BR

An i have below text in manifest
B4X:
AddReceiverText(Special,
                <intent-filter android:priority="2147483647">
                <action android:name="android.intent.action.PTT.down" />
                </intent-filter>)

AddReceiverText(Special,
                <intent-filter android:priority="2147483647">
                <action android:name="android.intent.action.PTT.up" />
                </intent-filter>)
What else must i do to get it to work with this device ?
It is a Ruggear device withAndroid Go (10)
 
Last edited:

Nizze

Active Member
Licensed User
Longtime User
Hi Erel .
Thanks for replying , solved like this in Main activity ,
B4X:
Sub Ptt_Action
   
    Broadcast.Initialize("BR")
    Broadcast.SetPriority(2147483647)
    Broadcast.registerReceiver("android.intent.action.PTT.down")
    Broadcast.registerReceiver("android.intent.action.PTT.up")

End Sub

Sub BR_OnReceive(Action As String, Extras As Object)
    Log(Action)
    CallSub2(PTT_Control,"PTT_Intent",Action)
End Sub
 
Upvote 0
Top