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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:20:27+00:00 2026-06-05T21:20:27+00:00

I get some wierd logs, which obviously only occurs on Android-Devices with Versions below

  • 0

I get some wierd logs, which obviously only occurs on Android-Devices with Versions below 3(checked with emulator).
When you change the orientation and onCreate() or onRestoreInstanceState() is called with an Bundle that is not null it crashed

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_menu);}
    if (savedInstanceState != null) {
        mSlug = savedInstanceState.getString(KEY_SLUG, null);
    }
}@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putString(KEY_SLUG, mSlug);
}@Override
protected void onRestoreInstanceState(Bundle outState) {
    super.onRestoreInstanceState(outState);
    if (outState != null) {
        mSlug = outState.getString(KEY_SLUG, mSlug);
    }
}

The LogCat-Log looks like:
https://i.stack.imgur.com/WbivQ.png
Does anybody got clue what is happening here?

  • 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-05T21:20:28+00:00Added an answer on June 5, 2026 at 9:20 pm

    Bundle.getString with 2 arguments is only available in API level 12 and later. You have to specify the default value yourself, rather than passing it as an argument.

    You can check this yourself in the future by clicking the “Filter by API level” dropdown and selecting the appropriate API level in the upper right hand of the documentation

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

Sidebar

Related Questions

I get some weird overflow whenever I want to fit an object inside foreignObject
I've stuck into some weird problem. Here is the code AccountsController.cs // GET /api/accounts
I get some data from an PHP-Script via AJAX and want to have the
i get some Color Value like #FF6100. now i was need Covert #FF6100 to
I get some datetime (ExactDate) from a db. These time are in US timezone,
For some reason I get some warnings about non dll-interface class when building with
I was hoping to get some help with my SQL Server script. Basically, I
I am trying to get some jQuery to disable the confirm button on my
I am trying to get some comments off the car blog, Jalopnik . It
I have a wierd problem with threading in an ASP.NET application. For some reason,

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.