Did you check your logcat output? It will give you more details on the
error.
If you aren't able to resolve it from there, please post again with the
logcat output.

2008/9/18 rukesh <[EMAIL PROTECTED]>

>
> I m Rupesh Kumar.
> I m trying to build a   simple android application by sing eclips. The
> java code for that project is as below
>
> x.java
>
> package x.y.z;
>
> import x.y.z.R;
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
> import android.widget.EditText;
> import android.widget.TextView;
>
>
> public class z extends Activity {
>    /** Called when the activity is first created. */
>
>    private EditText inputbox;
>        private TextView ans;
>    public void onCreate(Bundle savedInstanceState) {
>        super.onCreate(savedInstanceState);
>        setTheme(android.R.style.Theme_Dialog);
>        inputbox=(EditText)findViewById(R.id.editor);
>        inputbox.setText("");
>        ans=(TextView)findViewById(R.id.msg);
>        Button b = (Button)findViewById(R.id.b);
>
>        b.setOnClickListener(new Button.OnClickListener()
>        {
>                public void onClick(View v)
>             {
>                        ans.setText("WelCome"+inputbox.getText());
>                inputbox.setText("");
>             }
>        });
>        setContentView(R.layout.main);
>     }
>
> }
>
>
>
> and
> main. xml file is  as below
> <?xml version="1.0" encoding="utf-8"?>
> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
>    android:orientation="vertical"
>    android:layout_width="fill_parent"
>    android:layout_height="wrap_content"
>    android:paddingLeft="8px"
>    android:paddingRight="8px"
>    >
>    <LinearLayout
>    android:layout_width="wrap_content"
>    android:layout_height="wrap_content"
>    android:orientation="vertical">
> <TextView  android:id="@+id/msg"
>    android:layout_width="fill_parent"
>    android:layout_height="wrap_content"
>    android:text="Enter Your Name:-"
>    />
>  <EditText android:id="@+id/editor"
>    android:layout_width="fill_parent"
>    android:layout_height="50px"
>    android:capitalize="sentences"
>    android:layout_weight="1" >
>   <requestFocus />
> </EditText>
>
> <Button id="@+id/b"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_weight="10"
> android:layout_alignParentRight="false"
> android:layout_marginLeft="100px"
> android:text="Display" />
> <ToggleButton
>  android:text="HelloRupesh"
>  android:layout_width="wrap_content"
>  android:layout_height="wrap_content" />
>   <ImageButton
>     android:layout_width="wrap_content"
>     android:layout_height="wrap_content"
>     android:layout_below="@id/b"
>     android:layout_toLeftOf="@id/b"
>     android:layout_alignTop="@id/b"
>     android:src="@android:drawable/sym_action_call" />
>
>       <ImageView
>       android:src="@drawable/x"
>       android:adjustViewBounds="true"
>       android:maxWidth="30mm"
>       android:maxHeight="600mm"
>       android:layout_width="wrap_content"
>       android:layout_height="wrap_content" />
>     <FrameLayout
>             android:layout_width="fill_parent"
>             android:layout_height="0dip"
>             android:layout_weight="1" >
>        <ListView android:id="@android:id/list"
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:drawSelectorOnTop="true"/>
>       <TextView android:id="@+id/empty"
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:text="dfgffhg"/>
>    </FrameLayout>
>  </LinearLayout>
> </ScrollView>
>
>
> But when we run the project it gives the error as ::: This application
> has stopped nexpectedly. plese try again.
>
> I want soltion of this problem plz help me.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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