Login Details Send Intent
String player_applicationId = "nsofts.streambox"; // Your App ApplicationId (StreamBox Android App)
try {
Intent sendIntent = new Intent(Intent.ACTION_SEARCH);
sendIntent.setPackage(player_applicationId);
// loginType Xtream Codes or Xui.One = xtream
// loginType 1-Stream = stream
// loginType Playlist URL = playlist
String loginType = "xtream"; // xtream or stream or playlist
sendIntent.putExtra("any_name", "AnyName");
if (!loginType.equals("playlist")){
sendIntent.putExtra("user_name", "UserName");
sendIntent.putExtra("user_pass", "Password");
}
sendIntent.putExtra("dms_url", "http://url_here.com:port"); // DMS URL OR PLAYLIST URL
sendIntent.putExtra("login_type", loginType);
sendIntent.setType("text/plain");
sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(sendIntent);
} catch (Exception e) {
e.printStackTrace();
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + player_applicationId)));
}Last updated