Hey Guys i got this code in my Activity:
public class MYAppActivity extends Activity{
/** Called when the activity is first created. */
private MadvertiseView mMadView;
private AdView mAdmView;
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mAdmView = (AdView)findViewById(R.id.admad);
mMadView = (MadvertiseView)findViewById(R.id.madad);
}
@Override
public void onLoaded(boolean succeed, MadvertiseView mMadView) {
if (succeed) {
// ad loaded, set view visible
Log.d("YOUR_LOG_TAG", "Ad successfully loaded");
mMadView.setVisibility(View.VISIBLE);
} else {
// ad could not be loaded, set view to invisible
Log.w("YOUR_LOG_TAG", "Ad could not be loaded");
mMadView.setVisibility(View.INVISIBLE);}
}
and i get this error:The method onLoaded(boolean, MadvertiseView) of type MYAppActivity must override or implement a supertype methodUniversal/src/de/ollidiemaus/MYApp line 58 Java Problem
Any of you guys know whats wrong with my app?
I used the latest madvertise sdk
Try adding this line:
super.onLoaded(succeed,mMadView)
before if statement.May be it can help. Your code will look something like this: