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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:07:10+00:00 2026-06-01T21:07:10+00:00

The Kindle Fire has a bar at the bottom that includes a home button

  • 0

The Kindle Fire has a bar at the bottom that includes a “home” button and a “back” button.

When I click the “back” button, my app’s “onPause()” event is invoked.

When I click the “home” button, my app crashes. An Android dialog box is displayed. It says my app has stopped unexpectedly. I am presented with a “force close” button.

Sooooo what event do I need to be handling to prevent this. This only happens on my app, not the ones I downloaded, so yeah, it’s me, lol.

Edit

As per this web page, I added events and toasts to the app just to gain some insight into how things work. When I click the Back button, I see the toasts produced by the onPause(), onStop(), and onDestroy() methods. When I click the Home button, there are no toasts, just the crash.

RESOLUTION

Akhil suggested I look at the logcat. I don’t run the emulator since my machine seems understrength for Android development (or perhaps I expect too much from the emulator); it takes forever to start it up. Anyway, after figuring out how to run the emulator (and look at the logcat for the first time, ha) I saw that I was throwing an exception related to serialization. I’m off to solve it now. Thanks Akhil for the kick in the right direction!

Ah, and the emulator did display the onPause() toast when I clicked Home, so reality is still functioning as expected.

FINAL

The error was related to the serialization I added to make the onSaveInstanceState(Bundle savedInstanceState) method work. Basically, my app (and old game I converted to android) wasn’t serializable, therefore this code in onSavedInstanceState() would not compile:

savedInstanceState.putSerializable(GAME, game);

‘game’ is innocuous, so I added “implements Serializable” to Game’s class definition. However, I neglected to add the same to a private class within Game. This is what was causing the exception.

  • 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-01T21:07:12+00:00Added an answer on June 1, 2026 at 9:07 pm

    When you click the “back” button, your app’s “onPause(), onStop(),onDestroy()” events will be invoked.

    When you click the “home” button, your app’s “onPause(), onStop(),” events will be invoked.

    ( This is a general scenario, assuming)
    Put log statements in your onPause(), onStop() and see where you are getting the error.

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

Sidebar

Related Questions

Amazon has the button that opens an app as follows. http://img836.imageshack.us/img836/6829/screenshot20100724at111.png Clicking this button
I need to fire asp.net (link button or Button) click event(server side code) using
I'm porting an app I wrote for the phone/ipad to the kindle fire. The
Disclaimer : this is a strange issue that only happens in a Kindle Fire
I think its time to ask this question since the kindle fire has been
I'm currently looking into getting my android app to work on Kindle Fire. I've
Since Kindle Fire is not on HoneyComb, should I just build a standard app
The default color of the Toast on the Kindle Fire is black text on
The Kindle has lit a personal interest in reading my various content on it,
I want to configure an emulator to be compatible with the Kindle Fire, including

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.