Interview Questions for Android
A lot of final year students and graduates looking for placements in Android Application development are curious to know about android interview questions what employers ask in interviews.
At times subject matter technical Interviews are not just restricted to the subject but employers also check the candidate’s fundamental knowledge, ability to think logically as well as practical ( hands-on ability to the code given a time limit).The Interview rounds are also followed by HR questions checks the candidate’s interest to join the organization, grow with the organization, team spirit, and ability to mold and take up different challenges.
Following are the rounds that take place in a given organization:
- Aptitude ( check logical reasoning)
- Not all companies have this level of an interview process
- Covers OOPS, SQL query as well as fundamental
- All companies usually have this round as the first initial level of screening
- Subject Matter ( technical and Practical Subjects related to Android Application Development)
- Advanced Subject Matter Questions
- This round basically decides the salary at which a company is ready to hire the candidate. Most of the candidates that have undergone professional training outside of colleges can clear the Fundamentals and Subject matter rounds. The Advance rounds help differentiate the knowledge and exposure based on the projects students have undertaken
- HR rounds
TOPS Technologies trains a lot of students in Android application development and have placed them in different IT companies with salaries ranging from 1.5 L CTC to 3.5 L CTC. TOPS Technologies have compiled interview questions on android based on the feedbacks given by different companies and our students on the questions they faced. The questions contain the above categories with answers to make sure candidates can thoroughly prepare the same.
List Of Android Question And Answer
1. What is Android?
Ans: Android is a Linux based Open source Mobile operating system used in Smartphones, Tablets, TV, Automobiles, and Watch etc.
2. What is view Android application?
Ans: View is a base class of widgets, Rectangular area of the screen. The view is responsible for drawing and event handling.
3. List of out each method of Activity lifecycle in android?
Ans : In Android application have the below stage of life cycle method –
4. List out the Fragment lifecycle in Android ?
Ans: Following methods will generate different stages of fragment lifecycle.
5. What is Difference between linear and relative layout in Android ?
Ans: Linear Layout – it will show sub-layouts in a Linear form (Vertical and Horizontal).
Relative Layout: This layout will set its components by relating to each other and also by giving dependency.
6. How to set two layouts which equal width and height on View in Android?
Ans: With the use of Linear Layout we have weight attribute to set equal height and width.
7. How many Components in Android which are using to build an Application?
Ans: When we create android application below components will be used –
8. What is Service in Android?
Ans: Service is a background task of any application which runs in the background.
A downloading task, MusicPlayer Task.
9. What is intent in Android Application?
Ans: Intent is an object which defines to execute any action intentionally.
Two types of intent in android.
(i) Explicit Intent: this intent define when we want to call another activity from current activity in the same application.
(ii) Implicit Intent.
10. Which class is using to complete a long task in the background?
Ans: We can use below class and method to complete long background task –
AsyncTask with the help of its three methods,
11. Where we can store offline data in Android Application?
Ans: Data will be stored in the local database using SQLite.
12. What is Gradle in Android?
Ans: Gradle is a script in which we define third-party library dependencies, classpaths and it will compile all files without project.
13. If you have to use services of any online shopping website so you have to configure in every activity or to create any class file?
Ans: We can define service handler class to establish HTTP Url connection, then in each activity where we want to show data from the database we just change the URL of our web service API.
14. What is view pager in Android Application?
Ans: The View Pager is providing swiping gesture in android, ex. Tab Layout.
15. Difference between Picasso and glide Library in Android?
Ans: Picasso library can only load an image, where glide can also load gif format.
16. What is GSON in Android?
Ans: GSON is converter library, which converts JSON array and objects when we work with a retrofit.
17. What is JsonParsing?
HTTP Url connection, Retrofit, Volly etc.
18. Difference between activity and fragment in Android?
Ans Activity is a direct user interaction screen in which all components and events are generated.
Every application has at least one Activity.
A fragment is part of an activity, which inflated on the activity’s layout. We can use multiple fragments inside a single activity.
Fragments are faster in a transaction than activity.
19. Can we use more than one fragments in a single activity?
20. How many data can we get from Facebook API?
Ans: Using graph library and Profile class, we can get all the information of a user.
ex Name, first name, last name, profile image, middle name
21. Which 3rd party library you have used in Android?
Ans: Retrofit, Picasso, Glide, volly.
22. Why use Retrofit in Android?
Ans: Retrofit will return appropriate response very faster than HTTP, Volly.
23. In Hangout application, if data is more than 5000 at that time which adapter view is the best for memory management?
Ans: Recycler View
24. Write code for fetching JSON array in Android?
Ans: JSONArray array = new JSONArray(result);
JSONObject object = array.getJSONObject(i);
25. How to Implement Clear Top Activity in Android ?
Intent a = new Intent(this,A.class);
26. Write code to implement for SMS Send Using SMS Manager ?
Intent intent=new Intent(getApplicationContext(),MainActivity.class);
sms.sendTextMessage(“9898098980”, null, “Android Code”,pi,null);
27. Which two methods will be Override from SQliteOpenHelper?
Please share this with all candidates going through an interview process to help them.
For details, you can visit our site:
Android Training Course
Or call us on 7622011173