sirjo66 Well-Known Member Licensed User Longtime User Aug 10, 2015 #1 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
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 Aug 10, 2015 #2 It should be possible with inline java (or even a java-wrapper). b4a does not know bundles. Upvote 0
LucaMs Expert Licensed User Longtime User Aug 11, 2015 #3 DonManfred said: It should be possible with inline java (or even a java-wrapper). b4a does not know bundles. Click to expand... https://www.b4x.com/android/forum/threads/come-chiamare-un-intent-con-dati-extra.57106/#post-359433 Upvote 0
DonManfred said: It should be possible with inline java (or even a java-wrapper). b4a does not know bundles. Click to expand... https://www.b4x.com/android/forum/threads/come-chiamare-un-intent-con-dati-extra.57106/#post-359433
LucaMs Expert Licensed User Longtime User Aug 11, 2015 #4 He has B4A version 4.0, which does not allow inline java, unfortunately. Maybe you can use #Additionaljar; I have not studied this method (it's time to do it ). Upvote 0
He has B4A version 4.0, which does not allow inline java, unfortunately. Maybe you can use #Additionaljar; I have not studied this method (it's time to do it ).
DonManfred Expert Licensed User Longtime User Aug 11, 2015 #5 LucaMs said: He has B4A version 4.0, which does not allow inline java, unfortunately. Click to expand... Time to update his installation to 5.0+ Or learn java to write a wrapper for this lib Upvote 0
LucaMs said: He has B4A version 4.0, which does not allow inline java, unfortunately. Click to expand... Time to update his installation to 5.0+ Or learn java to write a wrapper for this lib
LucaMs Expert Licensed User Longtime User Aug 11, 2015 #6 DonManfred said: Time to update his installation to 5.0+ Or learn java to write a wrapper for this lib Click to expand... I suppose that the first option is easier (and more useful). To write a wrapper he needs also the source code, right? Last edited: Aug 11, 2015 Upvote 0
DonManfred said: Time to update his installation to 5.0+ Or learn java to write a wrapper for this lib Click to expand... I suppose that the first option is easier (and more useful). To write a wrapper he needs also the source code, right?
DonManfred Expert Licensed User Longtime User Aug 11, 2015 #7 LucaMs said: To write a wrapper he need also the source code, right? Click to expand... Not mandatory. Maybe the documentation should be enough to do a wrapper. Upvote 0
LucaMs said: To write a wrapper he need also the source code, right? Click to expand... Not mandatory. Maybe the documentation should be enough to do a wrapper.
sirjo66 Well-Known Member Licensed User Longtime User Aug 11, 2015 #8 Many thanks, I will upgrade to B4A 5.0, I think that is the better solution Sergio Upvote 0