Note that there are some explanatory texts on larger screens.

plurals
  1. POAdmob ads not showing on android emulater
    primarykey
    data
    text
    <p>I have added admob codes for showing ads in my app. When i run the app in emulator it opens the splash screen and then the app suddenly exits saying "Unfortunately,Your app has stopped". I don't know why it is showing. It works well before addding the admob codes.I have also added the code. help me with this.</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"`` android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/background2" &gt; &lt;ScrollView android:id="@+id/scrollView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerInParent="true" android:scrollbars="none"&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:orientation="vertical" &gt; &lt;ImageButton android:id="@+id/imageButton1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginTop="60dp" android:background="@null" android:padding="30dp" android:src="@drawable/menu1" android:contentDescription="@string/image_desc" /&gt; &lt;ImageButton android:id="@+id/imageButton2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/imageButton1" android:background="@null" android:padding="30dp" android:src="@drawable/menu2" android:contentDescription="@string/image_desc" /&gt; &lt;ImageButton android:id="@+id/imageButton3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/imageButton2" android:background="@null" android:padding="30dp" android:src="@drawable/menu3" android:contentDescription="@string/image_desc" /&gt; &lt;ImageButton android:id="@+id/imageButton4" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/imageButton3" android:background="@null" android:padding="30dp" android:src="@drawable/menu4" android:contentDescription="@string/image_desc" /&gt; &lt;ImageButton android:id="@+id/imageButton5" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/imageButton4" android:background="@null" android:padding="30dp" android:src="@drawable/menu5" android:contentDescription="@string/image_desc" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="admob id" ads:adSize="SMART_BANNER" ads:loadAdOnCreate="true"/&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload