University Institute of Information Technology PMAS-Arid Agriculture University, Rawalpindi Assignment No 1 Mobile Application Development Name: Sajid Mahmood Registration No: 19-arid-853 Semester: Bs(Cs) 7A Morning Submitted By: Mr. Muhammad Azhar Submission Date (24-10-2022) Question no 1: Prepare a technical guide for a beginner to develop an android application using Android Studio as: 1. 2. 3. 4. 5. Setting up development environment Dependencies List of issues faced and applied solutions Creating a hello world project through blank activity Running your project either on VM through AVD or USB debugging Answer: (1). Setting up development environment: Step 1: Head over to this link to get the Android Studio executable or zip file. Step 2: Click on the Download Android Studio Button. Step 3: After the downloading has finished, open the file from downloads and run it. It will prompt the following dialog box. Step 4: It will start the installation, and once it is completed, it will be like the image shown below. Click on next. step 5: Once “Finish” is clicked, it will ask whether the previous settings need to be imported [if the android studio had been installed earlier], or not. It is better to choose the ‘Don’t import Settings option’. Click the OK button. Step 6: This will start the Android Studio. Meanwhile, it will be finding the available SDK components. Step 7: After it has found the SDK components, it will redirect to the Welcome dialog box. Click on Next. Choose Standard and click on Next. Now choose the theme, whether the Light theme or the Dark one. The light one is called the IntelliJ theme whereas the dark theme is called Dracula. Choose as required. Click on the Next button. Step 8: Now it is time to download the SDK components. Click on Finish. Components begin to download let it complete. The Android Studio has been successfully configured. Now it’s time to launch and build apps. Click on the Finish button to launch it. Step 9: Click on Start a new Android Studio project to build a new app. (2). Dependencies: Dependency injection (DI) is a technique widely used in programming and well suited to Android development. By following the principles of DI, you lay the groundwork for good app architecture. Implementing dependency injection provides you with the following advantages: Reusability of code. Ease of refactoring. (3). List of issues faced and applied solutions: Activities. An activity is a class that is considered as an entry point for users that represents a single screen. ... Services. A service is a component that runs in the background, it acts as an invisible worker of our application. ... Content Providers. ... Broadcast Receiver. (4). Creating a hello world project through blank activity: 1. Open the Android Studio: 2. Click on the file menu: 3. Click on the New button: 4. Now, click on import project: 5. Choose the location of project code, which you have downloaded in previous step: (5). Running your project either on VM through AVD or USB debugging: To enable USB debugging, toggle the USB debugging option in the Developer Options menu. You can find this option in one of the following locations, depending on your Android version: Android 9 (API level 28) and higher: Settings > System > Advanced > Developer Options > USB debugging.