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

  • Home
  • SEARCH
  • 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 9001283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:24:56+00:00 2026-06-16T00:24:56+00:00

I am using an adMob banner in my application but when I run it,

  • 0

I am using an adMob banner in my application but when I run it, I got an errors as bellow:

12-17 12:32:19.098: E/Trace(1244): error opening trace file: No such file or directory (2)
12-17 12:32:19.727: D/dalvikvm(1244): GC_FOR_ALLOC freed 55K, 3% free 8039K/8259K, paused 60ms, total 63ms
12-17 12:32:19.907: I/dalvikvm-heap(1244): Grow heap (frag case) to 19.900MB for 12582928-byte allocation
12-17 12:32:20.008: D/dalvikvm(1244): GC_CONCURRENT freed 1K, 2% free 20326K/20615K, paused 30ms+19ms, total 97ms
12-17 12:32:21.677: W/Ads(1244): No Google Analytics: Library Incompatible.
12-17 12:32:21.697: D/AndroidRuntime(1244): Shutting down VM
12-17 12:32:21.697: W/dalvikvm(1244): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
12-17 12:32:21.727: E/AndroidRuntime(1244): FATAL EXCEPTION: main
12-17 12:32:21.727: E/AndroidRuntime(1244): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.antiwal7amel/com.app.antiwal7amel.MenuActivity}: java.lang.NullPointerException
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.ActivityThread.access$600(ActivityThread.java:130)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.os.Looper.loop(Looper.java:137)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.ActivityThread.main(ActivityThread.java:4745)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at java.lang.reflect.Method.invokeNative(Native Method)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at java.lang.reflect.Method.invoke(Method.java:511)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at dalvik.system.NativeStart.main(Native Method)
12-17 12:32:21.727: E/AndroidRuntime(1244): Caused by: java.lang.NullPointerException
12-17 12:32:21.727: E/AndroidRuntime(1244):     at com.app.antiwal7amel.MenuActivity.onCreate(MenuActivity.java:44)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.Activity.performCreate(Activity.java:5008)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
12-17 12:32:21.727: E/AndroidRuntime(1244):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
12-17 12:32:21.727: E/AndroidRuntime(1244):     ... 11 more

I am using it as bellow :

public class MenuActivity extends Activity   {
    AdView  adView ;
    @Override   

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);  
        setContentView(R.layout.activity_main);

        AdView ad = (AdView) findViewById(R.id.adView);
 AdRequest request = new AdRequest();
 ad.loadAd(request);

And inside my manifest also :

   <activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"></activity>

But I don’t know where is the problem ! I googled it a lot with no solution

  • 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-16T00:24:57+00:00Added an answer on June 16, 2026 at 12:24 am

    If the problem is situated in ad.loadAd(request); this is probably a problem with the id adView not existing in your activity_main layout.

    Or maybe there is something wrong with the initialisation of the AdRequest. Maybe you can check why one of these elements is null. Because when you know which of them is null you can try to solve the problem.

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

Sidebar

Related Questions

I am trying to ad some ads to my android application using admob, but
Using Android Admob sdk I receive same banner all the time. On different devices
Using AdMob, how can I give an advertisement in an Android Application?
I can display a test ad using admob and sencha touch. But when test:false,
I'm using an AdMob view in an android app, but I'm unable to get
Can I load admob ad using AsyncTask ? I have tried it but I
I am trying to add ads to my Android app using Admob, but have
I wrote a test app to implement the admob banner using xml in the
I'm building a simple content app using PhoneGap + jquery mobile. My AdMob banner
I am using google admob in my application. I have the following code: GADRequest

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.