Add to Code
Go to your main class activity (the one which has android.intent.action.MAIN marked in the
manifest) and import the SDK package in:
import com.analitics.api.AppwizSDK;
import com.analitics.api.OnEulaScreenClosedHandler;
- Call the static function in the beginning of the 'onCreate' function of that
activity:
AppwizSDK.init(this, new OnEulaScreenClosedHandler()
{
/**
* This function takes place, once the user passes the EULA screen
* eulaResult possible values: Accepted = 0 Skipped = 1 Already Accepted = 3 Error = 4
*/
@Override
public void continueToApp (int eulaResult)
{
//Put you code here to continue to app
}
});
AppwizSDK.startOfferWall(Context);
- To start Offerwall call the following method:
AppwizSDK.startOfferWall(Context);
- To start PremiumAd call the following method:
AppwizSDK.startPremiumAd(Context);