Bonjour tout le monde,
J'ai un petit problème, j'aimerai capturer le click d'un AdView afin de faire d'autres méthodes supplémentaires...
mais lorsque je click sur l'adview rien ne s'affiche dans le log -_-... quelqu'un saurait comment faire ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 private View.OnClickListener adsListener = new View.OnClickListener() { public void onClick(View v) { Log.i("","CLIC OK !!!!!!!!!!!!!!!!!!!!!!!!!"); } }; adView = new AdView(this, AdSize.BANNER, "XXXXXXXXXXXX"); adView.setOnClickListener(adsListener); LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout); layout.addView(adView);
Partager