Android Question how to call an intent with extra datas

sirjo66

Well-Known Member
Licensed User
Longtime User
Hi all,
I need to call an intent with some extra datas, and I found this on documentation:
B4X:
public void XMTVPlayerPlayUri(String Title,String uri){
   Bundle bnd = new Bundle();
   bnd.putString("path", uri);
   bnd.putString("name", Title);
   bnd.putBoolean("HideBufferLine", true); // Hide yellow buffer status line
   Intent intent = new Intent();
   intent.setClassName("com.xmtvplayer.watch.live.streams","org.zeipel.videoplayer.XMTVPlayer");
   intent.putExtras(bnd);
   startActivityForResult(intent, 100);
}

..... but I don't know how to do it in B4A

How can do it ??
Thanks
Sergio
 

DonManfred

Expert
Licensed User
Longtime User
It should be possible with inline java (or even a java-wrapper). b4a does not know bundles.
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
Many thanks, I will upgrade to B4A 5.0, I think that is the better solution

Sergio
 
Upvote 0
Top