[android-developers] Re: Dialog and Progress Dialog issues on Orientation Change

2011-06-20 Thread sahana uday
in onCreate, at least not without checking to see whether this Activity has already been started/destroyed due to rotation. See #getLastNonConfigurationInstance. On Jun 20, 1:52 pm, sahana uday sahanau...@gmail.com wrote: Hi, I understood what you were trying to say. Here's what I;'m doing now

[android-developers] Re: Dialog and Progress Dialog issues on Orientation Change

2011-06-20 Thread sahana uday
. On Jun 20, 1:52 pm, sahana uday sahanau...@gmail.com wrote: Hi, I understood what you were trying to say. Here's what I;'m doing now: class ConnectionsListAddScreen extends Activity{        public void onCreate(Bundle savedInstState){             super.onCreate(savedInstState

[android-developers] Re: Dialog and Progress Dialog issues on Orientation Change

2011-06-19 Thread sahana uday
) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) Since we are using showDialog(...) and onCreateDialog(...) for ProgressDialog display, then shouldn't Android keep a reference of same on orientation change. Can you let me know if there are any mistakes in my code or solution to my problem asap. On Jun 16, 4:02 pm, sahana

[android-developers] Determine TextView Height

2011-06-16 Thread sahana uday
Hi, How to compute TextView Height before its laid out on screen? I'm not aware how we can use getPaint().ascent() or descent() method for computing height? Can you please provide an example?? Thanks, Sahana -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Dialog and Progress Dialog issues on Orientation Change

2011-06-16 Thread sahana uday
Hi, Yes I'm sending the request to server in onCreateDialog(), but its an AsyncTask. In onPreExecute() show the progress dialog and onPostExecute() cancel the progress dialog. Off late I have another issue in computing textview height, I have posted this issue on a separate thread also. The

[android-developers] Dialog and Progress Dialog issues on Orientation Change

2011-06-06 Thread sahana uday
Hi, I'm using showDialog() and onCreateDialog() methods for displaying Dialog and Progress Dialog. But on orientation change it recreates the Dialog and Progress Dialog, due to which I'm facing the below problem: 1. Related to Progress Dialog: Current Behavior: I'm using Progress Dialog to send

[android-developers] Dialog and Progress Dialog issues on Orientation Change

2011-06-01 Thread sahana uday
Hi, -Display the dialog on a button click (now we are in portrait mode). -Change to Landscape mode, dialog still appears. -Change back to Portrait mode, dialog continues to remain. -Now press Back key dialog is removed. -Change to Landscape mode again dialog is still visible in Landscape mode,