ProgressDialog in Android for new Activity
-
30-09-2019 - |
문제
when the user taps a menu item i need to create a new Activity; this activity loads a lot of data then shows a map and takes some seconds to be shown ... How can i use ProgressDialog from an activity to another? I actually cannot see it if i call
ProgressDialog dialog = ProgressDialog.show(this, "", "Loading. Please wait...", true);
Thanks in advance and greetings c.
해결책
See the answer here
You should use your AsyncTask in onCreate() method of the Activity you start from menu.
제휴하지 않습니다 StackOverflow