0% found this document useful (0 votes)
580 views4 pages

Android Programming Question Bank

Uploaded by

prachinpatil19
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)
580 views4 pages

Android Programming Question Bank

Uploaded by

prachinpatil19
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

Android Programming Question Bank

UNIT I
1. Describe in brief History of android
2. Describe the Application Framework Layer within the Android
architecture
3. Describe the phases in the Android Activity Lifecycle.
4. Define what a fragment is in Android and outline the various types of
fragments
5. Write short note on features of android
6. Describe in brief Android architecture with diagram
7. Write the code to invoke the built-in Browser application.
8. Explain the concept of Intents in Android and outline their different
types.
9. Explain the components of Android SDK
10. Explain following methods
a. onCreate()
b. onStart()
c. onResume()
d. onRestart()
e. onDestroy()

UNIT II
1. List down and explain view groups in android
2. Explain in brief FrameLayout in android along with its attributes
3. Explain in brief LinearLayout in android along with its attributes
4. Explain in brief RelativeLayout in android along with its attributes
5. Explain in brief TableLayout in android along with its attributes
6. Explain How to handle display orientation changes in android
7. List down and explain the components included in the ActionBar
8. Explain attributes of the ItemMenu from menu resource on Action Bar
9. Explain the difference between padding and margin along with an
example
10. List down the difference between View and ViewGroup

UNIT III
1. Explain in brief TextView in android along with its attributes
2. Explain in brief Checkbox in android along with its attributes
3. Explain the following along with example
a. drawableTop
b. drawableRight
c. drawableLeft
d. drawableBottom
4. Explain Difference between Button and Image button
5. Write down the code to set background in image button
6. Explain RadioButton and RadioGroup with example
7. Explain the TextOn and TextOff Method in ToggleButton
8. Write note on TimePicker and DatePicker
9. Explain the following methods in progress bar
a. getMax()
b. getProgres()
c. android:progressDrawable
d. Android:progress
e. Indeterminate
10. Explain in brief AutoCompleteTextView in android along with array
adapter

UNIT IV
1. Explain in brief ImageSwitcher in android along with example
2. What is GridView in android
3. Write Code on displaying picture in image views
4. Explain difference between Options Menu and Context Menu
5. How to open and close database in android explain with an example
6. Explain two constructors of SQLiteOpenHelper Class
7. Explain following methods in SQLiteOpenHelperClass
a. onCreate()
b. onUpgrade()
c. close()
d. onDowngrade()
8. Explain following methods in SQLiteDatabase
a. execSql()
b. insert()
c. update(0
d. query()

UNIT V
1. Explain How to get feedback after sending the message
2. Explain in brief sendTextMessage method along with its arguments
3. Write a code to send SMS message using Intent
4. Write Code to send an email
5. How to add built- in zoom controls on google maps. Explain with an
example
6. How to change the map views. Explain with an example.
7. Write down the steps to add google maps in android application
8. Explain how to Navigate to a Specific Location in google map

Common questions

Powered by AI

FrameLayout in Android is distinguished by its simplicity, designed to hold a single child view, positioning it at the top-left corner of the container. It is typically used to display a single view element or overlay additional elements over the primary view. Its attributes allow customization in terms of layout margins, gravity, and dimensions, making it useful for simple view hierarchies where layering is key .

A Button in Android is a UI component that displays text to perform actions, while an ImageButton shows an image as its content, acting like a customizable button. An ImageButton's background can be set using the android:background attribute or programmatically using setBackgroundResource() in the Java code, offering flexibility in design and user interaction .

Intents facilitate component communication in Android by allowing components to request actions from other components, either within the same app or between different applications. Intents can be explicit, specifying the component to start, or implicit, specifying an action to perform, enabling Android to choose the appropriate component to handle it. This mechanism supports seamless app integration, enhancing user experience and app functionality .

AutoCompleteTextView enhances usability in Android by providing users with suggestions based on partial input, improving input efficiency and reducing entry errors. Its functionality relies on an ArrayAdapter, which populates the suggestions dropdown by managing a dataset, such as an array of strings, providing dynamic and relevant suggestions as the user types .

The Android Activity Lifecycle manages state transitions through a series of callback methods that allow developers to control and maintain the state of an activity. Key methods include onCreate(), onStart(), onResume(), onPause(), onStop(), onRestart(), and onDestroy(). These methods ensure that the app behaves consistently as it transitions between active, paused, stopped, or destroyed states, adapting to changes in visibility, user interactions, and memory constraints .

The Application Framework Layer in Android architecture provides a high-level interface for application development. It abstracts hardware interactions and complex operations, allowing developers to manage the app's UI, resources, and components like Activities and Services. This layer is significant as it enables efficient app creation and management by simplifying code complexity and providing reusable tools and services .

The onCreate() method in the SQLiteOpenHelper class is called when the database is created for the first time, allowing the setup of the database schema by executing SQL statements. The onUpgrade() method is invoked when the database version changes, designed to manage schema updates, data migrations, or other crucial adjustments ensuring smooth database evolution without data loss .

The primary components of the Android SDK include the Android API libraries, development tools for building applications, and system images for emulation and testing. These components provide a comprehensive environment for creating apps, offering tools to compile code, manage resources, and debug applications, as well as libraries that facilitate connectivity, data storage, and user interface design .

Handling layout for various screen orientations in Android involves using resource directories and overriding configuration changes. Developers can define separate layout resources for different orientations in res/layout and res/layout-land. Additionally, they can manage orientation changes through configuration qualifiers or by managing lifecycle methods to maintain UI consistency and data state across changes .

Zoom controls can be integrated into Google Maps in Android by enabling the built-in UI settings using the GoogleMap's getUiSettings() method followed by setZoomControlsEnabled(true). This integration offers users enhanced navigation capabilities, improving map interaction by allowing them to zoom in and out seamlessly, accommodating varied user preferences and accessibility needs .

You might also like