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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:13:27+00:00 2026-05-29T23:13:27+00:00

Im a newbie to android and with the help of some experts i write

  • 0

Im a newbie to android and with the help of some experts i write some code for displaying texts tableview in android.

Here is compiling without any errors but the app is not launching and the message “Unfortunately stopped working” error is showing.

HellotableActivity.java
import android.app.Activity;
import android.os.Bundle;

public class HelloTableLayoutActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:stretchColumns="1" >

    <TableRow>
        <TextView
            android:layout_column="1"
            android:text="@string/Open..."
            android:padding="3dip" />
        <TextView
            android:text="@string/sujiO"
            android:gravity="right"
            android:padding="3dip" />
    </TableRow>

    <TableRow>
        <TextView
            android:layout_column="1"
            android:text="@string/Save..."
            android:padding="3dip" />
        <TextView
            android:text="@string/CtrlS"
            android:gravity="right"
            android:padding="3dip" />
    </TableRow>

</LinearLayout>

strings.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello World, HelloTableLayoutActivity!</string>
    <string name="app_name">HelloTableLayout</string>
    <string name="Open...">HelloTableLayout</string>
    <string name="sujiO">HelloTableLayout</string>
    <string name="Save...">HelloTableLayout</string>
    <string name="CtrlS">HelloTableLayout</string>
</resources>

Can anyone please help me with where im going wrong in this case.Thanks in advance.

  • 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-29T23:13:28+00:00Added an answer on May 29, 2026 at 11:13 pm

    TableRow and TableView don’t work in LinearLayout, use TableLayout instead.

    See the Table Layout example, which demonstrates very well how to use a TableLayout.

    By the way, you cannot use dots in string names. How would you refer them in Java? I think standard is lowercase separated with underscores. (Dev Guide Reference)

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

Sidebar

Related Questions

Android newbie here. I'm using this tutorial to show some rows that I fetch
I'm newbie to Android development. I'm having problem here and hope someone could help
i am newbie for Android Development. i don't have any idea for creating Scientific
Im still a newbie in android, would appreciate your help as I couldnt find
I'm a newbie in android. Could anyone help me to find out tutorials which
Im a newbie in android development and thats why im asking you experts such
I'm a newbie for Android and I need help regarding this issue. I am
I am a newbie in android and I have a source code downloaded but
Android developer newbie here. I am trying to develop a GUI wrapper in Android
I am newbie in Android so anyone please help me to solve my problem.

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.