ProgressDialog pd = new ProgressDialog(yourActivity.this);
pd.setMessage("loading");
pd.show();
And that’s all you need.
More Related Contents:
- ProgressDialog in AsyncTask
- Custom Drawable for ProgressBar/ProgressDialog
- Android: ProgressDialog.show() crashes with getApplicationContext
- 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)
- 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?
- Can I underline text in an Android layout?
- The APK file does not exist on disk
- Applying Effects on Video being Played
- Why is my field `null` after injection? How do I inject my object?
- Android: How to measure total height of ListView [duplicate]
- android pending intent notification problem
- onActivityResult do not fire if launch mode of activity is singleInstance
- Count subscribers of a topic in Firebase Cloud Messaging
- HTTP doesn’t work in Android emulator
- Show ImageView programmatically
- How to set Ripple effect on a LinearLayout programmatically?
- Disabling text selection in PhoneGap
- Android Studio 2.0: Why does Instant Run not work when modifying xml layout resources?
- BroadcastReceiver SMS_Received not working on new devices
- Skinning Android app with Maven build profiles