cindy wrote: > In my application, all the button has Button OnClickListenner, > > createB=(Button)findViewById(R.id.newUser); > createB.setOnClickListener(new createAccount()); > > It works very well in simulator. However, after I load the application > to Gphone, I found the button doesn't always response to "touch". > sometimes I need to touch it many times. What other listenner I need > to add to the button? Why ?
I am not sure what the "Gphone" is. I am assuming you are referring to the T-Mobile G1 or the Android Dev Phone 1. You do not need to add other listeners -- setOnClickListener() should suffice. Perhaps your button is too small, or there is something running on your device that is consuming too much of the available CPU time, or perhaps your device's touchscreen has a defect. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

