0% found this document useful (0 votes)
421 views3 pages

Android Programming Question Bank

The document contains a list of 63 questions related to Android programming. The questions cover topics like Android architecture, activities, intents, broadcasts, databases, services, and other core Android concepts. Answers to the questions would require explaining and providing code examples for key Android development aspects.
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)
421 views3 pages

Android Programming Question Bank

The document contains a list of 63 questions related to Android programming. The questions cover topics like Android architecture, activities, intents, broadcasts, databases, services, and other core Android concepts. Answers to the questions would require explaining and providing code examples for key Android development aspects.
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

Question Bank

Name of Subject: Android Programming, Course code: BTETPE604F


Class: TY Dept. Electronics and Telecommunication

1. List out methods (states) of Android activity life cycle and explain all
2. Draw and explain Android Architecture in detail?
3. Compare Android and Symbian OS, comment on best OS.
4. Write a code to send data from one activity to another activity using implicit intent.
5. List out various layouts available in Android. Explain anyone in detail.
6. What is Intent? Explain Explicit vs. Implicit intents with Example.
7. Make Application for student’s registration of basic details like Name, Enrollment No, Branch, Address
and Mobile Number
8. Compare implicit and explicit intents
9. Draw and explain Activity life cycle
10. Describe Shared preference
11. Write short notes on Broadcast Receivers
12. List and explain Android libraries in Android Architecture in detail
13. Describe Android virtual Device and DVM (Dalvik Virtual Machine)
14. List out the names of mobile operating systems explain each in brief?
15. What is the use of Broadcast Receiver? How to add it in Android App?
16. Describe various features of Android
17. List down the Advantage and Disadvantage of SQLite Database.
18. Design a simple Android application Program move one page to another page using Intent (Write
JAVA and XML Code)
19. Describe services in Android? Explain foreground, Background and Bond services?
20. Create an android application that will convert distance entered into Kilometers into Meters and
Centimeters. (Write XML file and Java file only)
21. Design a simple Android application to display a toast message: “Hello how are you today!!” (Write
JAVA and XML Code)
22. Write code to send data from one activity to other activity using Explicit Intent.
23. What is Intent? Explain Explicit vs. Implicit intents
24. Compare implicit and explicit intents
25. Write a Program move one page to another page using Intent.
26. How to manage the different screen sizes and orientations.
27. Describe broadcast receivers? How is it implemented?
28. List down the Advantage and Disadvantage of SQLite Database.
29. Describe Shared preference
30. Explore SMSManager class in an Android
31. Explore Android Telephony with architecture
32. Develop an application to send and receive SMS. (Write ONLY .java and permission tag in manifest
file)
33. Describe Bluetooth services in Android
34. Describe Android Network Connectivity Services?
35. Write short notes on AlarmManager
36. What are widgets available in Android? Explain any two widgets with Example
37. Explain audio player activity with .java file
38. Explain video player activity with .java file
39. What is Geocoder? Explain in brief.
40. Explain in brief location based services
41. Explain networking concept in android programming
42. Design a simple Android application to print “Hello World”
43. ( XML & Java code )
44. What is location based services in Android?
45. Explain how changes in phone state are monitored?
46. Explain following files. I. Main activity file II. Manifest file III. String file IV. Layout file
47. What are Android Web Services? How do Web Servers work?
48. Explore Web Services in Android
49. Describe Android Network Connectivity Services
50. Write a program to capture an image using camera and display it.
51. Enlist manifest declarations for playing audio and video.
52. Enlist manifest declarations for playing audio and video.
53. What is service in android? How it is implemented?
54. What is the difference between File, Class, and Activity in android?
55. What are broadcast receivers? How is it implemented?
56. How local Bluetooth devices are controlled in Android?
57. Explain in brief about the important file and folder when you create a new app?
58. What are various Media Player States
59. Draw state diagram for media file.
60. What database is used in Android? How does it differ from client-server database management
systems?
61. Explain networking in android?
62. Enlist methods used in MediaRecorder Class.
63. Design a simple Android application for video player activity with .java file

Common questions

Powered by AI

Broadcast receivers in Android allow applications to register for system or application events. When an event occurs, the system broadcasts it, and the interested applications can respond to these events, such as receiving SMS or battery status changes. Implementation requires registering the receiver in the AndroidManifest.xml and defining the actions it should listen to, or creating the receiver programmatically using Context.registerReceiver().

Applications can monitor changes in phone state through the use of broadcast receivers. The TelephonyManager class allows applications to listen for changes in phone states like call state, cell location or if a network is available. Implementing PhoneStateListener with overridden callback methods is a common approach to detect and respond to these changes, which is essential for apps needing to adapt to varying telephony status .

The Dalvik Virtual Machine (DVM) is optimized for Android devices, designed to run applications efficiently on devices with limited memory and CPU. Unlike the JVM, DVM uses the dex (Dalvik Executable) format, which is more compact and suited for low-memory environments. Dalvik also facilitates compilation of classes once and caching the results for efficient execution. This differs from JVM's approach, which emphasizes cross-platform functionality over performance on resource-constrained devices .

Explicit intents specify the component to start by name, used mainly to start a specific activity within the same app. Implicit intents declare an action and allow other applications to handle them, typically used for actions like share or view, where the specific app handling the intent can vary .

Android's Geocoder class provides geocoding and reverse geocoding functionalities, allowing the translation of addresses into geographic coordinates and vice versa using Android-specific APIs without needing third-party services. Traditional geocoding services might offer more features and higher accuracy but require internet access or additional libraries, whereas Geocoder relies on available Android libraries, making it more integrated but less flexible and often reliant on device resources .

The Android activity life cycle consists of several states: onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy(). These states allow developers to manage the state of an activity as it moves through its lifecycle. Understanding this life cycle is crucial because it helps in resource management, ensuring efficient memory usage, and correctly handling user input and UI display. It also aids in saving and restoring the activity state during configuration changes, such as screen rotations .

Advantages of SQLite include its serverless architecture and simplicity, which require no configuration, and it's lightweight, resulting in minimal memory footprint. It is ACID-compliant and supports most SQL standards, making it reliable for local data storage. However, disadvantages include limited support for concurrent writes, which could be a bottleneck for high-throughput applications, and a cap on the size of the database limited by device storage space .

Android architecture consists of five major components: the Linux kernel, libraries, Android Runtime (ART), application framework, and applications. The Linux kernel manages core system services and hardware abstraction. Libraries, sitting above the kernel, include system utilities, and the ART runs Java bytecode in a more optimized manner than its predecessor DVM. The application framework provides APIs for app components, while applications are at the top layer, interacting with the lower layers to perform various functions through these APIs and services .

Managing different screen sizes and orientations is critical to ensure a consistent and user-friendly interface across diverse Android devices. It involves using responsive design techniques, such as flexible layouts, resource qualifiers, and dynamic adjustment of UI elements. This ensures that applications provide an optimal user experience, maintaining usability and aesthetics, regardless of device type or screen configuration .

AlarmManager is used in Android to schedule tasks to run at a future time. It can set alarms that trigger an event or start a service at a specified time, even if the device is asleep. However, its use is more suited for lightweight and non-repetitive tasks as it is not precise due to Android's power optimization practices. It may also not trigger exact timings due to system adjustments for battery conservation, requiring careful consideration of its limitations .

You might also like