0% found this document useful (0 votes)
9 views7 pages

mad answers detailed

The document provides detailed, exam-ready answers for 15 Android development questions, covering topics such as SQLite database usage, API key acquisition, geocoding, fragments, Google Maps API integration, Google Play Console features, SMS services, sensors, multimedia frameworks, application deployment, widget customization, camera usage, Bluetooth control, app uploading to the Play Store, and push notification services. Each answer includes essential steps and code snippets where applicable, aimed at helping developers understand and implement these concepts effectively. The content is structured to be concise yet informative, suitable for exam preparation.

Uploaded by

anuushkaaa69
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)
9 views7 pages

mad answers detailed

The document provides detailed, exam-ready answers for 15 Android development questions, covering topics such as SQLite database usage, API key acquisition, geocoding, fragments, Google Maps API integration, Google Play Console features, SMS services, sensors, multimedia frameworks, application deployment, widget customization, camera usage, Bluetooth control, app uploading to the Play Store, and push notification services. Each answer includes essential steps and code snippets where applicable, aimed at helping developers understand and implement these concepts effectively. The content is structured to be concise yet informative, suitable for exam preparation.

Uploaded by

anuushkaaa69
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/ 7

Perfect, tulip🌷 .

I’ve extracted all 15 questions from your image, and now I’m going to give you
well-explained, exam-ready answers for each one. They’ll be detailed enough for 4-mark
questions but concise enough to avoid getting too wordy.

1. Develop an Android application to store customer details like ID, name,


mobile and retrieve customer information from SQLite database.

In Android, to store and retrieve customer details, we use SQLite, which is a lightweight, local
database system.

Steps:

1.​ Create UI: Use EditText for ID, name, and mobile; use buttons for save and retrieve.​

2.​ SQLiteOpenHelper: Create a class extending it, override onCreate() and


onUpgrade() to manage DB creation.​

3.​ Insert Function: Use ContentValues to insert customer data.​

4.​ Retrieve Function: Use a Cursor to fetch and display data using ListView or
RecyclerView.​

Example table:

CREATE TABLE customer(id INTEGER PRIMARY KEY, name TEXT, mobile TEXT);

This helps in persistent local storage, ideal for offline apps.

2. List out steps to get API Key.

To use services like Google Maps or Firebase, we need an API Key.

Steps:

1.​ Visit https://console.cloud.google.com.​

2.​ Create a new project.​


3.​ Go to Library → Search and enable desired API (e.g., Maps SDK).​

4.​ Go to Credentials → Click on Create Credentials → API Key.​

5.​ Copy the key and paste it in your app.​

6.​ Optionally, restrict it for security (like to a package name or IP).​

This key authenticates your app for cloud services.

3. Define Geocoding and Reverse Geocoding.

●​ Geocoding: Converting a location name (e.g., “Taj Mahal”) into latitude & longitude.​

●​ Reverse Geocoding: Converting coordinates into a readable address (e.g., 28.61,


77.23 → "Rajpath Area, Delhi").​

Android provides the Geocoder class for both. These are crucial for map-based services and
location tracking.

4. Define Fragment and Broadcast Receiver.

●​ Fragment: A portion of UI inside an activity, reusable, modular, and has its own lifecycle.​

●​ Broadcast Receiver: Listens to system-wide broadcasts like battery low, incoming SMS,
or custom intents. Doesn’t have a UI.​

Used for better UI control and background event handling.

5. Develop a navigational application to display a map using Google Maps


API.

Steps:

1.​ Get an API Key from Google Cloud Console.​


2.​ Add it in AndroidManifest.xml.​

3.​ Use SupportMapFragment in layout.​

4.​ In onMapReady(), use GoogleMap to show map.​

mMap.addMarker(new MarkerOptions().position(location).title("Here"));
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(location, 15));

Allows location display, zoom, markers, etc., useful in logistics, delivery, or travel apps.

6. Explain Google Play Console features for Android developers.

The Google Play Console helps publish and manage Android apps.

Key features:

●​ App release & testing: Manage production, alpha, beta versions.​

●​ Crash reports & ANR: View technical issues via Play Console.​

●​ User reviews: Respond and manage feedback.​

●​ Revenue & stats: Analyze installs, uninstalls, revenue, etc.​

●​ Device compatibility: Set min SDK and target devices.​

7. Explain SMS service in Android.

The SMSManager API in Android allows sending and receiving text messages
programmatically.

To send SMS:

SmsManager sms = SmsManager.getDefault();


sms.sendTextMessage(phoneNo, null, message, null, null);
Permissions needed:

<uses-permission android:name="android.permission.SEND_SMS"/>

Useful for OTPs, alerts, reminders, etc.

8. Explain sensors in Android.

Android supports various hardware sensors through the SensorManager API.

Types:

●​ Motion Sensors: Accelerometer, gyroscope.​

●​ Environmental Sensors: Temperature, pressure, humidity.​

●​ Position Sensors: Magnetometer, proximity.​

Sensors enhance app interactivity (e.g., fitness trackers, games).

9. Explain multimedia framework in Android.

Android's multimedia framework supports:

●​ Audio: MP3, WAV, MIDI​

●​ Video: MP4, 3GP​

●​ Images: PNG, JPG​

●​ Streaming: Online playback​

APIs like MediaPlayer, AudioManager, Camera, and VideoView help implement


multimedia functions in apps.

10. List the steps in Application Deployment.


Steps:

1.​ Testing: Perform thorough testing on emulators and devices.​

2.​ Generate signed APK: Using Android Studio.​

3.​ Create a Play Console account.​

4.​ Upload APK/AAB: Fill in descriptions, screenshots.​

5.​ Set pricing & countries.​

6.​ Submit for review.​

After approval, your app becomes publicly available.

11. Customize Predefined Widgets in Android.

Predefined widgets like Button, TextView, etc., can be customized using:

●​ XML attributes: android:textColor, android:background​

●​ Styles/Themes: Defined in styles.xml​

●​ Java/Kotlin: button.setText("Hello")​

Also, you can extend widgets by creating custom classes.

12. Explain how to use camera in Android and write code to capture image.

Use Camera Intent to capture images.

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);


startActivityForResult(intent, 100);

In onActivityResult(), fetch the image:


Bitmap photo = (Bitmap) data.getExtras().get("data");
imageView.setImageBitmap(photo);

Add permissions:

<uses-permission android:name="android.permission.CAMERA"/>

13. Develop a program to turn on and off Bluetooth.

Enable/Disable Bluetooth:

BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();


if (!bluetoothAdapter.isEnabled()) {
bluetoothAdapter.enable();
} else {
bluetoothAdapter.disable();
}

Permissions:

<uses-permission android:name="android.permission.BLUETOOTH"/>

Essential for IoT, file sharing, device pairing.

14. Explain the procedure of uploading app to Play Store.

1.​ Generate Signed APK/AAB.​

2.​ Register on Google Play Console.​

3.​ Create an App Listing.​

4.​ Upload APK/AAB + screenshots + app info.​

5.​ Choose Pricing and Distribution.​

6.​ Submit for review.​


7.​ Once approved, the app goes live!​

15. Explain Push Notification service.

Push notifications are alerts sent from server to app (even when app is closed).

Using Firebase Cloud Messaging (FCM):

1.​ Integrate FCM SDK.​

2.​ Register the app to receive token.​

3.​ Send notification via Firebase Console or server.​

4.​ Handle message in onMessageReceived().​

@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
// Show notification
}

Used in chats, news apps, reminders, etc.

All done, meri jaan 🖤 You’re now armed with complete, beautifully crafted answers.😘

You might also like