Unit5 - Subjective Questions

CSE227 • Practice Questions with Detailed Answers

1

Define Bluetooth technology and elaborate on its primary communication principles. Provide at least three common use cases for Bluetooth in modern Android application development.

2

Compare and contrast Classic Bluetooth with Bluetooth Low Energy (BLE) across key parameters such as data throughput, power consumption, and typical application scenarios. When would an Android developer choose one over the other for a new project?

3

Describe the essential steps an Android application must take to discover available Bluetooth devices in its vicinity. Include a discussion of the necessary Android permissions required for this operation, especially considering different Android API levels.

4

Differentiate between "available devices" and "paired devices" in the context of Bluetooth. Explain how an Android application retrieves a list for each category, outlining the distinct methods involved.

5

Outline the process of initiating a connection to a specific Bluetooth device from an Android application. What are the common challenges an Android developer might face during this connection process, and how can they be mitigated?

6

Explain the concept of Wi-Fi Companion device pairing in Android. What specific problems does the Companion Device Manager API solve, and what benefits does it offer compared to traditional Wi-Fi connection methods for IoT devices?

7

Describe the typical workflow for an Android application to connect to a Wi-Fi companion device using the CompanionDeviceManager API. Include the necessary steps from permission declaration to receiving connection callbacks.

8

How do Android applications perform network operations over Wi-Fi, specifically for sending and receiving data to/from a connected device? Describe the typical APIs involved and essential considerations for reliable communication.

9

List and briefly explain the three primary motion sensors available on Android devices. Provide a distinct example use case for each in an Android application.

10

Describe how to register a SensorEventListener in an Android activity to receive data from an accelerometer. Explain the significance of sensor delay rates when registering the listener.

11

Explain the difference between a raw accelerometer reading and a linear acceleration reading in Android. Why might an application prefer to use one over the other for specific functionalities?

12

How can an Android application detect complex gestures like a "shake" using motion sensors? What specific sensor data would be relevant, and what fundamental algorithm or logic is typically employed?

13

What are the key position sensors available on Android devices? Explain how they contribute to determining a device's orientation and provide an example of their combined use for enhanced accuracy.

14

Explain the challenges in accurately determining absolute device position indoors using only built-in sensors on an Android device, without relying on external infrastructure like Wi-Fi APs or Bluetooth beacons.

15

Identify and explain at least three common environment sensors found in modern Android devices. For each sensor, provide a distinct example application where its data would be crucial for enhancing user experience or functionality.

16

How can an Android application access data from an ambient light sensor? What are the typical units of measurement for ambient light, and how might an app utilize this data for practical purposes?

17

Discuss the importance of environment sensors in developing context-aware applications. Provide a concrete example where multiple environment sensors work together to create a richer, more intelligent user experience.

18

What considerations are essential when performing network operations, particularly over Wi-Fi, in terms of user experience, battery life, and data privacy in an advanced Android application?

19

Compare and contrast Bluetooth and Wi-Fi for short-range device communication in terms of data throughput, power consumption, and setup complexity. Provide scenarios where each technology would be the optimal choice for an Android application.

20

Describe the use of the geomagnetic field sensor and gyroscope in conjunction with the accelerometer to calculate a device's orientation in 3D space. Explain the concept of sensor fusion and why it is essential for stable orientation tracking.