Android Interview Questions and Answers
Question - 41 : - Is it possible to use or add a fragment without using a user interface?
Answer - 41 : -
Yes, it is possible to do that, such as when you want to create a background behavior for a particular activity. You can do this by using add(Fragment,string) method to add a fragment from the activity.
Question - 42 : - How do you remove icons and widgets from the main screen of the Android device?
Answer - 42 : -
To remove an icon or shortcut, press and hold that icon. You then drag it downwards to the lower part of the screen where a remove button appears.
Question - 43 : - What are the core components under the Android application architecture?
Answer - 43 : -
There are 5 key components under the Android application architecture:
- – services
- – intent
- – resource externalization
- – notifications
- – content providers
Question - 44 : - What composes a typical Android application project?
Answer - 44 : -
A project under Android development, upon compilation, becomes an .apk file. This apk file format is actually made up of the AndroidManifest.xml file, application code, resource files, and other related files.
Question - 45 : - What is a Sticky Intent?
Answer - 45 : -
A Sticky Intent is a broadcast from sendStickyBroadcast() method such that the intent floats around even after the broadcast, allowing others to collect data from it.
Question - 46 : - Do all mobile phones support the latest Android operating system?
Answer - 46 : -
Some Android-powered phone allows you to upgrade to the higher Android operating system version. However, not all upgrades would allow you to get the latest version. It depends largely on the capability and specs of the phone, whether it can support the newer features available under the latest Android version.
Question - 47 : - What is portable wi-fi hotspot?
Answer - 47 : -
Portable Wi-Fi Hotspot allows you to share your mobile internet connection to other wireless device. For example, using your Android-powered phone as a Wi-Fi Hotspot, you can use your laptop to connect to the Internet using that access point.
Question - 48 : - What is an action?
Answer - 48 : -
In Android development, an action is what the intent sender wants to do or expected to get as a response. Most application functionality is based on the intended action.
Question - 49 : - What is the difference between a regular bitmap and a nine-patch image?
Answer - 49 : -
In general, a Nine-patch image allows resizing that can be used as background or other image size requirements for the target device. The Nine-patch refers to the way you can resize the image: 4 corners that are unscaled, 4 edges that are scaled in 1 axis, and the middle one that can be scaled into both axes.
Question - 50 : - What language is supported by Android for application development?
Answer - 50 : -
The main language supported is Java programming language. Java is the most popular language for app development, which makes it ideal even for new Android developers to quickly learn to create and deploy applications in the Android environment.