android - Can't implement adMob AdListener Class -


im getting error:

- type adlistener cannot superinterface of admanager; superinterface must           interface 

when im trying implement admob adlistener on app:

import com.google.android.gms.ads.adlistener;  public class admanager implements adlistener{ 

what doing wrong?

according new sdk (google play services)

you no longer implement adlistener activity or class..

you can use inner class:

adview.setadlistener(new adlistener() { public void onadloaded() {} public void onadfailedtoload(int errorcode) {} // implement methods need. });

(taken from: https://developers.google.com/mobile-ads-sdk/docs/admob/play-migration)


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -