I am using Android version 2.1 with API Level 7. I faced with this (or similar) problem and solved by using this:
Dialog dialog = new Dialog(this);
instead of this:
Dialog dialog = new Dialog(getApplicationContext());
Hope this helps 🙂
More Related Contents:
- ProgressDialog in AsyncTask
- Custom Drawable for ProgressBar/ProgressDialog
- Android Fragments. Retaining an AsyncTask during screen rotation or configuration change
- Show ProgressDialog Android
- How to use AsyncTask to show a ProgressDialog while doing background work in Android? [duplicate]
- Updating progress dialog in Activity from AsyncTask
- How to display progress dialog before starting an activity in Android?
- ProgressDialog is deprecated.What is the alternate one to use?
- ProgressDialog not shown when AsyncTask.get() called [duplicate]
- Add a Progress Bar in WebView
- How to center progress indicator in ProgressDialog easily (when no title/text passed along)
- How to show progress dialog in Android?
- Prevent ProgressDialog from being dismissed when I click the search button (Android)
- Android: ProgressDialog doesn’t show
- Why the background of ProgressDialog doesn’t set to the transparent?
- Android Gradle plugin 0.7.0: “duplicate files during packaging of APK”
- How to get current memory usage in android?
- Change application’s starting activity
- Good way of getting the user’s location in Android
- How to detect power connected state?
- Why use armeabi-v7a code over armeabi code?
- Google Geocoder service is unavaliable (Coordinates to address)
- How to update Google Play Services for Android Studio 2.2 emulators?
- Android MediaRecorder – “start failed: -19”
- Add gradient to imageview
- React-Native :java.lang.UnsatisfiedLinkError: couldn’t find DSO to load: libhermes.so
- filling a circle gradually from bottom to top android
- “Calling this from your main thread can lead to deadlock and/or ANRs while getting accesToken” from GoogleAuthUtil(Google Plus integration in Android)
- Call Audio Stream Modification in Android 4.0 ICS
- Android “Hello, MapView” Tutorial – Map Tiles Do Not Load