From the course: Building Android Apps with Azure

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Creating an Azure request task

Creating an Azure request task

- [Instructor] Before we create our AzureRequest, there's one more thing we need to do in AzureRequestParams. And that is to add a getProgressBar method. So, we have our private member ProgressBar. Let's scroll to the bottom. And let's go into line 55 and insert a new line. And let's press Command + N. And let's add a getter and setter. And let's select ProgessBar. Now we have getter and setter methods for our ProgressBar. I'm going to remove some of these files that we don't need to use anymore for now. I'm gonna close off the Gradle file, Bookmark. Now we're ready to create our AzureRequest. Under azureclientlib Gradle module, under the com.example.azureclient package, let's Right Mouse on that. And select New, Java Class. And the name will be AzureRequest. It will extend AsyncTask, so under Superclass, let's add AsyncTask. Click on OK. AsyncTask will take in three parameters. So, let's type them in here in line five. The first parameter will be AzureRequestParams. The next one is…

Contents