Cross promote your android apps by using this library. We use it in most of our applications to cross promote our other android apps.
Preview:
To use this library you need a list of app from a JSON web service. The schema should be as follows:
[{
"description": "Collection of Best Pakistani Recipes in Urdu.",
"downloadUrl": "https://play.google.com/store/apps/details?id=com.kookydroidapps.pakistanifoodrecipes.urdu",
"iconUrl": "https://goodfood.recipes/public/app/pakistaniUrduAppLogo.png",
"isFree": true,
"name": "Pakistani Recipes in Urdu",
"order": 0,
"visibile": true
}, {
"description": "Collection of Best Pakistani Recipes in English.",
"downloadUrl": "https://play.google.com/store/apps/details?id=com.kookydroidapps.pakistanifoodrecipes.english",
"iconUrl": "https://goodfood.recipes/public/app/pakistaniEnglishAppLogo.png",
"isFree": true,
"name": "Pakistani Recipes in English",
"order": 1,
"visibile": true
}]
-
Add the
crosspromote
library dependency:implementation 'com.github.kookydroid-apps:crosspromote:${latest_version}' \\v0.1.4.5-alpha
Latest version from the release tab.
-
Add the
crosspromote
Activity in theAndroidManifest.xml
file.<activity android:name="com.kookydroidapps.crosspromote.CrossPromote"></activity>
-
Start this intent from anywhere inside your Android application, passing the endpoint of your webservice for JSON apps list:
Intent intent = new Intent(MainActivity.this, CrossPromote.class); intent.putExtra("url", "https://crosspromote.firebaseio.com/recipe.json"); startActivity(intent);
- Arshad Mehmood - Maintainer & creator
If you want to contribute, please open a issue and/or create a Pull Request.
If you want your app listed here, drop me a message on Twitter.
Icon | App link |
---|---|
Pakistani Recipes in Urdu اردو |