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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:12:25+00:00 2026-06-01T20:12:25+00:00

I’m VERY new to android programming, so please forgive. I have an assignment in

  • 0

I’m VERY new to android programming, so please forgive.

I have an assignment in which I need to add a text box to the xml of the current codebase and then change a variable in the code when the user edits the text box.

So I added the text box, and it’s showing up fine, but when I try to initialize it I get an error that the app has stopped unexpectedly and a bunch of stuff in LogCat.

CLARIFICATION: only the last textbox, intersymboltime, causes the errors. If I comment out its initialization everything runs fine.

a sample of my xml (first two are from the existing code, for comparison):

    <TextView
        android:id="@+id/textView3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/hostText"
        android:layout_marginTop="5dp"
        android:text="@string/portlabel"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <EditText
        android:id="@+id/portText"
        android:layout_width="110dp"
        android:layout_height="35dp"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/textView3"
        android:hint="@string/portHint"
        android:inputType="number|textNoSuggestions" />

    <TextView
        android:id="@+id/textView4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/portText"
        android:layout_marginTop="14dp"
        android:text="@string/symboltime" />

    <EditText
        android:id="@+id/intersymboltime"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/textView4"
        android:ems="10"
        android:hint="@string/symboltimehint"
        android:inputType="number" />

in my onCreate (first two calls are in existing code, for comparison):

    ((TextView)findViewById(R.id.hostText)).setText(mServerHost);
    ((TextView)findViewById(R.id.portText)).setText(new Integer(mServerPort).toString()); 
    ((TextView)findViewById(R.id.intersymboltime)).setText(mClient.portToIntersymbolTime(mServerPort, 1));

portToIntersymbolTime returns as expected.

what am I missing?!

EDIT: my logcat logs:

04-13 18:10:17.556: W/ResourceType(716): No package identifier when getting value for resource number 0x00000100
04-13 18:10:17.566: D/AndroidRuntime(716): Shutting down VM
04-13 18:10:17.566: W/dalvikvm(716): threadid=1: thread exiting with uncaught exception (group=0x40015560)
04-13 18:10:17.576: E/AndroidRuntime(716): FATAL EXCEPTION: main
04-13 18:10:17.576: E/AndroidRuntime(716): java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.uw.cs.cse461.sp12.timingframing/edu.uw.cs.cse461.sp12.timingframing.TimingFramingAndroidActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x100
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.os.Looper.loop(Looper.java:123)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.ActivityThread.main(ActivityThread.java:3683)
04-13 18:10:17.576: E/AndroidRuntime(716): at java.lang.reflect.Method.invokeNative(Native Method)
04-13 18:10:17.576: E/AndroidRuntime(716): at java.lang.reflect.Method.invoke(Method.java:507)
04-13 18:10:17.576: E/AndroidRuntime(716): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-13 18:10:17.576: E/AndroidRuntime(716): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-13 18:10:17.576: E/AndroidRuntime(716): at dalvik.system.NativeStart.main(Native Method)
04-13 18:10:17.576: E/AndroidRuntime(716): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x100
04-13 18:10:17.576: E/AndroidRuntime(716): at android.content.res.Resources.getText(Resources.java:201)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.widget.TextView.setText(TextView.java:2857)
04-13 18:10:17.576: E/AndroidRuntime(716): at edu.uw.cs.cse461.sp12.timingframing.TimingFramingAndroidActivity.onCreate(TimingFramingAndroidActivity.java:39)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-13 18:10:17.576: E/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
04-13 18:10:17.576: E/AndroidRuntime(716): … 11 more

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

    Posting your logcat would help narrow it down for sure. The first place I would look is what is the return type of mClient.portToIntersymbolTime(mServerPort, 1). EditText requires type CharSequence. I am sure you need to use .toString or something like that.

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

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I have a reasonable size flat file database of text documents mostly saved in
I have thousands of HTML files to process using Groovy/Java and I need to
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.