1. Explain me what is an implicit Intent?

Implicit Intent doesn't specifiy the component. In such case, intent provides information of available components provided by the system that is to be invoked.

2. Explain me 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.

3. Explain me how can ANR be prevented?

One technique that prevents the Android system from concluding a code that has been responsive for a long period of time is to create a child thread. Within the child thread, most of the actual tasks of the codes can be placed, so that the main thread runs with minimal periods of unresponsive time.

4. Please explain 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.

5. Tell us is it okay to change the name of an application after its deployment?

It is not recommended to change the application name after its deployment because this action may break some functionality. For example, shortcuts will not work if you change application name.

6. Tell me why can't you run java byte code on Android?

Android uses DVM (Dalvik Virtual Machine ) rather using JVM(Java Virtual Machine), if we want, we can get access to .jar file as a library.

7. Please explain what is sleep mode in android?

Sleep mode mean CPU will be sleeping and it doesn't accept any commands from android device except Radio interface layer and alarm.

8. Tell me what does the intent filter do in android?

Intent filters are filter out the intents.

9. Explain what is an ANR notification in Android?

ANR is short for Application Not Responding. Android systems show this dialog if the application is performing too much of task on the main thread and has been unresponsive from a long time.

10. Explain me what are the different storage methods in Android?

Android offers several different options for data persistence. Shared Preferences – Store private primitive data in key-value pairs. This sometimes gets limited as it offers only key-value pairs. You cannot save your own java types. Internal Storage – Store private data on the device memory.

Download Interview PDF

11. Do you know what is An Activity?

Activity performs actions on the screen.If you want to do any operations, we can do with activity

12. Tell us what are the exceptions available in android?

InflateException, Surface.OutOfResourceException, SurfaceHolder.BadSurfaceTypeException, and WindowManager.BadTokenException

13. How to deploy executable JARs on Android? Which packaging is supported by Android?

No, Android platform does not support JAR deployments. Applications are packed into Android Package (.apk) using Android Asset Packaging Tool (AAPT) and then deployed onto Android platform. Google provides Android Development Tools for Eclipse that can be used to generate Android Package.

14. Tell me which kernal is used in android?

Android is customized Linux 3.6 kernel.

15. Do you know what is viewGroup in android?

View group is a collection of views and other child views, it is an invisible part and the base class for layouts.

16. Tell me what is the APK format?

The Android packaging key is compressed with classes, UI's, supportive assets and manifest.All files are compressed to a single file is called APK.

17. Tell me how many dialog boxes do support in android?

AlertDialog, ProgressDialog,DatePickerDialog, and TimePickerDialog

18. Tell me how to update UI from a service in android?

Use a dynamic broadcast receiver in the activity, and send a broadcast from the service. Once the dynamic receiver is triggered update UI from that receiver.

19. Explain me the resource that is a compiled visual resource and can be used as a background, title, or in other part of the screen?

Drawable is the virtual resource that can be used as a background, title, or in other parts of the screen. It is compiled into an android.graphics.drawable subclass. A Drawable resource is a general concept for a graphic which can be drawn. The simplest case is a graphical file (bitmap), which would be represented in Android via a BitmapDrawable class.
The Drawable is stored as individual files in one of the res/drawable folders. The ADT project creation wizard creates these folders by default. You would store bitmaps for different resolutions in the -mdpi, -hdpi, -xhdpi, -xxhdpi subfolders of res/drawable If these bitmaps are provided in a different folder, the Android system selects the correct one automatically based on the device configuration.

20. Tell me what are the notifications available in android?

Toast Notification − It will show a pop up message on the surface of the window

Status Bar Notification − It will show notifications on status bar

Dialogue Notification − It is an activity related notification.

21. Tell me how to change application name after its deployment?

It's not truly recommended to change application name after it's deployment, if we change, it will impact on all other internal components.

22. Tell me what folders are impotent in android project?

☛ AndroidManifest.xml
☛ build.xml
☛ bin/
☛ src/
☛ res/
☛ assets/

23. Tell us what language does android support to develop an application?

Android applications has written using the java(Android SDK) and C/C++(Android NDK).

24. Tell me what is action in Android?

In Android, the action is a description of something that an intent sender desires.
SYNTAX:

CONTAINED IN:
DESCRIPTION:
Adds an action to an intent filter. An element must contain one or more elements. If it doesn't contain any, no Intent objects will get through the filter.

Download Interview PDF

25. Tell me what is ADB in android?

It is acts as bridge between emulator and IDE, it executes remote shell commands to run applications on an emulator

26. Tell me how to Translate in Android?

Android uses Google translator to translate data from one language into another language and placed as a string while development

27. Please explain what are application Widgets in android?

App Widgets are miniature application views that can embedded in other applications (such as the Home screen) 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.

28. Can you define the application resource file in android?

JSON,XML bitmap.etc are application resources.You can injected these files to build process and can load them from the code.

29. Tell us what is nine-patch images tool in android?

We can change bitmap images in nine sections as four corners,four edges and an axis

30. Please explain what are the tools are placed in An Android SDK?

Android SDK collaborated with Android Emulator,DDMS(Dalvik Debug Monitoring Services),AAPT(Android Asset Packaging tool) and ADB(Android debug bridge)

31. Explain me enumerate three key loops when monitoring an activity?

• Entire lifetime – activity happens between onCreate and onDestroy
• Visible lifetime – activity happens between onStart and onStop
• Foreground lifetime – activity happens between onResume and onPause

32. Explain me what is the difference between a regular .png and a nine-patch image?

It is a resizable bitmap resource that can be used for backgrounds or other images on the device. NinePatch class permits drawing a bitmap in nine sections. The nine patch images have extension as.9.png. It allows extension in 9 ways, i.e. 4 corners that are unscaled, 4 edges that are scaled in 1 axis, and the middle one that can be scaled into both axes.

33. Tell me how do you find any view element into your program?

Using with findViewById we can find view element.

34. Tell me 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.

35. Do you know where layouts are placed in android?

In The Layout folder, layouts are placed as XML files