[android-developers] custom view does not display properly after closing and reloading app

2010-11-12 Thread equity
I am having trouble with a custom view displaying properly. When the view is first loaded (meaning the app is not cached in memory), the view displays OK. However, when the app is closed with the back button and then reloaded, the view is a black screen and does not display as intended. The

[android-developers] Re: Show Progressbar while getting records from a cursor

2010-11-12 Thread equity
Why don't you create a handler inside of the main activity like this Hander mHandler = new Handler(); Move the anonymous inner Runnable class (which dismisses the dialog) as a named private subclass of the activity called something like HandlerHelper. Then call mHandler.post(new

[android-developers] OnTouchListener does not receive all MotionEvents in MapActivity

2010-08-25 Thread equity
Within a MapActivity on an Eclair test phone, I have installed an OnTouchListener to only listen for screen taps. If I just tap the screen it receives events OK. I can keep doing this indefinitely, and it works OK. I am not interested in anything fancy. I don't care about move events or

[android-developers] OnTouchListener does not receive all MotionEvents in MapActivity

2010-08-25 Thread equity
Within a MapActivity on an Eclair test phone, I have installed an OnTouchListener to only listen for screen taps. If I just tap the screen it receives events OK. I am not interested in anything fancy. I don't care about move events or guessture detection, just taps. However, after I perform a

[android-developers] OnTouchListener does not receive all MotionEvents in MapActivity

2010-08-25 Thread equity
Within a MapActivity on an Eclair test phone, I have installed an OnTouchListener to only listen for screen taps. If I just tap the screen it receives events OK. However, after I perform a multi-touch activity to expand or contract the map view, the OnTouchListener no longer receives any