Tuesday 11 April 2017

Android Interview Questions & Answers for Freshers

1. What is Android?
Android is an open source operating system that is mainly used on mobile devices like tablets and Smartphones. Its operations are mainly based on the Linux kernel system which comprises of rich elements that enable developers to develop and run apps that are able to carry out both basic and advanced functions. 

2. What is a resource?
A user defined JSON, XML, bitmap, or other file, injected into the application build process, which can later be loaded from code

3. What is Android Architecture?
Android Architecture consists of 4 main elements
  • Linux Kernel
  • Android Framework
  • Android Applications
  • Libraries

4. What is ANR?
ANR is the acronym for Application Not Responding. When an application is unresponsive for a long time, the dialogue shows up to let the user know about the situation. Android Training in Chennai

5. When does Android start and end an application process?
Android starts an application process when application's component needs to be executed. It then closes the process when it's no longer needed (garbage collection).



6. How will you call a subactivity? Write code.
1. Intent intent = new Intent(this, SubActivity.class);
2. addintent.putExtra(name, value);
3. startActivityForResult(intent, int);

7. What is a content provider in android?
A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. A content provider can use different ways to store its data and the data can be stored in a database, in files, or even over a network.

8. What is a Sticky Intent in android?
Sticky Intent is also a type of intent which allows the communication between a function and a service for example,sendStickyBroadcast() is perform the operations after completion of intent also.

9. What is fragment in android?
Fragment is a piece of activity, if you want to do turn your application 360 degrees, you can do this by fragment.

10. What are application Widgets in android?
App Widgets are miniature application views that can embedded in other applications and receive periodic updates. These views has referred to as Widgets in the user interface, and you can publish one with an App Widget provider.


No comments:

Post a Comment