© 2025 - vipplayer.org. All Rights Reserved. Made with ♥
AndroidManifest.xmlInsert the following block above the <application> tag in your manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name">
<queries>
<package android:name="com.playerfirestick.kopliapp" />
</queries>
<application
android:allowBackup="true"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<!-- Your activities and components -->
</application>
</manifest>
IntentLaunching VipPlayer with Intent and Passing Data from your android activity
String packageName = "com.playerfirestick.kopliapp";
String url = "https://example.com/video.mp4";
String name = "My Video Title";
Intent launchIntent = getPackageManager().getLaunchIntentForPackage(packageName);
if (launchIntent != null) {
// Pass the data
launchIntent.putExtra("url", url);
launchIntent.putExtra("name", name);
// Optional: add flags if starting outside an Activity
// launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(launchIntent);
} else {
// App not found, optionally redirect to install or show message
Toast.makeText(this, "App not installed", Toast.LENGTH_SHORT).show();
}
OptionalHandle app not installed -- install app from amazon appstore --
String packageName = "com.playerfirestick.kopliapp";
String url = "https://example.com/video.mp4";
String name = "My Video Title";
Intent launchIntent = getPackageManager().getLaunchIntentForPackage(packageName);
if (launchIntent != null) {
// Pass the data
launchIntent.putExtra("url", url);
launchIntent.putExtra("name", name);
// Optional: add flags if starting outside an Activity
// launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(launchIntent);
} else {
// App not found, redirect user to Amazon Appstore to install the app
try {
Intent appstoreIntent = new Intent(Intent.ACTION_VIEW);
appstoreIntent.setData(Uri.parse("amzn://apps/android?p=" + packageName));
appstoreIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(appstoreIntent);
} catch (ActivityNotFoundException e) {
// Amazon Appstore app not found, open Amazon Appstore website instead
Intent webIntent = new Intent(Intent.ACTION_VIEW);
webIntent.setData(Uri.parse("https://www.amazon.com/gp/mas/dl/android?p=" + packageName));
webIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(webIntent);
}
}