android - Button got stuck -


i creating app has button performs functions on data.

it working data data when button pressed button getting stuck in button remains in pressed state.

what reasons button remain in pressed state?

the time button resumes pressed state when code on listener run. doing calculation intensive work in button (in main thread). if if click anywhere else in application should see anr (application not responding) message closes application. reason switch state manually , forget cancel on over touch listener (if have one)

http://www.youtube.com/watch?v=uapv-zmj51g


Comments