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 8154925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:30:51+00:00 2026-06-06T16:30:51+00:00

my android app crash before load main.xml. This is the exception thrown java.lang.RuntimeException: Unable

  • 0

my android app crash before load main.xml.
This is the exception thrown

java.lang.RuntimeException: Unable to resume activity…:
java.lang.NullPointerException

What happens?

For completeness I enclose my manifest.xml

 <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="saverio.puccia.nfcauth"
        android:versionCode="1"
        android:versionName="1.0" >

    //permission

        <uses-sdk android:minSdkVersion="10" />
        <uses-permission android:name="android.permission.NFC"></uses-permission>
        <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>

    //main declaration

        <application
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name" >
            <activity
                android:name=".NFCAuthActivity"
                android:label="@string/app_name" >

                //intent filter declaration

                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.NDEF_DISCOVER" />

                    <category android:name="android.intent.category.DEFAULT" />
                </intent-filter>


            </activity>
        </application>

    </manifest>

LOGCAT

06-25 11:03:23.670: E/AndroidRuntime(4323): FATAL EXCEPTION: main

06-25 11:03:23.670: E/AndroidRuntime(4323): java.lang.RuntimeException: Unable to resume activity {saverio.puccia.nfcauth/saverio.puccia.nfcauth.NFCAuthActivity}: java.lang.NullPointerException

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2456)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2484)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1998)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread.access$600(ActivityThread.java:127)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.os.Handler.dispatchMessage(Handler.java:99)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.os.Looper.loop(Looper.java:137)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread.main(ActivityThread.java:4507)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at java.lang.reflect.Method.invokeNative(Native Method)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at java.lang.reflect.Method.invoke(Method.java:511)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at dalvik.system.NativeStart.main(Native Method)

06-25 11:03:23.670: E/AndroidRuntime(4323): Caused by: java.lang.NullPointerException

06-25 11:03:23.670: E/AndroidRuntime(4323):     at saverio.puccia.nfcauth.NFCAuthActivity.onResume(NFCAuthActivity.java:103)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1157)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.Activity.performResume(Activity.java:4539)

06-25 11:03:23.670: E/AndroidRuntime(4323):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2446)

06-25 11:03:23.670: E/AndroidRuntime(4323):     ... 12 more

06-25 11:03:23.670: W/ActivityManager(1998):   Force finishing activity r.intent.getComponent().flattenToShortString()
  • 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-06T16:30:52+00:00Added an answer on June 6, 2026 at 4:30 pm

    as you can see from this line in the logcat:

    06-25 11:03:23.670: E/AndroidRuntime(4323): at saverio.puccia.nfcauth.NFCAuthActivity.onResume(NFCAuthActivity.java:103)

    you are having a NullPointerException in your onResume function in line number 103. go there and that will be your answer.

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

Sidebar

Related Questions

I have a few crash report logs from android market similar to this: Exception
I've received a crash report with the following log content: java.lang.NullPointerException at android.webkit.PluginFullScreenHolder.show(PluginFullScreenHolder.java:85) at
Since upgrading my Android SDK, I get a java.lang.VerifyError crash booting my previously working
I would like to crash my Android app by using command-line ADB tool during
I renamed my android app (using eclipse refactor->rename ) now it crashes before I
I have an SQLite query in my android app that seems to crash when
I'm making an Android app and my implementation of adapter.add() seems to crash the
I have an Android app with a main tab activity, and several activities within
I am trying to use GSON in Android app but it causes a crash.
The android app reads from database but doesnt write anything to DB, the app

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.