`
jiaoronggui
  • 浏览: 1328946 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
博客专栏
B7c2eb31-a8ea-3973-a517-d00141f39b89
项目管理软件-redmin...
浏览量:116455
4a63e153-250f-30f6-a051-97cfc67cb3d3
IT职业规划
浏览量:199362
社区版块
存档分类
最新评论

Android:problem in displaying the progressbar dialog?

 
阅读更多

 

在你提交方法中使用如下方法,将其中的doFunction();换成自己的方法既可以了。

 

 

new AsyncTask<Void, Void, Void>() {

        @Override
        protected void onPreExecute()
        {
             pd = ProgressDialog.show(getApplicationContext(),"", "Sending Image ...", true);
            Log.d(TAG, "onPreExecute()");
        }

        @Override
        protected Void doInBackground(Void... params)
        {
            doFunction();
            return null;
        }

        @Override
        protected void onPostExecute(Void res)
        {
            Log.d(TAG, "onPostExecute()");
            pd.dismiss();
        }
    }.execute();

 

 

 

分享到:
评论

相关推荐

    Android Programming: The Big Nerd Ranch Guide, 3rd Edition

    Title: Android Programming: The Big Nerd Ranch Guide, 3rd Edition Author: Bill Phillips, Chris Stewart Length: 624 pages Edition: 3 Language: English Publisher: Big Nerd Ranch Guides Publication Date:...

    TMS Pack for FireMonkey2.3.0.1

    Fixed : Issue with accessing and adding progressbar cells in TTMSFMXGrid Fixed : Repaint bug in XE3 in TTMSFMXTileList Fixed : ShowGroupGount implement in TTMSFMXGrid Fixed : GroupCountFormat ...

    Android.App.Development.in.Android.Studio.Java.Android.Edition.For.Beginners.pdf

    Simple dice roller app: Using random number generator functions, including images in your project, displaying images on the screen and changing the displayed image programmatically. 4. The compass ...

    CommonsWare.The.Busy.Coders.Guide.to.Android.Development.Version.8.2.2017

    Android, the next-generation open mobile platform from Google and the Open Handset Alliance, is poised to become a significant player in the mobile device market. The Android platform gives developers...

    The Busy Coders Guide to Android Development最终版2019

    Tutorial #12 - Displaying the Book Using Preferences Tutorial #13 - Using Some Preferences SQLite Databases Tutorial #14 - Saving Notes Internet Access Intents, Intent Filters Broadcasts and Broadcast...

    Android代码-电影票房评估

    This is an Android demo application for displaying the latest box office movies using the RottenTomatoes API. See the RottenTomatoes Networking Tutorial on our cliffnotes for a step-by-step tutorial. ...

    Xshell 6绿色免安装版 只有几M大小

    FIX: Changes in highlight colors not displaying immediately in the preview FIX: Creating a session file in the Session Manager during a search displays incorrect search results FIX: Multiple ...

    ScrollBitmap_demo.zip_bitmap dialog_dialog bitmap_image_停车场_显示位图

    Displaying a large bitmap file on a dialog box, in its original size, is quite difficult in the VC++ environment. However, it is possible to display a large bitmap to a predefined area of the dialog ...

    Android代码-Guessaday

    The app already supports all the languages in android for displaying the dates; you can help by translating the strings for the settings menu, by letting me know what all the phrases/words in the file...

    A slider widget with a popup bubble displaying the precise value selected..zip

    A slider widget with a popup bubble displaying the precise value selected..zip,A slider widget with a popup bubble displaying the precise value selected. Android library made by @Ramotion - ...

    TCL TK 语言8.5编程指导

    Displaying the file selection dialog 164 Selecting a directory and file 166 Chapter 12: Creating and Managing Menus 169 Introduction 169 Creating a menu 170 Adding menu buttons 175 Displaying a pop-up...

    Java2核心技术卷I+卷2:基础知识(第8版) 代码

    Displaying Information in a Component 294 Working with 2D Shapes 299 Using Color 307 Using Special Fonts for Text 310 Displaying Images 318 Chapter 8: Event Handling 323 Basics of Event ...

    S7A驱动720版本

    - In the device dialog of the communication way "MPI/PB CIF", the input fields "Rack:" and "slot no. of CPU" have been added. This extension now allows the connection to "external" Profibus- CPs...

    Android.Application.Development.in.Detail.epub

    The book contains some recipes of the Android application development and examples, it considers the work in the Eclipse IDE and the Android Studio IDE, as well as the development of mobile websites ...

    Android代码-EditText显示icon

    IconEditText provides a reusable view for displaying an ImageView with an EditText for Android 4.0 . Usage Using the IconEditText is easy enough, just clone the repo and add it to your project as ...

    端口查看工具

    are used for displaying the country name in the 'Remote IP Country' column. * Version 1.92: o When choosing 'Clear Log File' option, CurrPorts now asks you whether you want to clear the log, in ...

    Android.Database.Best.Practices.0134437993

    “Android™ Database Best Practices goes well beyond API documentation to offer strategic advice about how to handle data in an Android application and the tools needed to develop productively....

    OutlookAttachView v2.73

    OutlookAttachView v2.73 ... Related Utilities ================= * NK2Edit - Edit, merge and fix the AutoComplete files (.NK2) of Microsoft Outlook. ... loaded configuraion, without displaying the ...

Global site tag (gtag.js) - Google Analytics