If you are facing any issue in playing video please use Firefox browser.
Including Volley Library
In this video we are going to see how to include Volley library in our project.
First step which we need to do is to create new project named as 'MyVolleyJsonObject1' and then click next. We will select specific activity which we need and than our project will be created.
From 'File' in top menu, we will select 'New module' option, and then choose 'Import Gradle Project'. After that we need to provide the source directory and then click next.
Now we will be able to see that how volley library is included and how we can use all the files in it.
Now we need to sync project with gradle files after changing in 'build.gradle' dependencies.
Now our project application is ready to work with volley.
After all this we will open the manifest file 'AndroidManifest.xml' and add the INTERNET permission to it,
Now we will design the layout, in which we have two layout file, 'activity_main.xml' and 'content_main.xml'.
In 'activity_main.xml' we are using Coordinator layout and set the basic properties of it. And in other layout file which is 'content_main.xml' we have used Relative Layout and a Textview.
Have a friend to whom you would want to share this course?