Skip to content

Instantly share code, notes, and snippets.

@codeinvain
Last active December 18, 2015 17:59
Show Gist options
  • Save codeinvain/5822480 to your computer and use it in GitHub Desktop.
Save codeinvain/5822480 to your computer and use it in GitHub Desktop.
integrating with GO Locker Apps
public class GOScreenLockInstallDialog extends Activity {
..
..
Runnable optinRunnable = new Runnable() {
public void run() {
AdRock adrock = AdRock.getInstance(GOScreenLockInstallDialog.this);
adrock.register(GOScreenLockInstallDialog.this, new OptInDialogOptions(OptInDialogOptions.TYPE_ACTIVITY, OptInDialogOptions.THEME_LIGHT, true, true,true));
}
};
..
..
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new Handler().post(this.optinRunnable);
..
..
}
..
..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment