Q1: What is Android?
A: Android is an open-source, Linux-based operating system used in mobiles, tablets, televisions, etc.
Q2: Who is the founder of Android?
A: Andy Rubin.
Q3: Explain the Android application Architecture.
A: Following is a list of components of Android application architecture:
Services: Used to perform background functionalities.
Intent: Used to perform the interconnection between activities and the data passing mechanism.
Resource Externalization: strings and graphics.
Notification: light, sound, icon, notification, dialog box and toast.
Content Providers: It will share the data between applications.
Q4: What are the code names of android?
A: Aestro
Blender
Cupcake
Donut
Eclair
Froyo
Gingerbread
Honeycomb
Ice Cream Sandwich
Jelly Bean
KitKat
Lollipop
Marshmallow
Q5: What are the advantages of Android?
A: Open-source: It means no license, distribution and development fee.
Platform-independent: It supports Windows, Mac, and Linux platforms.
Supports various technologies: It supports camera, Bluetooth, wifi, speech, EDGE etc. technologies.
Highly optimized Virtual Machine: Android uses a highly optimized virtual machine for mobile devices, called DVM (Dalvik Virtual Machine).
Q6: Does android support other languages than java?
A: Yes, an android app can be developed in C/C++ also using android NDK (Native Development Kit). It makes the performance faster. It should be used with Android SDK.
Q7: What is activity in Android?
A: Activity is like a frame or window in java that represents GUI. It represents one screen of android.
Q8: What are the core building blocks of android?
A: The core building blocks of Android are:
Activity
View
Intent
Service
Content Provider
Fragment etc.
Q9: What are the life cycle methods of android activity?
A: There are 7 life-cycle methods of activity. They are as follows:
onCreate()
onStart()
onResume()
onPause()
onStop()
onRestart()
onDestroy()
Q10: What is intent?
A: It is a kind of message or information that is passed to the components. It is used to launch an activity, display a web page, send SMS, send email, etc. There are two types of intents in android:
Implicit Intent
Explicit Intent
Q11: Define Android toast.
A: An android toast provides feedback to the users about the operation being performed by them. It displays the message regarding the status of operation initiated by the user.
Q12: Explain the use of ‘bundle’ in android?
A: We use bundles to pass the required data to various subfolders.
Q13: Give a list of impotent folders in android
A: The following folders are declared as impotent in android:
AndroidManifest.xml
build.xml
bin/
src/
res/
assets/
Q14: What is an application resource file?
A: The files which can be injected for the building up of a process are called as application resource file.
Q15: Can the bytecode be written in java be run on android?
A: No
Q16: List the various storages that are provided by Android.
A: The various storage provided by android are:
Shared Preferences
Internal Storage
External Storage
SQLite Databases
Network Connection
Q17: How are layouts placed in Android?
A: Layouts in Android are placed as XML files
Q18: What is the implicit intent in android?
A: The Implicit intent is used to invoke the system components.
Q19: Where are layouts placed in Android?
A: Layouts in Android are placed in the layout folder.
Q20: How to call another activity in android?
A: Intent i = new Intent(getApplicationContext(), ActivityTwo.class);
startActivity(i);
Q21: What is the name of the database used in android?
A: SQLite: An opensource and lightweight relational database for mobile devices.
Q22: Which kernel is used in Android?
A: Android is a customized Linux 3.6 kernel.
Q23: Name the dialog box which is supported by Android?
A: Alert Dialog
Progress Dialog
Date Picker Dialog
Time picker Dialog
Q24: Name some exceptions in Android?
A: Inflate Exception
Surface. Out Of Resource Exception
Surface Holder. Bad Surface Type Exception
Window Manager. Bad Token Exception
Q25: What are the basic tools used to develop an Android app?
A: JDK
Eclipse+ADT plugin
SDK Tools
Q26: What is DDMS?
A: DDMS stands for Dalvik Debug Monitor Server. It gives the wide array of debugging features:
Port forwarding services
Screen capture
Thread and heap information
Network traffic tracking
Location data spoofing
Q27: What is sleep mode in Android?
A: In sleep mode, CPU is slept and doesn’t accept any commands from android device except Radio interface layer and alarm.
Q28: What is a singleton class in Android?
A: A singleton class is a class which can create only an object that can be shared by all other classes.
Q29: What do you mean by a drawable folder in Android?
A: In Android, a drawable folder is compiled a visual resource that can use as a background, banners, icons, splash screen, etc.
Q30: What is View Group in Android?
A: View Group is a collection of views and other child views. It is an invisible part and the base class for layouts.
Comments are closed.