在你提交方法中使用如下方法,将其中的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();
相关推荐
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:...
Fixed : Issue with accessing and adding progressbar cells in TTMSFMXGrid Fixed : Repaint bug in XE3 in TTMSFMXTileList Fixed : ShowGroupGount implement in TTMSFMXGrid Fixed : GroupCountFormat ...
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 ...
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...
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...
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. ...
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 ...
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 ...
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. Android library made by @Ramotion - ...
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...
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 ...
- 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...
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 ...
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 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 ... Related Utilities ================= * NK2Edit - Edit, merge and fix the AutoComplete files (.NK2) of Microsoft Outlook. ... loaded configuraion, without displaying the ...