Wednesday, May 25, 2016

Android Interview Questions for 2-5 yrs experienced

Well its not in order and not complete.will keep adding but for now i have few....

1)How do you find memory leaks in android application?
2)How will you find if your application is running on low memory, or out of memory?
3)How will you design a listview, which downloads lot of images and displays in it? (with out getting your app hanged), whats the best possible way?
4)I wanted to do show a splash screen in my application only once for the first time when user downloads my application. How do you design it? What logic will you use for it?
5)What is the difference between this and getapplicationcontext?
6)What is the Memory limit of each process in android?
7)How to upgrade data base tables in the later versions of an application?
8)What is the difference between dynamic receiver and static receiver? when will you use dynamic broadcast receivers?
9)What is intent, pending intent, and sticky intent?
10)What is the difference between thread and a service?
11)What is a handler thread? how it is different from normal thread?
12) What is serialization? How serialization is different from Binders? 
13)How to update UI from a service?
14)How to do inter-thread communication in android, using handlers?
15)What is AIDL?
16)What is a Fragment?
17)What are the steps in creating a bounded service through AIDL.
18)Difference between px, sp, dip, dpi and pt in Android?
19)How do you avoid an ANR?
20)How to save object in sharedpreference?
21)The last callback in the lifecycle of an activity is onDestroy(). The system calls this method on your activity as the final signal that your activity instance is being completely removed from the system memory. Usually, the system will call onPause() and onStop() before calling onDestroy(). Describe a scenario, though, where onPause() and onStop() would not be invoked.
22)What is viewGroup in android?
23)What is a Sticky Intent in android?
24)What is fragment in android?
25)How many types of memory areas are allocated by JVM?
26)How is final different from finally and finalize()?
27)What are the restriction imposed on a static method or a static block of code?
28)I want to print "Hello" even before main() is executed. How will you acheive that?
29)What is an Abstract Class and what is it's purpose?
30)Class C implements Interface I containing method m1 and m2 declarations. Class C has provided implementation for method m2. Can i create an object of Class C?

No comments: