Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Crosspromote

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:

Requirements:

To use this library you need a list of app from a JSON web service. The schema should be as follows:

Api Endpoint

[{
    "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
}]

Usage:

  1. Add the crosspromote library dependency:

    implementation 'com.github.kookydroid-apps:crosspromote:${latest_version}' \\v0.1.4.5-alpha

    Latest version from the release tab.

  2. Add the crosspromote Activity in the AndroidManifest.xml file.

    <activity android:name="com.kookydroidapps.crosspromote.CrossPromote"></activity>
  3. 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);
    That's it!

Contributors:

If you want to contribute, please open a issue and/or create a Pull Request.

Used by:

If you want your app listed here, drop me a message on Twitter.

Icon App link
Pakistani Recipes in Urdu اردو