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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:05:36+00:00 2026-05-26T03:05:36+00:00

Hey I am building an app in android and its been going well until

  • 0

Hey I am building an app in android and its been going well until today. i made some changes to one of my layout xml files and it doesn’t show any errors for the xml page but when my code runs the setContextView() with that layout file it crashes, the error inst very helpful ( run time exception) so i am pretty sure something is wrong with my xml but ive looked for a few hours now and cant figure it out. any help would be appreciated. thanks

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/createdeerrecordlayout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" 
    android:layout_height="match_parent"
    android:layout_width="match_parent">
    <LinearLayout  
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:id="@+id/titlelayout">
        <TextView
            android:id="@+id/titlelabel"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="@string/newTrophyTitle"
            android:textSize="10pt">
        </TextView>
    </LinearLayout>
    <LinearLayout android:id="@+id/mainlayout" 
        android:layout_width="fill_parent" 
        android:orientation="vertical" 
        android:layout_height="wrap_content">
        <ViewFlipper android:id="@+id/viewflipper" 
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content">
            <ScrollView android:id="@+id/scrollviewbasicinfo"
                 android:layout_width="fill_parent"
                 android:layout_height="fill_parent">
                <RelativeLayout
                       android:layout_width="fill_parent"
                       android:id="@+id/relativebasicinfo"
                       android:layout_height="fill_parent">
                    <EditText
                        android:id="@+id/deerName"
                        android:layout_height="wrap_content"
                        android:hint="@string/newTrophyName"
                        android:inputType="textPersonName"
                        android:layout_width="fill_parent" 
                        android:layout_marginRight="20dip"
                        android:layout_marginLeft="20dip"
                        android:layout_marginTop="50dip">
                    </EditText>
                    <Spinner android:entries="@array/newTrophyBuckScoreTypelist" 
                        android:prompt="@string/newTrophyBuckScoreType" 
                        android:layout_width="wrap_content" 
                        android:layout_height="wrap_content" 
                        android:id="@+id/NewTrophyBuckScoreType" 
                        android:layout_below="@+id/NewTrophyName" 
                        android:layout_alignRight="@+id/NewTrophyName">
                    </Spinner>
                    <Spinner android:layout_below="@+id/NewTrophyName"
                        android:id="@+id/NewTrophyBuckSpecType"
                        android:layout_height="wrap_content"
                        android:prompt="@string/newTrophyBuckSpecType"
                        android:entries="@array/newTrophyBuckSpecTypelist" 
                        android:layout_width="wrap_content"
                        android:layout_marginLeft="20dip">
                    </Spinner>
                    <EditText android:layout_below="@+id/NewTrophyBuckScoreType"
                        android:id="@+id/NewTrophyComment"
                        android:layout_height="wrap_content"
                        android:hint="@string/newTrophyComment"
                        android:inputType="textMultiLine"
                        android:lines="5" 
                        android:layout_width="wrap_content"
                        android:layout_marginRight="20dip"
                        android:layout_marginLeft="20dip">
                    </EditText>
                    <DatePicker android:id="@+id/killDate" 
                        android:layout_width="wrap_content" 
                        android:layout_height="wrap_content" 
                        android:layout_below="@+id/NewTrophyComment" 
                        android:layout_alignLeft="@+id/NewTrophyComment" 
                        android:layout_alignRight="@+id/NewTrophyComment"
                        android:layout_marginRight="20dip"
                        android:layout_marginLeft="20dip">
                    </DatePicker>
                    <Button android:onClick="getPicURLFromGallery" 
                        android:layout_width="wrap_content" 
                        android:text="Upload Picture" 
                        android:id="@+id/getPicButton" 
                        android:layout_height="wrap_content" 
                        android:layout_below="@+id/killDate" 
                        android:layout_alignLeft="@+id/killDate" 
                        android:layout_alignRight="@+id/killDate">
                    </Button>
                </RelativeLayout>
            </ScrollView>
             <ScrollView android:id="@+id/scrollviewmeasure1"
                 android:layout_width="fill_parent"
                 android:layout_height="fill_parent">
                <LinearLayout  
                        android:layout_width="fill_parent"
                        android:orientation="horizontal"
                        android:id="@+id/linearmeasure1"
                        android:layout_height="fill_parent">
                        <TableLayout  
                            android:layout_width="fill_parent"
                            android:id="@+id/tablemeasure1"
                            android:layout_height="fill_parent"
                            android:layout_marginTop="30dip"
                            android:layout_marginLeft="15dip"
                            android:layout_marginRight="15dip"
                            android:layout_marginBottom="30dip">
                            <TableRow>
                            <TextView
                                android:id="@+id/label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Right Antler Points"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.EditNumber android:inputType="numberDecimal" android:hint="No. Points on Right Antler" android:layout_height="wrap_content" android:id="@+id/R_A" android:layout_width="wrap_content"></com.stabe.mtb.EditNumber>
                            </TableRow>
                            <TableRow>
                            <TextView
                                android:id="@+id/label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Left Antler Points"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.EditNumber android:inputType="numberDecimal" android:hint="No. Points on Left Antler" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/L_A"></com.stabe.mtb.EditNumber>
                            </TableRow>
                            <TableRow>
                            <TextView
                                android:id="@+id/label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Tip to Tip Spread"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.SplitMeasure android:layout_height="wrap_content" android:id="@+id/B" android:layout_width="wrap_content"></com.stabe.mtb.SplitMeasure>
                            </TableRow>
                            <TableRow>
                            <TextView
                                android:id="@+id/label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Greatest Spread"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.SplitMeasure android:layout_width="wrap_content" android:id="@+id/C" android:layout_height="wrap_content"></com.stabe.mtb.SplitMeasure>
                            </TableRow>
                            <TableRow>
                            <TextView
                                android:id="@+id/label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Inside Spread of Main Beams"
                                android:textSize="6pt" android:lines="2">
                            </TextView>
                            <com.stabe.mtb.SplitMeasure android:layout_width="wrap_content" android:id="@+id/D" android:layout_height="wrap_content"></com.stabe.mtb.SplitMeasure>
                            </TableRow>
                            <TableRow>
                            <TextView
                                android:id="@+id/label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Spread Credit"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.SplitMeasure android:layout_width="wrap_content" android:id="@+id/SPREAD_CREDIT" android:layout_height="wrap_content"></com.stabe.mtb.SplitMeasure>
                            </TableRow>
                         </TableLayout>
                </LinearLayout>
             </ScrollView>
             <ScrollView android:id="@+id/scrollviewmeasure2"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content">
                 <LinearLayout 
                    android:layout_width="fill_parent"
                    android:orientation="vertical"
                    android:id="@+id/linearmeasure2"
                    android:layout_height="wrap_content">
                    <TableView
                       android:layout_height="fill_parent"
                       android:layout_width="fill_parent"
                       android:layout_marginTop="30dip"
                       android:layout_marginLeft="15dip"
                       android:layout_marginRight="15dip"
                       android:layout_marginBottom="30dip"
                       android:id="@+id/tablemeasure2">
                        <TableRow>
                          <TextView
                            android:id="@+id/columnLeft"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Left"
                            android:textSize="6pt">
                            </TextView>
                            <TextView
                            android:id="@+id/columnRight"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Right"
                            android:textSize="6pt">
                            </TextView>
                         </TableRow>
                        <TableRow>
                          <TextView
                            android:id="@+id/mainlabel"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Main Beam"
                            android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure      
                            android:id="@+id/F"
                            android:layout_height="wrap_content"
                            android:inputType="numberDecimal"
                            android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/g1label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G1"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure      
                                android:id="@+id/G1"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                        </TableRow>
                        <TableRow>
                            <TextView
                                android:id="@+id/g2label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G2"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure          
                                android:id="@+id/G2"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                        <TableRow>
                        <TextView
                                android:id="@+id/g3label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G3"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure              
                                android:id="@+id/G3"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                        <TableRow>
                        <TextView
                                android:id="@+id/g4label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G4"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure                  
                                android:id="@+id/G4"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/g5label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G5"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure              
                                android:id="@+id/G5"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                            <TableRow>
                            <TextView
                                android:id="@+id/g6label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G6"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure                  
                                android:id="@+id/G6"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/g7label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="G7"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure              
                                android:id="@+id/G7"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/h1label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="H1"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure              
                                android:id="@+id/H1"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/h2label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="H2"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure          
                                android:id="@+id/H2"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/h3label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="H3"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure              
                                android:id="@+id/H3"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>
                         </TableRow>
                         <TableRow>
                            <TextView
                                android:id="@+id/h4label"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="H4"
                                android:textSize="6pt">
                            </TextView>
                            <com.stabe.mtb.Measure          
                                android:id="@+id/H4"
                                android:layout_height="wrap_content"
                                android:inputType="numberDecimal"
                                android:layout_width="fill_parent">
                            </com.stabe.mtb.Measure>    
                        </TableRow>
                    </TableView>        
                </LinearLayout>
             </ScrollView>
             <LinearLayout  
                android:layout_width="fill_parent"
                android:orientation="vertical"
                android:id="@+id/linearsubmit"
                android:layout_height="fill_parent">
                <TextView
                    android:id="@+id/SubmitDeerLabel"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_gravity="center"
                    android:text="@string/submitDeerTitleText"
                    android:textSize="10pt">
                </TextView>
                <Button
                    android:id="@+id/SubmitDeerButton"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Submit"
                    android:onClick="SubmitDeer"/>
                <CheckBox android:id="@+id/EmailCheckBox"
                    android:text="Email"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>
                <CheckBox android:id="@+id/FacebookCheckBox"
                    android:text="Facebook"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>
                <CheckBox android:id="@+id/TwitterCheckBox"
                    android:text="Twitter"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>
            </LinearLayout>  
        </ViewFlipper>
    </LinearLayout>
</LinearLayout>
  • 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-26T03:05:37+00:00Added an answer on May 26, 2026 at 3:05 am

    I’m not sure why you have TableView and /TableView tags. Should this be TableLayout? This might cause runtime error and not be caught beforehand but without seeing more code, I could not comment further.

    Are there any further error messages (from logcat) that point to error?

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

Sidebar

Related Questions

Hey all, I've been building an app for a client and part of it
Hey all- I'm working on some web flows for a Grails app we're building.
Hey all, trying to learn objective-c. It was going quite well, until I realized
Hey guys, I'm building an iPhone app for my company and in one of
Hey, I'm building just a basic app with text, urls, pictures, and some buttons.
EDIT: This problem has been solved. See below. Hey all. I'm building an iPhone
Hey I'm building an app that will allow a user to log into a
Hey. I urgently need some help on building up a complete table using VBA.
Hey. I'm building an iPad app and I need to mark specific points on
hey guys so im building an application and one of teh features it will

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.