Let's start configuring the project, as follows:
- Android Studio uses Gradle to configure an Android project. We will include the Volley library in the build.gradle file. You can add the Volley library by adding the following script:
dependencies {
...
implementation 'com.android.volley:volley:1.1.1'
}
Android Studio will load all libraries based on the changed Gradle configuration file.
- Since our project accesses the internet, we should configure the security permissions by adding android.permission.INTERNET on the AndroidManifest.xml file, as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="id.ilmudata.agusk.mysmartmobile">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
...
</activity>
</application>
</manifest>
- Finally, save all changes in the code.
Next, we will build the UI from our application.