I have an application in which a progress dialog is shown. The progress dialog is working properly on any one orientation. But when I change the orientation during the progress dialog is on progress mode, then the app crashes.
So, now how can i fix this problem?
Update
Hello, Thanks for your answer. Here I have extracted the progress dialog code from the whole project and there is no problem. You have said to see the Log cat file. But I do not understand the Logcat file. Actually what type of error message will be on the Logcat file if the Activity.onCreate() function will create any problem?
If you have any senario please help me.
Best Regards, gsmaker
Most chances, this is not the ProgressDialog fault. Take into an account that Activity.onCreate() is called on every orientation change. In any case, look at LogCat output, you will get more information about the FC.
in your AndroidManifest.xml, add in the used activity this:
android:screenOrientation="nosensor" android:configChanges="keyboardHidden|orientation"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With