Q-1 Explain the various types of Android Application. OR Explain types of android application. And create any small application in android? Explain.
Mobile apps are basically little, self-contained programs, used to enhance existing functionality, hopefully in a simple, more user-friendly way.
They all come with powerful web browsers, meaning you can do pretty much anything you can do on a desktop computer in a phone’s browser. Normally, when people talk about apps they are almost always referring to programs that run on mobile devices, such as Smartphones or Tablet Computers Each app provides limited and isolated functionality such as game, calculator or mobile web browsing.
Although apps may have avoided multitasking because of the limited hardware resources of the early mobile devices, their specificity is now part of their desirability because they allow consumers to hand-pick what their device are able to do.
Different types of Apps:
- Native App
- Web App
- Hybrid App
- Native App has been developed for use on a particular platform or device.
- A native mobile app is a Smartphone application that is coded in a specific programming language, Java for Android operating systems.
- Native mobile apps provide fast performance and a high degree of reliability.
- They also have access to a phone’s various devices, such as its camera and address book.
- In addition, users can use some apps without an Internet connection.
- However, this type of app is expensive to develop because it is tied to one type of operating system, forcing the company that creates the app to make duplicate versions that work on other platforms.
- A Native app can only be “Native” to one type of mobile operating system.
- Most video games are native mobile apps.
- Web App stored on a remote server and delivered over the internet through a browser.
- Web apps are not real apps; they are really websites that, in many ways, look and feel like native applications.
- They are run by a browser and typically written in HTML5.
- Users first access them as they would access any web page: they navigate to a special URL and then have the option of “installing” them on their home screen by creating a bookmark to that page.
- These programs run within a mobile device’s web browser.
- This means that they’re delivered wholly on the fly, as needed, via the internet; they are not separate programs that get stored on the user’s mobile device.
- Web apps became really popular when HTML5 came around and people realized that they can obtain native-like– functionality in the browser.
- This type of application has cross-platform compatibility but can still access a phone’s hardware.
- It is developed using platforms such as Sencha, PhoneGap and Mosync.
- A web-to-native abstraction layer enables access to device capabilities that are not accessible in Mobile Web applications, such as the accelerometer, camera and local storage.
- Hybrid apps are also popular because they allow cross-platform development: that is, the same HTML code components can be reused on different mobile operating systems, reducing significantly the development costs.
Creating an Android Project
The steps below show you how to create a new Android project with Android Studio:
- In Android Studio, create a new project:
- If you don’t have a project opened, in the Welcome to Android Studio window, click Start a new Android Studio project.
- If you have a project opened, select File > New Project.
- In the New Project screen, enter the following values:
- Application Name: “My First App”
- Company Domain: “example.com”
- Click Next.
- In the Target Android Devices screen, keep the default values and click next. The Minimum Required SDK is the earliest version of Android that your app supports, which is indicated by the API level. To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set.
- In the Add an Activity to Mobile screen, select Empty Activity and click next.
- In the Customize the Activity screen, keep the default values and click Finish.
After some processing, Android Studio opens and displays a “Hello World” app with default files. Following files will be created after successful processing
- app > java > com.example.myfirstapp > MainActivity.java
- app > res > layout > activity_main.xml
- app > manifests > AndroidManifest.xml
- Gradle Scripts > build.gradle