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

Android Lab Manual for BCA Students

Uploaded by

blahhwhocares69
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Android Lab Manual for BCA Students

Uploaded by

blahhwhocares69
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Smt.

Chandaben Mohanbhai Patel Institute of Computer Applications,


CHARUSAT

Android Lab Manual – Practical List


Course: BCA - VI
Subject: Basics of Mobile Applications
Code: CA321

ANDROID
1. Create an Application that can Toast a message “Welcome to CMPICA“.
2. Create an Application to Print the name in Toast entered in EditText.
3. Create an Application to Input two numbers and show the addition answer in textView, Toast
and in Edit Text by button.
4. Create an Application to understand Activity, Intent, Create sample application with login
module. (Check username and password) open new activity and Print “Welcome username”
manually without intent.
5. Create calculator application with two EditText to enter numbers, 4 Buttons to perform
Addition, Subtraction, Division, Multiplication and display answer into toast. (Check for blank
value and 0 value input) (Use proper controls)
6. Create an application to handle the view without creating its object and avoid using
“findViewbyId” use the viewBinding.
7. Write an android application that will take basic student information (Student ID, Student Name,
Student Branch, Student Contact No., Student Birth date) in one screen from user and display
that information to other screen on submit button click of first screen) (Use proper controls).
8. Create an Application to show the Activity Life Cycle and show the messages in Logcate.
9. Create an Android application that should have 3 screens: Splash Screen Login Screen, Home
Screen. When user start application for first time, Login screen should appear. User will login
with Username: “Test” and Password: “TestUser”. After successful login, user will redirect to
home screen. Where Welcome [Username] should be display.
10. Write an Android application to convert string to upper case, entered by user into edittext on
click of the button.
11. Create an android UI application to accept two numbers and the display the sum of the number
using Button in EditText.
12. Write an android application to invoke built in application like contact, browser, google map and
dialer. Operations are: By clicking on Visit the Website button, it should open
“[Link]” in android built in browser application By Clicking on make call button, it
should open the phone dialer with a predefined number.
By Clicking on Show Map button, it should plot a specified location coordinates in the built in
google map application.
By clicking on Choose Contact button, it should allow the user to select a particular contact and
show the details as a toast message.
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

13. Design simple GUI application with activity and intents e.g. calculator use function to perform
operations of calculator.

14. Write an application in android to manage the session of the user using SharedPreferences for
Login Activity use functions to show stored ID password when application is launched.
15. Create an application to create a Registration form of the student for Ignite event and use the
appropriate views. Also print data of the student on next activity. Keep only 2 or 3 competitions.
16. Create a Dice roller application with 1 to 6 numbers with images.
17. Create an application to show the alert dialog for application.
18. Create an application to show the autocomplete textview for country names.
19. Create an application to have All the menus in the application.
20. Create an application with a Spinner using Array Adapter for values.
21. Create a student photo and name listview with Base Adapter.
22. Create an Alert dialog for exit alert and on back press of mobile alert should be shown.
23. Create an application to show the option to create, save and show the file and the file name in
internal and external storage both.
24. Create an application to show the Navigation drawer and show the inbox, sent and deleted
activities like Gmail.
25. Create an Application to show the tabs on one Activity and open each new fragment on each tab
using tab layout and viewpager2 like WhatsApp table for status, chat and calls.
26. Create an Application to include Recycler view to show photos or names with card view and
move it vertically and horizontally.
27. Create an application to have a CRUD operations using SQLite
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

Extra Assignment
28. Create an application to use firebase for Login Activities like Signup and Sign In.
29. Create an application to use Firebase for saving the data of an application.

Thank you

Common questions

Powered by AI

View Binding simplifies accessing views by generating a binding class for each XML layout file, which contains direct references to all views with an ID, avoiding the need for 'findViewById'. This reduces boilerplate code and the risk of null pointer exceptions .

Developers can use ViewModel to retain UI data, onSaveInstanceState() for lightweight data, and the 'retainInstance' property of Fragments. Utilizing persistent storage solutions like SharedPreferences or databases for long-term data retention ensures consistency across configuration changes .

The 'onBackPressed' method is called when the back button is pressed, allowing developers to customize back navigation logic, such as showing a dialog before exiting or managing the activity back stack. It can be overridden to provide unique navigation experiences or prevent accidental exits .

Proper lifecycle event handling ensures that applications respond correctly to user interactions, system events, and resource management. For instance, preserving most recent data on configuration changes or releasing resources when no longer needed, and logging these actions helps in debugging and improving user experience .

Firebase offers seamless integration of authentication services, ensuring secure and scalable user login management. It supports multiple authentication methods, such as email/password, phone, and social media logins, and provides built-in security features like encryption and token validation, enhancing user data protection .

Designing an application with multiple activities requires careful consideration of the user flow and navigation. Transition between these activities should be seamless and secure, with appropriate use of Intents. Additionally, considering activity lifecycle management and saving/restoring states is crucial for user experience consistency .

SharedPreferences can be used to store user login details securely, allowing for state persistence across application runs. It can cache user credentials and other session information, which can be retrieved and utilized upon next application start to improve user experience by avoiding repeated logins .

Security measures include validating and sanitizing inputs to prevent injection attacks, using HTTPS for network communication, encrypting sensitive data in transit and storage, and applying least privilege principles for permissions. Regular security updates and code reviews also mitigate vulnerabilities .

Navigation components simplify managing UI navigation, providing a clear structure and eliminating fragment-specific code for fragment transitions. This includes a navigation graph, a NavHost, and NavController, easing implementation of complex navigations like bottom navigation or drawer with consistent back stack management .

The BaseAdapter in Android provides a flexible mechanism for populating a ListView with complex data structures. It allows developers to customize each ListView item appearance, dynamically manage datasets, and optimize performance through methods like 'getView()', enabling complex view hierarchies and dynamic content management .

You might also like