leadbolt android adverts
in
Android Processing
•
1 year ago
Does anyone know how to get the leadbolt adverts to work in a processing application.
I've seen this for admob: https://forum.processing.org/topic/how-to-including-ads-to-android-project and am wondering if there is similar for leadbolt. As I prefer it.
I've got the following structure in my sketches libraries folder:
LeadboltController
libraries
LeadboltController.jar
and it shows no problems when I use:
import com.Leadbolt.*;
the leadbolt documentation says this, but is there anyway to use this in the processing ide, I've never used eclipse.
thanks in advance for any advice/help
I've seen this for admob: https://forum.processing.org/topic/how-to-including-ads-to-android-project and am wondering if there is similar for leadbolt. As I prefer it.
I've got the following structure in my sketches libraries folder:
LeadboltController
libraries
LeadboltController.jar
and it shows no problems when I use:
import com.Leadbolt.*;
the leadbolt documentation says this, but is there anyway to use this in the processing ide, I've never used eclipse.
- /*
Other imports here
*/
import com.Leadbolt.AdController;
public class HelloWorld extends Activity
{
private AdController myController;
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// create a new layout
LinearLayout layout = new LinearLayout(this);
/*
Add any elements to your view
*/
// make the view visible
this.setContentView(layout);
}
final Activity act = this;
// now add the banner or overlay to the app
layout.post(new Runnable() {
public void run() {
myController = new AdController(act, MY_LB_SECTION_ID);
myController.loadAd();
}
});
}
public void onDestroy()
{
myController.destroyAd();
super.onDestroy();
}
thanks in advance for any advice/help
1