Tuesday, 9 December 2014

Android Interview Questions for freshers

What is android?

Android is a stack of software for mobile devices which has Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java language’s byte code which later transforms into .dex format files.

What are the features of Android?

  • Components can be reused and replaced by the application framework.
  • Optimized DVM for mobile devices
  • SQLite enables to store the data in a structured manner.
  • Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies
  • The development is a combination of a device emulator, debugging tools, memory profiling and plug-in for Eclipse IDE.

Why to use Android?

Android is useful because:
  • It is simple and powerful SDK
  • Licensing, Distribution or Development fee is not required
  • Easy to Import third party Java library
  • Supporting platforms are – Linux, Mac Os, Windows

Describe Android Application Architecture.

Android Application Architecture has the following components:
  • Services – like Network Operation
  • Intent - To perform inter-communication between activities or services
  • Resource Externalization - such as strings and graphics
  • Notification signaling users - light, sound, icon, notification, dialog etc.
  • Content Providers - They share data between applications

What are the advantages of Android?

The following are the advantages of Android:
  • The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like AT&T and Orange will be broken by Google Android.
  • Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized
  • Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.

What is needed to make a multiple choice list with a custom view for each row?

Multiple choice list can be viewed by making the CheckBox android:id value be “@android:id /text1". That is the ID used by Android for the CheckedTextView in simple_list_item_multiple_choice.

What are the dialog boxes that are supported in android? Explain.

Android supports 4 dialog boxes:
AlertDialog : An alert dialog box supports 0 to 3 buttons and a list of selectable elements, including check boxes and radio buttons. Among the other dialog boxes, the most suggested dialog box is the alert dialog box.
ProgressDialog: This dialog box displays a progress wheel or a progress bar. It is an extension of AlertDialog and supports adding buttons.
DatePickerDialog: This dialog box is used for selecting a date by the user.
TimePickerDialog: This dialog box is used for selecting time by the user.



No comments:

Post a Comment