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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:01:10+00:00 2026-05-24T22:01:10+00:00

–The anonymous answer is my answer that I solved this issue with.– I have

  • 0

–The anonymous answer is my answer that I solved this issue with.–

I have been writing an app for Android, all is working well in Honeycomb, but not playing nice on my FroYo & Gingerbread devices (opposite of what you’d expect right).

Here is the code that I believe is causing the issue:

@Override
protected void onStart() {
    int versionNumber = Integer.valueOf(android.os.Build.VERSION.SDK);
    if (versionNumber == 11) {
        super.onStart();
        ActionBar actionBar = this.getActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);
    }
}

Here I implement the ActionBar’s icon-up-to-home ability, I added the versionNumber variable as I believed the lack of an ActionBar in pre-Honyecomb devices was causing the issue when the activity was run, but it still crashes and I believe this is the issue, although I am terrible with debugging and don’t understand anything I am given by logcat.

Edit: logcat – I hope I got the right section?!

08-20 17:21:41.326: WARN/ActivityManager(2707): Trying to launch
com.squirculardesign.android.pixel/.About 08-20 17:21:41.346:
INFO/dalvikvm(4059): Could not find method
com.squirculardesign.android.pixel.About.getActionBar, referenced from
method com.squirculardesign.android.pixel.About.onStart 08-20
17:21:41.346: WARN/dalvikvm(4059): VFY: unable to resolve virtual
method 54: Lcom/squirculardesign/android/pixel/About;.getActionBar
()Landroid/app/ActionBar; 08-20 17:21:41.346: DEBUG/dalvikvm(4059):
VFY: replacing opcode 0x6e at 0x0011 08-20 17:21:41.346:
DEBUG/dalvikvm(4059): VFY: dead code 0x0014-0018 in
Lcom/squirculardesign/android/pixel/About;.onStart ()V 08-20
17:21:41.386: INFO/ALSAModule(2588): Initialized ALSA PLAYBACK device
hifi 08-20 17:21:41.386: WARN/AudioFlinger(2588): write blocked for
108 msecs, 3 delayed writes, thread 0x5e758 08-20 17:21:41.406:
DEBUG/dalvikvm(4059): GC_EXTERNAL_ALLOC freed 38K, 52% free
2621K/5379K, external 190K/518K, paused 36ms 08-20 17:21:41.596:
INFO/AudioFlinger(2588): stop output streamType (0, 1) for 1 08-20
17:21:41.596: DEBUG/AudioHardwareYamaha(2588):
AudioStreamOut::setParameters(keyValuePairs=”stop_output_streamtype=1″)
08-20 17:21:42.096: ERROR/yamaha::media::Parameters(2588): SalesCode =
OPS 08-20 17:21:42.671: ERROR/lights(2707): write_int: path
/sys/devices/virtual/misc/melfas_touchkey/brightness, value 2 08-20
17:21:42.671: WARN/PowerManagerService(2707): Timer 0x7->0x3|0x3 08-20
17:21:42.671: INFO/PowerManagerService(2707): Ulight 7->3|0 08-20
17:21:42.671: DEBUG/PowerManagerService(2707): setLightBrightness :
mButtonLight : 0 08-20 17:21:43.666: INFO/ALSAModule(2588): Terminated
ALSA PLAYBACK device hifi 08-20 17:21:44.086:
ERROR/yamaha::media::Parameters(2588): SalesCode = OPS 08-20
17:21:51.181: WARN/ActivityManager(2707): Launch timeout has expired,
giving up wake lock! 08-20 17:21:51.336: WARN/ActivityManager(2707):
Activity idle timeout for HistoryRecord{40a6f0a8
com.squirculardesign.android.pixel/.About} 08-20 17:21:56.456:
DEBUG/dalvikvm(2929): GC_EXPLICIT freed 672K, 53% free 3917K/8327K,
external 12588K/12670K, paused 121ms 08-20 17:22:01.876:
INFO/StatusBarPolicy(2834): onSignalStrengthsChanged 08-20
17:22:04.006: DEBUG/BatteryService(2707): update start 08-20
17:22:04.011: ERROR/BatteryService(2707): TMU status = 0 08-20
17:22:04.011: DEBUG/BatteryService(2707): updateBattery level:79
scale:100 status:2 health:2 present:true voltage: 4050 temperature:
270 technology: Li-ion AC powered:false USB powered:true icon:17302229

  • 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-24T22:01:12+00:00Added an answer on May 24, 2026 at 10:01 pm

    This always seems to happen, I ask the question and the problem becomes clearer in my mind after having explained it so someone not in the context could understand…

    The fix I found was:

    //Sets the icon to 'go home' button
    @Override
    protected void onStart() {
        int versionNumber = Integer.valueOf(android.os.Build.VERSION.SDK);
        if (versionNumber >= 11) {
                super.onStart();
                ActionBar actionBar = this.getActionBar();
                actionBar.setDisplayHomeAsUpEnabled(true);
        }
        else {
                super.onStart();
        }
    }
    

    This fixes the problem in both Gingerbread & FroYo, the difference is that super.onStart(); us triggered no matter what.

    For those of you who are inevitably going to comment on my hackish/sticky tape fix: This particular App does not need an ActionBar always, I was just using the ActionBar items in Honeycomb as it has become the UI practice to get more actions. This is why I did not implement an Ac

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

Sidebar

Related Questions

Have a webpage that will be viewed by mainly IE users, so CSS3 is
i have this code: <?php $valid_ext = array(pdf, doc); $args = array( 'post_type' =>
My NSXMLParser breaks on this string: <title>AAA &#8211; BCDEFGQWERTYUIO</title> I parsed it in this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am writing an app with both english and french support. The app requests
I have a PHP application that stores PHP datetime to my MySQL table. I
So to start, I have an array of XML files. These files need to
i have a text file with the following data: Calculated Concentrations 30.55 73.48 298.25
I was beta-testing my iPhone App (not through xcode), and the app crashed. I
I need a function that will clean a strings' special characters. I do NOT

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.