Android Programming Long Questions and AnswersHere in this section of Android Programming Long Questions and Answers,We have listed out some of the important Long Questions with Answers on Android Application types which will help students to answer it correctly in their University Written Exam.

 

 
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:

  1. Native App
  2. Web App
  3. Hybrid App

 

Native 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

  • 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.
  • In contrast, a mobile web app is software that uses technologies such as JavaScript or HTML5 to provide interaction, navigation, or customization capabilities
  • 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.

 

Hybrid App

  • 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.
  • Hybrid Apps are like native apps, run on the device, and are written with web technologies (HTML5, CSS and JavaScript).
  • Hybrid apps run inside a native container, and leverage the device’s browser engine to render the HTML and process the JavaScript locally.
  • 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:

  1. In Android Studio, create a new project:
  2. If you don’t have a project opened, in the Welcome to Android Studio window, click Start a new Android Studio project.
  3. If you have a project opened, select File > New Project.
  4. In the New Project screen, enter the following values:
    1. Application Name: “My First App”
    2. Company Domain: “example.com”
  5. Click Next.
  6. 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.
  7. In the Add an Activity to Mobile screen, select Empty Activity and click next.
  8. 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

  1. app > java > com.example.myfirstapp > MainActivity.java
  2. app > res > layout > activity_main.xml
  3. app > manifests > AndroidManifest.xml
  4. Gradle Scripts > build.gradle

 

Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook