A
Android Question
Guest
package com.example.sahil.lead3;
import android.app.Activity;
import android.os.Bundle;
import com.apptracker.android.track.AppTracker;
/**
* Created by Sahil on 10/12/2016.
*/
public class Fourth extends Activity {
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fou);
if(savedInstanceState == null) {
// Initialize Leadbolt SDK with your api key
AppTracker.startSession(getApplicationContext(),"is2byYEVjbXiFjVjaYIt6sM4aEIqMWZ3",AppTracker.ENABLE_AUTO_CACHE);
}
// cache Leadbolt Ad without showing it
AppTracker.loadModuleToCache(getApplicationContext(),"inapp");
}
public void gameover() {
// call this when you want to display the Leadbolt Interstitial
if(AppTracker.isAdReady("inapp")) {
AppTracker.loadModule(getApplicationContext(),"inapp");
}
}
}
I will try to leadbolt ads inn android studio ads are display in back button but i do not exit or back to my fourth activity so please help me how to solve this problem
import android.app.Activity;
import android.os.Bundle;
import com.apptracker.android.track.AppTracker;
/**
* Created by Sahil on 10/12/2016.
*/
public class Fourth extends Activity {
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fou);
if(savedInstanceState == null) {
// Initialize Leadbolt SDK with your api key
AppTracker.startSession(getApplicationContext(),"is2byYEVjbXiFjVjaYIt6sM4aEIqMWZ3",AppTracker.ENABLE_AUTO_CACHE);
}
// cache Leadbolt Ad without showing it
AppTracker.loadModuleToCache(getApplicationContext(),"inapp");
}
public void gameover() {
// call this when you want to display the Leadbolt Interstitial
if(AppTracker.isAdReady("inapp")) {
AppTracker.loadModule(getApplicationContext(),"inapp");
}
}
}
I will try to leadbolt ads inn android studio ads are display in back button but i do not exit or back to my fourth activity so please help me how to solve this problem