Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble adding Admob 6.2.1 SDK to my project
    text
    copied!<p>I was developing an application on API 9, 2.3.3 then I changed the build to 4.0.3 because I only had 4.0.3 installed other than 2.3.3 and 2.2 due to admob's policy.</p> <p>I have tried to embed admob into my Android application but have been failing ever since. I finally did it on my school computer and it works perfectly. However, I imported my project into my own laptop, trying to edit and add on more coding and lots of problems started to arise without even editing any part of the code. </p> <p>What I know is that my school PCs are using eclipse indigo and I am using juno. Is it because I did not import my codes properly or it is my eclipse version or something else? Here's the dummy code I did.</p> <p>MainActivity.Java</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; } </code></pre> <p>XML</p> <pre><code>&lt;com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="the right code" ads:adSize="BANNER" ads:loadAdOnCreate="true"/&gt; </code></pre> <p>Manifest</p> <pre><code> &lt;activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/&gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /&gt; </code></pre> <p>So there is it. I have looked into many sites for help but to no avail.</p>
 

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