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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:09:59+00:00 2026-05-24T14:09:59+00:00

My prototype android app (I should mention it’s my first) crashes whenever I run

  • 0

My prototype android app (I should mention it’s my first) crashes whenever I run it through eclipse, as soon as it opens. I have searched this site and many others and this problem seems common, but not in the way it is for me. I have checked the AndroidManifest.xml file and am fairly sure it is correct, but I attach it here anyway.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.cyphr"
  android:versionCode="1"
  android:versionName="1.0">
<uses-sdk android:minSdkVersion="7" />

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".NSBHSActivity"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".DayActivity"
              android:label="@string/app_name">
    </activity>
    <activity android:name=".WeekActivity"
              android:label="@string/app_name">
    </activity>

</application>

Here are the logcat messages, from the program starting to it dying, as far as I can tell.

08-09 18:23:57.342: INFO/dalvikvm(24229): Debugger has detached; object registry had 1 entries
08-09 18:23:57.358: ERROR/AndroidRuntime(24229): ERROR: thread attach failed
08-09 18:23:57.756: INFO/ActivityManager(1194): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.cyphr/.NSBHSActivity }
08-09 18:23:57.795: INFO/dalvikvm(24239): Debugger has detached; object registry had 1 entries
08-09 18:23:57.819: ERROR/AndroidRuntime(24239): ERROR: thread attach failed
08-09 18:23:57.897: INFO/ActivityManager(1194): Start proc com.cyphr for activity com.cyphr/.NSBHSActivity: pid=24246 uid=10103 gids={}
08-09 18:23:57.959: INFO/foo(1194): ********************** resuming: 1143348080
08-09 18:23:58.155: ERROR/dalvikvm(24246): Stack overflow on calling method:
08-09 18:23:58.155: ERROR/dalvikvm(24246):       android.content.res.AssetManager.loadResourceValue()
08-09 18:23:58.155: ERROR/dalvikvm(24246):       prototype     : (ILandroid/util/TypedValue;Z)I
08-09 18:23:58.155: ERROR/dalvikvm(24246):       shorty        : IILZ
08-09 18:23:58.155: ERROR/dalvikvm(24246):       registersSize : 4
08-09 18:23:58.155: ERROR/dalvikvm(24246):       insSize       : 4
08-09 18:23:58.178: ERROR/dalvikvm(24246):       outsSize      : 0
08-09 18:23:58.178: ERROR/dalvikvm(24246):   method 0x4108cf64, rPC 0x4205308e, self->curFrame 0x4104c224
08-09 18:23:58.178: ERROR/dalvikvm(24246):   rGLUE 0xbef439f8:
08-09 18:23:58.178: ERROR/dalvikvm(24246):     rGLUE->pc 0x41fe8b68, rGLUE->fp 0x4104eeb8, rGLUE->method 0x4108d5b4:
08-09 18:23:58.178: ERROR/dalvikvm(24246):       android.content.res.AssetManager.getResourceValue()
08-09 18:23:58.178: ERROR/dalvikvm(24246):       prototype     : (ILandroid/util/TypedValue;Z)Z
08-09 18:23:58.178: ERROR/dalvikvm(24246):       shorty        : ZILZ
08-09 18:23:58.178: ERROR/dalvikvm(24246):       registersSize : 8
08-09 18:23:58.178: ERROR/dalvikvm(24246):       insSize       : 4
08-09 18:23:58.178: ERROR/dalvikvm(24246):       outsSize      : 4
08-09 18:23:58.178: INFO/dalvikvm(24246): Stack overflow, expanding (0x4104c200 to 0x4104c000)
08-09 18:23:58.178: INFO/dalvikvm(24246): Current stack size is 12288
08-09 18:23:58.178: INFO/dalvikvm(24246): "main" prio=5 tid=3 RUNNABLE
08-09 18:23:58.178: INFO/dalvikvm(24246):   | group="main" sCount=0 dsCount=0 s=N obj=0x4001e368 self=0xbd90
08-09 18:23:58.178: INFO/dalvikvm(24246):   | sysTid=24246 nice=0 sched=0/0 cgrp=unknown handle=-1343993120

onCreate() from NSBHSActivity, as requested:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Resources res = getResources(); // Resource object to get Drawables
    TabHost tabHost = getTabHost();  // The activity TabHost
    TabHost.TabSpec spec;  // Reusable TabSpec for each tab
    Intent intent;  // Reusable Intent for each tab

    // Create an Intent to launch an Activity for the tab (to be reused)
    intent = new Intent().setClass(this, DayActivity.class);

    // Initialize a TabSpec for each tab and add it to the TabHost
    spec = tabHost.newTabSpec("day").setIndicator("Day",
                      res.getDrawable(R.drawable.ic_tab_day))
                  .setContent(intent);
    tabHost.addTab(spec);

    // Do the same for the other tabs
    intent = new Intent().setClass(this, WeekActivity.class);
    spec = tabHost.newTabSpec("week").setIndicator("Week",
                      res.getDrawable(R.drawable.ic_tab_day))
                  .setContent(intent);
    tabHost.addTab(spec);

    tabHost.setCurrentTab(1);

}

Comment if you require extra information. Also, as I said, this is my first Android app, but I have good experience in Java.

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

    I finally found out it was because of the image file names. They needed to be ic_tab_day_grey.png and ic_tab_day_white.png for the state list to accept them. Yay!
    Thanks everyone for your help!

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

Sidebar

Related Questions

I have an app that is available from the Android Market. Some users have
We have just started Android Tablet development. I need to prototype for 7in and
I'm writing an application in PhoneGap that I want to run on iOS, Android,
I've designed my database diagram(11 entites) for my prototype application. I need to have
I want to start an app to be used by an Android smartphone to
@ref prototype.js I have seen this Prototype.js ajax syntax used everywhere. However I have
I am building a prototype of a windows phone 7 app using d:DesignData in
For my Android game prototype, I'm playing back .wav resources using: MediaPlayer mp =
I have used a prototype plugin which filters the contents of a dropdown as
I am building a prototype app with OpenCV. The app currently does not do

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.