Hi everyone
I want to add some advertise code to my app .
The instruction says , i should add their "add.jar" to my "libs" folder , and add some extra code that add a view has defiend in .jar file (with android:id="@+id/advertise" & wrap).
how should i add these extra code since there is no layout xml file ?!
should i create a "Libs" folder with read only property ?!
Thank You
You have two options. You can add the views programmatically, or you can create a XML layout and load it with this library: XmlLayoutBuilder - Load Xml layouts
You have two options. You can add the views programmatically, or you can create a XML layout and load it with this library: XmlLayoutBuilder - Load Xml layouts
Thank You Erl
Well i have no access to main source & either APIs of .jar how should i add the view programmitcally , would you please give me an example ?
There ad is implemented as a subclass of View. You can call the constructor and then in B4A code call Activity.AddView. See AdMob wrapper for an example.
There ad is implemented as a subclass of View. You can call the constructor and then in B4A code call Activity.AddView. See AdMob wrapper for an example.
Thank You Erl
But i really confiused,
since i have no access to source, & there is no sdk , & just there is a simple adxxx.jar how supposed to write a wrapper ?
what is the constructor in the jar ?! i mean how should i find the public method that create the object inside the class ? & how to use it in my project ?
& btw i can't find AdMob wrapper's source , where should i find it ?