This commit is contained in:
Sergey Solovyev
2012-01-05 19:43:28 +04:00
parent 0d6656f52c
commit 2df2574329
3 changed files with 3 additions and 5 deletions

View File

@@ -121,8 +121,6 @@ public final class AndroidUtils {
// Create the adView
final AdView adView = new AdView(activity, AdSize.BANNER, admobAccountId);
// Lookup your LinearLayout assuming its been given
// the attribute android:id="@+id/mainLayout"
final ViewGroup layout = (ViewGroup) activity.findViewById(layoutId);
// Add the adView to it