0% found this document useful (0 votes)
529 views5 pages

Key Android Development Concepts

Android is a stack of software that includes an operating system, middleware, and applications. The Android application architecture includes activities, services, intents, resources, notifications, and content providers. An activity performs actions on the screen, an intent connects applications internally or externally, and the APK file is the compressed package containing all application files and the manifest.

Uploaded by

M Husnain Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
529 views5 pages

Key Android Development Concepts

Android is a stack of software that includes an operating system, middleware, and applications. The Android application architecture includes activities, services, intents, resources, notifications, and content providers. An activity performs actions on the screen, an intent connects applications internally or externally, and the APK file is the compressed package containing all application files and the manifest.

Uploaded by

M Husnain Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Q1 What is Android?

Android is a stack of software for mobile devices which includes an Operating System,
middleware and some key applications. The application executes within its own process and its
own instance of Dalvik Virtual Machine.
Q2 Describe Android application Architecture?
Android application architecture has the following [Link] are as follows −
Services − It will perform background functionalities
Intent − It will perform the inter connection 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
Q3 What is An Activity?
Activity performs actions on the [Link] you want to do any operations, we can do with
activity
Q4 What is the APK format?
The Android packaging key is compressed with classes,UI's, supportive assets and [Link]
files are compressed to a single file is called APK.
Q5 What is An Intent?
It is connected to either the external world of application or internal world of application ,Such
as, opening a pdf is an intent and connect to the web [Link].
Q6 What is an explicit Intent?
Android Explicit intent specifies the component to be invoked from activity. In other words, we
can call another activity in android by explicit intent.
Q7 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.
Q8 What is An android manifest file?
Every application must have an [Link] file (with precisely that name) in its root
directory. The manifest file presents essential information about your app to the Android
system, information the system must have before it can run any of the app's code.
Q9 What language does android support to develop an application?
Android applications has written using the java(Android SDK) and C/C++(Android NDK).
Q10 What do ADT stands for?
ADT stands for Android development tool,This is useful to develop the applications and test the
applications.
Q11 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)
Q12 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.
Q13 What is a service in android?
The Service is like as an activity to do background functionalities without UI interaction.
Q14 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.
Q15 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.
Q16 What is container in android?
The container holds objects,widgets,labels,fields,icons,[Link].
Q17 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
Q18 What is ANR in android?
ANR stands for application is not responding, basically it is a dialog box that appears when the
application is not responding.
Q19 What is an Adapter in android?
The Adapter is used to create child views to represent the parent view items.
Q20 What is shared preferences in android?
Shared preferences are the simplest mechanism to store the data in XML documents.
Q21 What are the key components in android architecture?

 Linux Kernel
 Libraries
 Android Framework
 Android applications.
Q22 What does the intent filter do in android?
Intent filters are filter out the intents.
Q23 Where layouts are placed in android?
In The Layout folder, layouts are placed as XML files
Q24 What is nine-patch images tool in android?
We can change bitmap images in nine sections as four corners,four edges and an axis
Q25 How many dialog boxes do support in android?
AlertDialog, ProgressDialog,DatePickerDialog, and TimePickerDialog
Q26 What are the exceptions available in android?
InflateException,[Link],[Link],a
nd [Link]
Q27 What is the order of dialog-box in android?
Positive, Neutral, Negative.
Q28 What are the different storages available in android?
Shared Preferences,Internal Storage,External Storage,SQLite Databases and Network
Connection
Q29 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.
Q30 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
Q31 How is the use of web view in Android?
WebView is UI component that can display either remote web-pages or static HTML
Q32 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.
Q33 How does android track the application on process?
Android provides a Unique ID to all applications is called as Linux ID,this ID is used to track
each application.
Q34 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.
Q35 Define the application resource file in android?
JSON,XML [Link] are application [Link] can injected these files to build process
and can load them from the code.
Q36 How to launch an activity in android?
Using with intent, we can launch an activity.
Intent intent = new Intent(this, [Link]);

startActivity(intent);
Q37 How do you pass the data to sub-activities android?
Using with Bundle, we can pass the data to sub activities.
Bundle bun = new Bundle();

[Link]("EMAIL", "contact@[Link]");
Q38 What is singleton class in android?
A class which can create only an object, that object can be share able to all other classes.
Q39 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.
Q40 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.
Q41 Which kernal is used in android?
Android is customized Linux 3.6 kernel.
Q42 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.
Q43 What folders are impotent in android project?
[Link]
[Link]
bin/
src/
res/
assets/
Q44 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.
Q45 How do you find any view element into your program?
Using with findViewById we can find view element.
Q46 What is drawable folder in android?
A compiled visual resource that can used as a backgrounds,banners, icons,splash screen etc.
Q47 What are the type of flags to run an application in android?
FLAG_ACTIVITY_NEW_TASK
FLAG_ACTIVITY_CLEAR_TOP.

Common questions

Powered by AI

The Activity Manager is responsible for managing the lifecycle of apps, maintaining a seamless user experience by organizing the stack of running activities and providing a backstack for navigation. It ensures efficient memory use and resource allocation by facilitating activity transitions and handling activity pause, resume, and destroy functions .

The Dalvik Virtual Machine (DVM) is responsible for running applications in Android. Each application runs in its own process and has its own instance of DVM, which allows for running Java on Android by converting Java bytecode into .dex format that is suitable for Dalvik .

Implicit intents do not specify the component to be invoked. Instead, they provide information about available components that might be capable of handling the intent, allowing Android to determine the best component for the task .

Explicit intents specify the exact component to start within the application, typically used to start a specific activity or service within the same application. In contrast, implicit intents do not specify a component and instead, describe the action to be performed, which the system evaluates to find appropriate components available across different applications .

The AndroidManifest.xml file is critical for every application as it provides essential information to the Android system about the app prior to executing any of its code. This information includes the app's name, version, permissions it needs, and the components of the app, thereby facilitating communication between the system and the application .

Android does not natively run Java byte code due to its reliance on the Dalvik Virtual Machine (DVM) instead of the Java Virtual Machine (JVM). Dalvik is optimized for resource-constrained environments and compiles Java byte code into .dex files suitable for the limited processing and memory capacity of mobile devices. While Dalvik enhances performance and efficiency on mobile hardware, this also necessitates a different compilation process, leading to non-compatibility with standard Java library implementations .

Android framework libraries provide pre-built functionality like data storage, media playback, and user interface creation, which simplifies the development process by allowing developers to focus on building unique features instead of re-implementing common tasks. They are integral to the Android architecture, sitting between the Linux Kernel and applications .

A content provider component is used to supply data from one application to another upon request, handled via the ContentResolver class. It allows different methods to store data such as in databases, files, or over a network, aiding in the structured sharing and management of data across different applications .

A Broadcast Receiver facilitates communication between an Android service and UI components. By using a dynamic Broadcast Receiver within an activity, it can listen for broadcasts sent from a service. When triggered, the receiver can then update the UI components accordingly, ensuring updated information is presented to the user without directly linking the service to the UI .

Shared preferences are the simplest storage mechanism in Android used to store private primitive data in key-value pairs in XML documents. They are typically used for storing small amounts of data such as user settings and preferences not suitable for databases or files .

You might also like