Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and view the stack trace associated with your "force close".

On Tue, Jun 28, 2011 at 9:51 AM, gaara <[email protected]> wrote:
> Hi group,
> why when i use my_button.setOnClickListener(this) ; with this refers
> to my current Activity ,i got an error of Force close, what's the
> difference on having the listener directly on the button and the
> listener on the activity then override the onClick method;
> Peace,
> Gaara
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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