Android Question sendBroadcast & sendOrderedBroadcast

b4auser1

Well-Known Member
Licensed User
Longtime User
How to use these methods in the B4A ?
The BroadcastReceiver library doesnt allow to pass Intent to these methods :(
 
Code: Copy
Sub Activity_Create(FirstTime As Boolean)
   Dim jo As JavaObject
   jo.InitializeContext
   Dim i As Intent
   i.Initialize(...)
   jo.RunMethod("SendOrderedBroadcast", Array(i))
End Sub

#If JAVA
import android.content.*;
   public void SendOrderedBroadcast(Intent intent) {
     this.sendOrderedBroadcast(intent, null);
   }
#end if
 
Upvote 0
Back
Top