[android-developers] Re: showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread Anton Pirker
I have more information: The exception is thrown on my htc magic with android 1.5 But on a htc tattoo with android 1.6 everything works fine. The code is compiled with Android SDK 1.5r2 Maybe there is a problem with the sdk version? I need to get it to work on android 1.5, so i thought the

Re: [android-developers] Re: showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread TreKing
I've seen this error when trying to set the view on a Dialog after it's been created. Setting the view as part of the construction process using the Builder makes it go away. Maybe try creating the ProgressDialog with the constructor first (new ProgressDialog(title, msg, ...), then using the

Re: [android-developers] Re: showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread Anton Pirker
You are awesome! Calling the .show() method was completely stupid. In your onCreateDialog() callback method you just create the dialog and then return it. The rest is done by Android. Now everything works fine! Thanks a million, Anton TreKing wrote: I've seen this error when trying to