I am guessing that you forgot to set the manifest.xml activity, intent
to LAUNCHER.

If you do not set it, the opening activity is unknown, AND  it fails
silently.

Here is what you (may) need:

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

:) Droid


On Sep 2, 3:24 pm, Lidoval <[email protected]> wrote:
> Hi All,
> this is my first contact in the forum.
>
> Well, here is the question: when I run the simple code below, instead
> the result be a string "Hello Android", I see a scream of a  phone and
> a text: "A N D R O I D _". And doesn't matter the code I do, the
> result is the same. What's wrong?
>
> package com.exemplo;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class HelloActivity extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>                TextView tv = new TextView(this);
>                tv.setText("Hello, Android");
>                setContentView(tv);
>
>     }
>
>
>
> }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to