0% found this document useful (0 votes)
31 views

Android

Uploaded by

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

Android

Uploaded by

surajsc2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

#. What are the features of Android?= 1.

Application Framework: It enables reuse and replacements of


components. 2. Dalvik Virtual Machine: It is optimized for mobile device. 3. Integrated
Browser: It is based on open source web kit engine. 4. Handset layouts: Optimized
Graphics: It is powered by a custom 2D graphics Library 3D Graphics based on the OpenGL ES 1.0
Specification. 5. Storage: SQLite, a lightweight relational database.
#. Explain SDK platform in deatil. =An SDK platform actually corresponds to an Android platform. Each
platform includes a system image, libraries, and sample codes. An Android Virtual Device (AVD) is also
created based on an SDK platform.
#. Enlist reasons for why use Android OS? = 1)Variety: Android offers a wide range of devices with different
specs and designs. 2)Affordable pricing: Android phones are available at different prices.
3)Customization: Android allows for customization of the user interface. 4)Widgets:
Android has widgets that allow users to access information quickly. 5)Multi-tasking:
Android allows users to run multiple apps at the same time.
#. Write short note on: History of Android. = Android is a mobile operating system developed by
Google, based on a modified version of the Linux kernel and other open source software and designed
primarily for touch screen mobile devices such as smart phones and tablets.
#. What is meant by AVD?= An Android Virtual Device (AVD) is an emulator configuration that allows
developers to test the application by simulating the real device capabilities. We can configure the AVD by
specifying the hardware and software options. AVD manager enables an easy way of creating and managing
the AVD with its graphical interface.
#. Native libraries= When we say Android native libraries, what do we mean? Android native libraries are
included in APKs as . so , shared object libraries, in the ELF file format. If you have analyzed Linux binaries
previously, it's the same format. These libraries by default are included in the APK at the file path
/lib/<cpu>/lib<name>.
#. What is activity? =An activity is a window that contains the user interface of your applications. An
application can have zero or more activities. Typically, applications have one or more activities, and the
main aim of an activity is to interact with the user. From the moment an activity appears on the
screen to the moment it is hidden, it goes through a number of stages, known as an activity’s life cycle.
#. What is intent? = The Android operating system uses an asynchronous messaging mechanism to
match task requests with the appropriate Activity. Each request is packaged as an Intent .The intent
generally consists of activities to be done, the parameter over which this activity is to be performed,
and the application to perform this action.
#. What is view? = 1)A view is a widget that has an appearance on screen. Examples of views are buttons,
labels, and text boxes. A view derives from the base class android .view.View. 2)The basic building
block for User Interface (UI) is a View. Views are user interface elements that display data and
respond to user actions.
#. What is the TextView? =TextView is a simple widget that is seen in every android application. This widget
is used to display simple text within the android application. We can add custom styling to the text that we
have to show.
#) What is ScrollView?. = A ScrollView is a special type of FrameLayout in that it enables users to
scroll through a list of views that occupy more space than the physical display. The ScrollView can
contain only one child view or ViewGroup, which normally is a LinearLayout.
#. What is layout? Enlist Layout Managers. =The term Android device covers a vast array of tablet and smart
phone products with different screen sizes and resolutions. •As a result, application
user interfaces must now be carefully designed to ensure correct presentation on as wide a range of
display sizes as possible. A key part of this is ensuring that the user interface layouts resize correctly
when run on different devices.
(#)TableLayout = The TableLayout Layout groups views into rows and columns. •You use the
<TableRow> element to designate a row in the table. Each row can contain one or more views. Each
view you place within a row forms a cell. The width of each column is determined by the largest width of
each cell in that column.
#)Constraint Layout = Constraint Layout is a layout on Android that gives you adaptable and flexible ways to
create views for your apps. •Constraint Layout , which is now the default layout in Android
Studio, gives you many ways to place objects.
#)FrameLayout =The FrameLayout layout is a placeholder on screen that you can use to display a
single view. Views that you add to a FrameLayout are always anchored to the top left of the layout.
#. With the help of example explain RadioButton. =1)The RadioButton has two states: either checked or
unchecked. A RadioGroup is used to group one or more RadioButton views, thereby allowing only
one RadioButton to be checked within the RadioGroup. 2) An example of radio buttons from
Material Design. To create each radio button option, create a RadioButton in your layout. Because radio
buttons are mutually exclusive, group them inside a RadioGroup .
#. Explain the AutoCompleteTextView in detail. =The AutoCompleteTextView is a view that is similar to
EditText (in fact it is a subclass of EditText), except that it automatically shows a list of completion
suggestions while the user is typing. Android AutoCompleteTextView is a editable text field, it
displays a list of suggestions in a drop down menu from which user can select only one suggestion or value.
# DatePicker=Another view that is similar to the TimePicker is the DatePicker. Using the DatePicker,
you can enable users to select a particular date on the activity.
# TimePicker. =The TimePicker view enables users to select a time of the day, in either 24-hour mode or
AM/PM mode. The following example shows you how to use the TimePicker in the latest version of the
Android SDK. When you are creating the project for this sample, be sure that you choose an SDK that is
level 23 or greater.
#. explain spinner. =The ListView displays a long list of items in an activity, but you might want the user
interface to display other views, i.e. you do not have the additional space for a full-screen view, such as the
ListView. •In such cases, you should use the SpinnerView. The SpinnerView displays one item at a time
from a list and enables users to choose from them.
#Write steps to print hello message in Android=Step 1 : Start Android Studio and Select Target Android
Device. step 2 : Click on Next step 3 : Write Main Activity name Click on Finish Button
step 4 : Edit Activity_main.xml file step 5 : Click on Run Button and that shows Emulator
#. Explain ListFragment with example.= A fragment that displays a list of items by binding to a data source
such as an array or Cursor, and exposes event handlers when the user selects an item. The basic
implementation of list fragment is for creating list of items in fragments.
#Explain android architecture = Android operating system is a stack of software components. Main
components of Android Operating system Architecture or Software Stack are Linux kernel, native libraries,
Android Runtime, Application Framework and Applications.

You might also like