1. List any four attributes of check box.
Ans:
2. State syntax to display built in zoom control.
Ans: a) Built in Zoom control in Google map can be displayed with :
UiSettings.setZoomControlsEnabled(true);
OR
b) In case, while display Google map by intent, default zoom level can be given in
the form of data as
geo:latitude,longitude?z=zoom where lat and lag are for location and zoom level is to set initial zoom level
which
ranges from 0 to 21.
OR
c) In any normal activity, ZoomControl can be displayed as component by following
syntax : ZoomControl zoomControls = (ZoomControls) findViewById(R.id.simpleZoomControl);
zoomControls.show()
3. State the uses of Intent in Android.
Ans: An Intent is a messaging object you can use to request an action from another app component. Intents are
used for facilitating communication between components like Activities, Services and Broadcast Receivers.
4. Name any four methods to get location data in android.
Ans:
•float distanceTo(Location dest)
•float getAccuracy()
•float getBearing()
•double getAltitude()
•double getLatitude()
•float getSpeed()
•boolean hasAccuracy()
•boolean hasAltitude()
•boolean hasBearing()
5. Explain significance of content provider.
Ans:
Content Providers are used to share data between two applications. This can be implemented in two ways:
1. When you want to implement the existing content provider in another application.
2. When you want to create a new content provider that can share its data with other Applications
6. Develop a simple calculator using relative layout.
Ans:
7. Develop a program to implement
i) List view of 5 items
ii) Grid view of 4 x 4 items
iii) Image view.
8. Write a program to display a rectangular progress bar.
Ans :
9. Explain the steps to deploy app on Google Play Store.
Ans: Sure, deploying an app on the Google Play Store involves several steps. Here's a comprehensive guide:
1. Create a Developer Account:
-Before you can publish any app on Google Play, you need to create a Developer Account. Sign up for one using your
existing Google Account and pay a one-time registration fee of $25.
2. Link Your Merchant Account (Optional):
-If you plan to sell paid apps or offer in-app purchases, create a payments center profile, i.e., a merchant account, to
manage your app sales and payouts.
3. Create an App Listing:
- Click on "Create Application" and choose your app’s default language and title.
- Prepare store listing details such as title, short and full descriptions, graphic assets (screenshots, images, videos,
icons), categorization, contact details, and privacy policy.
4. Upload APK (Android Package Kit):
- Prepare your app for release by compiling it into an APK file.
- Upload the APK file to the Google Play Console.
5. Create an App Release:
- Choose the type of release: internal test, closed test, open test, or production release.
- Test your app among a select group of users before making it live for everyone.
6. Provide Content Rating:
- Fill out a content rating questionnaire to assign an appropriate content rating to your app.
- This step is crucial to ensure your app reaches the right audience and stays compliant with Google Play policies.
7. Set Up Pricing & Distribution:
- Determine your app’s monetization strategy: free or paid.
- Set pricing, if applicable, and select distribution options such as countries where your app will be available.
8. Review and Rollout Release:
- Review all details, including store listing, content rating, pricing, and distribution.
- Navigate to "Release management" → "App releases" in the Google Play Console.
- Opt for reviews to check for any issues or warnings.
- Confirm rollout to publish your app to all users in your target countries on Google Play.
9. Monitor and Update:
- Regularly monitor your app's performance, user feedback, and reviews.
- Update your app as needed to fix bugs, add features, or improve user experience.
By following these steps, you can successfully deploy your app on the Google Play Store and reach millions of Android
users worldwide.
10. Explain the Android security model.
Ans: The Android security model is primarily based on a sandbox and permission mechanism. Each application is
running in a specific Dalvik virtual machine with a unique user ID assigned to it, which means the application code
runs in isolation from the code of all other applications. Therefore, one application has not granted access to other
applications’ files. Android application has been signed with a certificate with a private key Know the owner of the
application is unique. This allows the author of the application will be identified if needed. When an application is
installed in the phone is assigned a user ID, thus avoiding it from affecting it other applications by creating a sandbox
for it. This user ID is permanent on which devices and applications with the same user ID are allowed to run in a
single process. This is a way to ensure that a malicious application has Cannot access / compromise the data of the
genuine application. It is mandatory for an application to list all the resources it will Access during installation. Terms
are required of an application, in the installation process should be user-based or interactive Check with the signature
of the application.
Declaring and Using Permissions
The purpose of a permission is to protect the privacy of an Android user. Android apps must request permission to
access sensitive user data (such as contacts and SMS), as well as certain system features (such as camera and
internet). Depending on the feature, the system might grant the permission automatically or might prompt the user
to approve the request. Permissions are divided into several protection levels. The protection level affects whether
runtime permission requests are required. There are three protection levels that affect thirdparty apps: normal,
signature, and dangerous permissions.
Normal permissions: Normal permissions cover areas where your app needs to access data or resources outside the
app’s sandbox, but where there’s very little risk to the user’s privacy or the operation of other apps. For example,
permission to set the time zone is a normal permission. If an app declares in its manifest that it needs a normal
permission, the system automatically grants the app that permission at install time. The system doesn’t prompt the
user to grant normal permissions, and users cannot revoke these permissions.
Signature permissions: The system grants these app permissions at install time, but only when the app that attempts
to use permission is signed by the same certificate as the app that defines the permission.
Dangerous permissions: Dangerous permissions cover areas where the app wants data or resources that involve the
user’s private information, or could potentially affect the user’s stored data or the operation of other apps. For
example, the ability to read the user’s contacts is a dangerous permission. If an app declares that it needs a dangerous
permission, the user must explicitly grant the permission to the app. Until the user approves the permission, your
app cannot provide functionality that depends on that permission. To use a dangerous permission, your app must
prompt the user to grant permission at runtime. For more details about how the user is prompted, see Request
prompt for dangerous permission.
11. State syntax to create Text View and Image button with any two attributes of each.
Ans:
12. Describe Android service life cycle along with diagram.
Ans:
13. Discuss developer console with at least four features. (4 M)
Ans:
14. Describe multimedia framework of Android with diagram.
15. Write a program to capture an image using camera and display it. (Note: Consider the appropriate XML file. All
attributes are not required. In java file all imports are not expected. Different relevant logic/code can be
considered.)