MAD Unit 1 CSD
MAD Unit 1 CSD
Professional Electives-III
Subject Code 21CDCDP605C IA Marks 30
Number of Lecture Hours/Week 3 Exam Marks 70
Total Number of Lecture Hours 48 Exam Hours 03
Credits – 03
Course Objectives:
Displaying Notifications.
Unit – 4:Data Persistence
Saving and Loading User Preferences, Persisting Data to Files, Creating and
10
Using Databases.
Unit – 5:Messaging and Location-Based Services
W2 https://www.coursera.org/courses?query=mobile%20app%20development
Android Studio
The first and most important piece of software you need to download is Android Studio.
After you have downloaded and installed Android Studio, you can use the SDK Manager to
download and install multiple versions of the Android SDK. Having multiple versions of
the SDK available enables you to write programs that target different devices. For example,
you can write one version of an application that specifically targets Android Nougat, but
because that flavour of Android is on less than 1% of devices, with multiple versions of the
SDK you can also write a version of your app that uses older features and targets
Marshmallow or Lollipop users. You can use the Android Device Manager to set up device
emulators.
You can download Android Studio latest version from http://developer.android.com/studio
2. If you have an older version of Android Studio already installed on your computer, the
Android Studio Setup prompts you to automatically uninstall it. Even though the old
version of Android Studio will be uninstalled, the settings and configurations are retained.
You have an opportunity to reapply those settings and configurations to Android Studio
after the setup has completed. Figure shows the screen where you are prompted to uninstall
an old version of Android Studio.
Figure: Android studio download terms and conditions
4. Pick which components of Android Studio you want to install from the screen shown in
Figure. Android Studio is selected by default (and cannot be deselected), which makes
sense given that you are going through all of this trouble for the distinct purpose of
installing Android Studio. Android SDK and Android Virtual Device are also selected by
default. Click Next to accept the default choices and continue.
6. On the configuration settings screen, it is best to accept the default locations specified by
the setup process and click Next to continue. You see the Choose Start Menu Folder screen.
Click Install to kick off the Android Studio installation.
8. When the install is complete, you will see a Completing Android Studio Setup screen.
Leave the Start Android Studio box checked and click Finish.
9. Android Studio prompts you to either import settings from a previous version of Android
Studio or continue with new settings. If you uninstalled a previous version in the first step
of the installation process, Android Studio offers you a chance to recover the settings used
in that previous version and apply them to Android Studio.
11. Click Finish on the Verify Settings screen, and Android Studio finalizes the setup
process. You know the process is complete when you are greeted with the Welcome to
Android Studio screen.
Select Android Nougat, click Apply, and then click OK. However, before the SDK is
installed you must accept the licensing agreement as shown in Figure.
Figure: Android SDK License agreement.
2. Set up a HelloWorld project (that you will use in the final section of this chapter).
Type Chapter1Helloworld in the Application Name field.
3. You can keep the default values for the other fields on the New Project screen.
Click Next.
4. You should see the Targeted Android Devices screen. By default, the Create New
Project Wizard selects for you the Android SDK level that has the greatest activity
based on statis-tics gathered from Google Play. For now, accept the default, as
shown in Figure, and click Next.
Figure: Target Android Devices.
8. Click the + Create Virtual Device button to create a new AVD. The Virtual Device
Configuration screen opens as shown in Figure.
9. Select the Nexus 5x hardware profile and click Next. Although none of the
emulators offers the same performance as its actual hardware counterpart, the
Nexus 5x should run well on most x86-based desktops, and it still offers some of
the mid- to high-end Android device specs.
10. For the system image, select and install the latest option, which at the time this book
was written is Android Nougat. Click the x86 Images tab (see Figure 1-25), select N
from the list of images, and then click Next.