Android Interview Questions & Answers

Share

Write, discuss on any topic that interests you. Make yourself heard!

Android Interview Questions & Answers

Postby cat_master » Mon Sep 21, 2009 12:07 am

Describe the APK format.
The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and other files. A project is compiled into a single .apk file.

What is an action?
A description of something that an Intent sender desires.

What is activity?
A single screen in an application, with supporting Java code.

What is intent?
A class (Intent) describes what a caller desires to do. The caller sends this intent to Android's intent resolver, which finds the most suitable activity for the intent. E.g. opening a PDF file is an intent, and the Adobe Reader is the suitable activity for this intent.

How is nine-patch image different from a regular bitmap?
It is a resizable bitmap resource that can be used for backgrounds or other images on the device. The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges are scaled in one axis, and the middle is scaled in both axes.

What languages does Android support for application development?
Android applications are written using the Java programming language.

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

Do add more questions below...

Re: Android Interview Questions & Answers

Postby admin » Tue Aug 17, 2010 8:00 pm

How will you record a phone call in Android? How to get a handle on Audio Stream for a call in Android?
Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoing calls.

What's the difference between file, class and activity in android?
File - It is a block of arbitrary information, or resource for storing information. It can be of any type.
Class - Its a compiled form of .Java file . Android finally used this .class files to produce an executable apk
Activity - An activity is the equivalent of a Frame/Window in GUI toolkits. It is not a file or a file type it is just a class that can be extended in Android for loading UI elements on view.

What is a Sticky Intent?
sendStickyBroadcast() performs a sendBroadcast (Intent) that is "sticky," i.e. the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of registerReceiver (BroadcastReceiver, IntentFilter). In all other ways, this behaves the same as sendBroadcast(Intent).

One example of a sticky broadcast sent via the operating system is ACTION_BATTERY_CHANGED. When you call registerReceiver() for that action -- even with a null BroadcastReceiver -- you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future state changes in the battery.

Image

Re: Android Interview Questions & Answers

Postby admin » Sun Dec 19, 2010 8:37 am

  • How do you implement push vs. pull stacks in Android?
  • What is the difference between Broadcast, Unicast and Multicast?
    Unicast - has only one sender and receiver, e.g. TCP protocol implementation. Broadcast - one sender and multiple listeners. All listeners (receivers) are updated at the same time, and can take different actions. Multicast - There can be more than one senders and receivers.
  • Describe the various types of exceptions in Android.
    InflateException : thrown when specific error conditions occur.
    Surface. OutOfResourceException: thrown when a surface is not created or resized correctly.
    WindowManager. BadTokenException: This exception is thrown when attempting to add a view to an invalid WindowManager
  • What are fragments in Android activity?
    A Fragment is a portion of user interface in an Activity. It is a modular section of an activity, which has its independent lifecycle, can receive its own input events.

Re: Android Interview Questions & Answers

Postby cat_master » Fri Feb 18, 2011 4:37 am

Common Tricky questions

  • Remember that the GUI layer doesn't request data directly from the web; data is always loaded from a local database.
  • The service layer periodically updates the local database.
  • What is the risk in blocking the Main thread when performing a lengthy operation such as web access or heavy computation? Application_Not_Responding exception will be thrown which will crash and restart the application.
  • Why is List View not recommended to have active components? Clicking on the active text box will pop up the software keyboard but this will resize the list, removing focus from the clicked element.
  • High-paying Android Job Vacancies

Re: Android Interview Questions & Answers

Postby admin » Mon Feb 28, 2011 5:43 pm

Last stage interview questions for senior positions: viewtopic.php?f=5&t=29858

Re: Android Interview Questions & Answers

Postby pooleema » Fri Nov 18, 2011 4:54 pm

How important is it to earn an MBA from a good graduate program ? I currently attend a large state university which is a decent undergrad university. Their graduate program, however; is less than stellar and I've also heard that you are not supposed to do your MBA at the same school you did undergrad. So my question is, is it really that important that if you are going to get an MBA that it comes from a noted institution?

Re: Android Interview Questions & Answers

Postby admin » Fri Jul 13, 2012 7:40 pm

Here are some interview tips to help ensure success for you. These tips have been carefully summarised based on feedback that we receive from employers.

  • Read the job description and company profile carefully so that you are aware of the job details when an employer calls you about your application. If the job advertisement does not contain enough information, ask the employer for more details.
  • Remember to write down the name & contact number of the recruiter in case you need to call back later.
  • Prepare for the interview by finding out more about the company, the job and the industry.
  • Be punctual for your interview. Bring your resume, transcripts, certificates and relevant documents to the interview.
  • IMPORTANT: If you cannot attend the confirmed interview for whatever reason, you must contact the employer at least one day beforehand to let them know.
  • Keeping a good interview attendance record will help to ensure opportunities for interview in the future, as employers have the right to share their "No show" and late cancellation records.
  • If you do not have the employer's contact details, look under the Company Profile in the Application Status page of your MyJobStreet account or look in the telephone book or Yellow Pages.
  • Send the employer a Thank You email after the interview.
  • Follow up with the employer on the status of the interview after two or three days. This shows your interest for the job and may increase your chances of success.


Return to The Hangout

Who is online

Users browsing this forum: No registered users and 2 guests

cron