Android Question Add extra codes to Layout

Mansour01

Member
Licensed User
Longtime User
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
 

Mansour01

Member
Licensed User
Longtime User
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 ?






2
 
Upvote 0
Top