First, I'd say log would tell everything. One thing more, Check your
main.xml file again.

On Aug 30, 4:02 pm, Dubler <[email protected]> wrote:
> Hi, always when i add a button, there is crash and no informations
> why... that is my code:
>
> package org.me.nauka3;
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
>
> public class Nauka3Activity extends Activity {
>         private Button closeButton;
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         this.setContentView(R.layout.main);
>         this.closeButton = (Button)this.findViewById(R.id.button1);
>         this.closeButton.setOnClickListener(new OnClickListener() {
>           @Override
>           public void onClick(View v) {
>             finish();
>           }
>         });
>
> }
> }
>
> what's wrong????

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