Login Details Send Intent

By using this you no need to give Username, Password or DNS From remote app you can redirect the users to stream box no need login while using this method

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)));
}

Example From your remote app you can Place button that bring your users to stream box then it will auto enter user pass and DNS and login. After they purchase any subscription in your remote app you will show a button to click once it clicked this function will be done automatically so for users its a easy method to login app.

Last updated