Android Operating System and App Development: A Comprehensive Guide, Cheat Sheet of Compilers

An overview of Android, an operating system primarily used for mobile phones. It covers the basics of Android development, including programming languages, app components, and the structure of an app. Topics include Activities, Services, Broadcast Receivers, Content Providers, and the AndroidManifest.xml file. Additionally, the document discusses the use of Java and XML, as well as the concept of Dynamic Method Dispatch or Runtime Polymorphism. The document also includes instructions for installing and setting up Android Studio.

Typology: Cheat Sheet

2020/2021

Uploaded on 12/07/2021

zeeshan-akram-1
zeeshan-akram-1 🇵🇰

2 documents

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Android
Androidisanoperating systemwhichisbuildbasicallyforMobile
phones.ItisbasedontheLinuxKernelandotheropensources
softwareandisdevelopedbyGoogle
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Android Operating System and App Development: A Comprehensive Guide and more Cheat Sheet Compilers in PDF only on Docsity!

Android

  • (^) Android is an operating system which is build basically for Mobile phones. It is based on the Linux Kernel and other open sources software and is developed by Google

Android

Android. Google Play store features more than 3.3 million apps. The app is developed on an application known as Android Studio. These executable apps are installed through a bundle or package called APK(Android Package Kit).

App Components

  • (^) Activities : It deals with the UI and the User interactions to the screen. In other words, it is a User Interface that contains activities. These can be one or more depending upon the App. It starts when the application is launched. At least one activity is always present which is known as MainActivity. public class MainActivity extends Activity{ // processes }

App Components..

  • (^) Services : Services are the background actions performed by the app A service might need another sub-services so as to perform a specific tasks. The main purpose of the Services is to provide non-stop working of the app without breaking any interaction with the user. public class MyServices extends Services{ //code for the services }

App Components..

  • (^) Content Provider : Content Provider is used to transfer the data from one application to the others on request of the other application. These are handled by the class ContentResolver class. These class implements a set of APIs(Application Programming Interface) that enables the other applications to perform the transactions. public class MyContentProvider extends ContentProvider{ public void onCreate() {} }

Dynamic Method Dispatch or Runtime

Polymorphism in Java

  • (^) JAVA folder
  • (^) consist of the java files that are required to perform the background task of the app.
  • (^) Consist of the functionality of the buttons, calculation, storing, variables, toast(small popup message) , programming function, etc.
  • (^) The number of these files depends upon the type of activities created.

Cont..

  • (^) Res or Resource folder
  • (^) consist drawable, layout, mipmap, raw and values.
  • (^) drawable consist of the images. The layout consist of the XML files that defines the user interface layout.
  • (^) res.layout (R.layout class). The raw consist of the Resources files like audio file or music file,etc. These are accessed through R.raw.filename.

Gradle

Gradle : Gradle is an advance toolkit, which is used to manage the build process, that allows to define the flexible custom build configurations.

Lifecycle of Android App

Guide To Install and Setup Android

Studio

  • (^) Step – 1 : Head over to https://developer.android.com/studio/#downloads 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.
  • (^) Step – 4 : It will start the installation, and once it is completed, it will be like the image shown below.
  • (^) Step – 5 : Once “Finish” is clicked, i
  • (^) Step – 6 : This will start the Android Studio.
  • (^) Step – 7: After it has found the SDK components, it will redirect to the Welcome dialog box.
  • (^) Step – 8 : Now it is time to download the SDK components
  • (^) Step – 9 : Click on ‘Start new android project’ to build a new app.