xml - Merge two Android projects so that both will appear on layout -
i have android project 2 modules.
one banner advertisement , other application.
how merge these projects banner ad show on every xml layout of project?
i think best way creating baseactivity extends activity. create banner adview java code. extend baseactivity other activities using.
here's sample code baseactivity
import android.app.activity; import android.os.bundle; public class baseactivity extends activity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); createbanner(); } void createbanner() { //handle banner creation here } }
if using fragments navigations have declare banner inside activity's layout xml
Comments
Post a Comment