Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9078963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:44:35+00:00 2026-06-16T19:44:35+00:00

hey There finally I’m create android app and integer ad mob but when try

  • 0

hey There finally I’m create android app and integer ad mob but when try it on my emulator get me stopped unexpectedly
*here my code’s file*

cordova-2.2.0
*admobskd 6.2.1*
android 2.2

Here mainActivity.java

    package com.afrogfx.VerbTenses;
    import android.app.Activity;
    import android.os.Bundle;
    import com.google.ads.*;

    import org.apache.cordova.*;

    public class VerbTenses extends DroidGap
    {
private static final String AdMob_Ad_Unit = "ass0bcc0e6a0228";
private AdView adView;

@Override
public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    super.loadUrl("file:///android_asset/www/overview.html");

    //admob
    adView = new AdView(this, AdSize.BANNER, AdMob_Ad_Unit); 
    super.root.addView(adView); 
    AdRequest request = new AdRequest();
    //request.setTesting(false);
    adView.loadAd(request);
    }
    }

Here manifest.xml

    <?xml version="1.0" encoding="utf-8"?>
    <manifest 
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:windowSoftInputMode="adjustPan"
  package="com.afrogfx.VerbTenses" 
  android:versionName="1.1" 
  android:versionCode="5" >

<supports-screens
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:resizeable="true"
    android:anyDensity="true"
    />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />



<application android:icon="@drawable/icon" android:label="@string/app_name"
    android:allowBackup="true"
    >

    <activity android:name="VerbTenses" android:label="@string/app_name"
            android:theme="@android:style/Theme.Black.NoTitleBar"
            android:configChanges="orientation|keyboardHidden|keyboard">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.google.ads.AdActivity"android:configChanges="keyboard|keyboardHidden|orientation"/>

</application>

<uses-sdk android:minSdkVersion="2" android:targetSdkVersion="17"/>
    </manifest> 

Warning
The import android.app.Activity is never used

console
http://www.flickr.com/photos/afrogfx/8350084864/

LogCat
http://www.flickr.com/photos/afrogfx/8350087082/

    01-05 17:21:21.565: D/dalvikvm(726): DexOpt: couldn't find static field
    01-05 17:21:21.565: W/dalvikvm(726): VFY: unable to resolve static field 19 (SDK_INT) in Landroid/os/Build$VERSION;
    01-05 17:21:21.575: W/dalvikvm(726): VFY:  rejecting opcode 0x60 at 0x0005
    01-05 17:21:21.575: W/dalvikvm(726): VFY:  rejected Lorg/apache/cordova/DroidGap;.init ()V
    01-05 17:21:21.575: W/dalvikvm(726): Verifier rejected class Lorg/apache/cordova/DroidGap;
    01-05 17:21:21.575: W/dalvikvm(726): Class init failed in newInstance call (Lcom/afrogfx/VerbTenses/VerbTenses;)
    01-05 17:21:21.589: D/AndroidRuntime(726): Shutting down VM
    01-05 17:21:21.589: W/dalvikvm(726): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
    01-05 17:21:21.607: E/AndroidRuntime(726): Uncaught handler: thread main exiting due to uncaught exception
    01-05 17:21:21.625: E/AndroidRuntime(726): java.lang.VerifyError: org.apache.cordova.DroidGap
    01-05 17:21:21.625: E/AndroidRuntime(726):  at java.lang.Class.newInstanceImpl(Native Method)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at java.lang.Class.newInstance(Class.java:1472)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.app.Instrumentation.newActivity(Instrumentation.java:1097)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.os.Handler.dispatchMessage(Handler.java:99)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.os.Looper.loop(Looper.java:123)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at android.app.ActivityThread.main(ActivityThread.java:3948)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at java.lang.reflect.Method.invokeNative(Native Method)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at java.lang.reflect.Method.invoke(Method.java:521)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    01-05 17:21:21.625: E/AndroidRuntime(726):  at dalvik.system.NativeStart.main(Native Method)
    01-05 17:21:21.644: I/dalvikvm(726): threadid=7: reacting to signal 3
    01-05 17:21:21.745: I/dalvikvm(726): Wrote stack trace to '/data/anr/traces.txt'
    01-05 17:23:13.524: I/Process(726): Sending signal. PID: 726 SIG: 9
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:44:36+00:00Added an answer on June 16, 2026 at 7:44 pm

    You seem to have a conflict with the Android version. I couldn’t find the definitive reference but PhoneGap seems to require at least Android SDK version 7 (Android 2.1).

    Set the following in your manifest.xml:

    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/>
    

    You might also need to create a new emulator instance with a higher Android version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey there, i have one question.. i try to write an android app with
hey there i'm using mysql in hebrew , but when i try to preview
Hey there, everyone. A really random question, but I'm looking to get into some
Hey there, I am trying to get my signout button to work. This is
hey there, Im having problems displaying my results in this program but the program
Hey there, i am trying to make a little app that will serve multiple
Hey there! I'm doing this project and right now I'm trying to: create some
Hey there I'm wondering how this is done as when I try the following
Hey there Stackoverflow! I'm trying to create an application that uses a WebView to
Hey there I've made a recursive permutation function for class, but I output is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.