Results 1 to 8 of 8

Thread: Java: Passing more than one parameter to Asynctask?

Threaded View

  1. #1
    Join Date
    Mar 2008
    Ubuntu 17.10 Artful Aardvark

    Java: Passing more than one parameter to Asynctask?

    Hi all,

    I have been looking up this topic for a while but can't come across any simple tutorial/explaination.

    All I want to do is pass a filename into a Asynctask for downloading files. Here is my Asynctask setup currently:

    private class DownloadFile extends AsyncTask<String, Integer, String> {
    	    protected String doInBackground(String... sUrl) {
    	        try {
    //download files etc...
    Anyone have experience doing this?
    Last edited by fallenshadow; April 4th, 2013 at 02:11 PM.
    Projects - PhotoFlare Image Editor | Xwii | URT-2D | BHR
    Hardware - System 76 - Galago UltraPro


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts