Look at the LogCat info... it will give you the real reason why your app is
force closing...
----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Tue, Nov 17, 2009 at 7:39 AM, jkfalconer <[email protected]> wrote:

> Hello Developers,
>
> I just started programming on Android and I am having a little problem
> displaying text. I am converting some of my old Java programs to
> Android (and keeping text programmatically shown instead of using
> XML).
>
> I get the following message when I try to run it.
>
> "The application Test for sending Text programmatically (process
> text.test.com) has stopped unexpectedly. Please try again."
>
> I would very much appreciate it if someone could guide me here, since
> I've spent several hours trying to figure out what the problem is and
> have little to show.
>
> Thank you,
>
> James
>
> package test.text.com;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class TestThis extends Activity {
>    public TextView tv;
>    // Called when the activity is first created.
>    @Override
>    public void onCreate(Bundle savedInstanceState) {
>        super.onCreate(savedInstanceState);;
>        TextView tv = new TextView(this);
>               setContentView(tv);
>               showText();
>    }
>
>    public void showText() {
>            String testText = ("woot");
>                tv.setText(testText);
>            }
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to