- 1 Android Interview Questions
- 1.1 Que 1: Describe the APK format.
- 1.2 Que 2: What is activity?
- 1.3 Que 3: What is intent?
- 1.4 Que 4: What is an action?
- 1.5 Que 5: How is nine-patch image different from a regular bitmap?
- 1.6 Que 6: Explain Draw 9-patch tool?
- 1.7 Que 7: What is a resource?
- 1.8 Ques 8: What is the difference between Service and Thread?
- 1.9 Ques 9: What is View?
We all know that student’s now a days are keen to get Job in the IT industries and they surely like to do that because of the perks and logitivity of the computer field. But in IT sector mobile app development( Most likely android Interview) sector is amazing field to go on and maximum people now a days are moving in Mobile industries.
And we also know that getting Job in mobile industry is not easy task. for that you have to go through tough interview. But let me help you with the top nine questions which are most probably every interviewer will ask in interview for the Android.<
Android Interview Questions<
Que 1: Describe the APK format.
Android app Package file(APK) is the actual file format used to share, distribute and install application software and work as a middleware on to the operating system of the Google.(Just like .exe in windows) Each Android application is packaged and compiled in the single file that contains all of the app’s code(.dex files), assets, resources and manifest file.
Make sure that application’s package file can be any name but the extension must be .APK<
Que 2: What is activity?
Activity is nothing but a single screen in the application.
It is the screen which is derived from Activity class and also supports JAVA code. This view can be put by using setContentView(View) method. Most often, an activity is visible by the full-screen window that can get and handle UI events and perform complex tasks. We all know that an activity is a full screen, but it can also be floating and transparent.<
Que 3: What is intent?
The intent is an object and intent object is an instance of Intent.
It is a message object that anyone can use to communicate or launch with other activities or application asynchronously. It includes many criteria fields that you can fulfill, to identify what application/activity receives the intent and what the recipient does when handling the Intent.
Available criteria include the carving action, a category, a Data string, a handling class, Mime type of Data and much more.<
Que 4: What is an action?
A summary of something that an Intent sender wants to be done.
Action strings can be defined by any third-party developer or Android itself.
For ex, android.intent.action.VIEW for a Web site URL
Que 5: How is nine-patch image different from a regular bitmap?
It is actually a resizable bitmap Image(Resource) that can be used for anything like the background of other images on Android devices.
The nine patch class is meant to permits drawing a bitmap in nine different sections. And four corners are uncscaled; & another four edges are scaled in a single axis, and the middle is scaled in both axes.
And we can create 9-patch images by using draw 9-patch tool.
PS: This is the most asked Android interview question<
Que 6: Explain Draw 9-patch tool?
The Draw 9-patch tool allows you to quickly create a 9-patch graphic or Images using a WYSIWYG editor.
Que 7: What is a resource?
A User-supplied XML(Animation/Colors/String), bitmap or any other file, injected into the App build process like Android Design Support Library, which can be derived from code.
Ques 8: What is the difference between Service and Thread?
Service is like an Activity, but it has no interface. Probably if you want to get the forecast in your application for example. So you will not create a blank activity for it, for this, you can simply use service.
It is also known as a back-end service because it performs all its task in the background.
A thread is a collective unit of execution. We all have to know that UI can’t be updated from the thread. For that, you must need to use a Handler.
Ques 9: What is View?
A View controls a quadrangular area on the screen and is bound for drawing and event handling.
View is the base class for widgets, which are used to create interactive UI components (text fields, buttons, etc.)