Configuring the Android project

Let's start configuring the project, as follows:

  1. 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.

  1. 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>
  1. Finally, save all changes in the code.

Next, we will build the UI from our application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.200.143