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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:21:47+00:00 2026-05-26T08:21:47+00:00

When I restart my app after its been killed (after an hour or so

  • 0

When I restart my app after its been killed (after an hour or so by android or if I kill it via task killer), the app crashes with the following message:

10-23 09:07:41.120: ERROR/AndroidRuntime(647): FATAL EXCEPTION: main
10-23 09:07:41.120: ERROR/AndroidRuntime(647): java.lang.RuntimeException: Unable to start activity ComponentInfo{ com.test.testapp /com.test.testapp.TestingActivity}: java.lang.NullPointerException
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.os.Handler.dispatchMessage(Handler.java:99)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.os.Looper.loop(Looper.java:123)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.ActivityThread.main(ActivityThread.java:4627)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at java.lang.reflect.Method.invokeNative(Native Method)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at java.lang.reflect.Method.invoke(Method.java:521)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at dalvik.system.NativeStart.main(Native Method)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): Caused by: java.lang.NullPointerException
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at com.test.testapp.TestingActivity.onCreate(TestingActivity.java:178)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-23 09:07:41.120: ERROR/AndroidRuntime(647): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)

I have a timer in that activity and I thought maybe it had something to do with that thread but even if I remove the timer it still crashes. I really can’t figure out what’s wrong here. Any ideas?

Thanks in advance

  • 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-05-26T08:21:47+00:00Added an answer on May 26, 2026 at 8:21 am

    Android will reclaim memory. You need to check it’s not null. It says which line is complaining too

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

Sidebar

Related Questions

When activity is restored after was being killed by the system (I mean app
I am working on an app, which gets a sort of restart with an
Our client's web app restarts suddenly at random intervals. For each restart, we've found
I'm trying to make a console app that would monitor some process and restart
I need to restart the program that im working on after an update has
I want to restart my Service automatically if the application crashes. My ideas are:
I have to implement an app which temporary changes the wallpaper. After some time
I have an app that requires me to take an action after some period
I noticed that the Android Developers Activity section has been updated since I started
Lets say I have an app and within its activity I will register pendingIntent

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.