[android-developers] Re: Preventing dialog auto-dismiss on button click

2013-10-15 Thread MobileDataSys
> > Mark Carter, > Thank you for the workaround, this was driving me nuts. I just did one thing slightly different. Since the DialogInterface.OnClickListener does not get used I just set it to null like this: dialog.setButton(ProgressDialog.BUTTON_NEGATIVE, getString(R.string.cancel), (DialogI

[android-developers] Determining the current foreground activity

2010-04-05 Thread MobileDataSys
Is there a way for a background thread to determine if an activity within the same process is the current activity? I have a subscription based application with a trial period that periodically updates information on a background thread. If the background thread detects that the trial period has e

[android-developers] Bug in 2.0 GridView

2010-03-17 Thread MobileDataSys
My application uses a GridView with an adapter backed by an array that implements BaseAdapter. I have a custom layout/view that displays an image and/or text for the grid cells. When data in the array changes, the GridView calls onLayout for all but one of the displayed grid cells. The cell that is

[android-developers] Re: No feedback when touch screen used for long press

2009-01-09 Thread MobileDataSys
Additional information: I modeled my list after the efficient adapter sample in APIDemos from the SDK. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

[android-developers] No feedback when touch screen used for long press

2009-01-09 Thread MobileDataSys
I have a class that extends ListActivity which calls getListView ().setOnCreateContextMenuListener(this); and overrides onCreateContextMenu() and onContextItemSelected. If I use the D-Pad to select and press and hold an item in the list, the item background changes from black to orange and then g