0% found this document useful (0 votes)
22 views11 pages

CA321 BMA All Programs

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)
22 views11 pages

CA321 BMA All Programs

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
You are on page 1/ 11

Smt.

Chandaben Mohanbhai Patel Institute of Computer Applications,


CHARUSAT

Lab Manual – Practical List


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

PRACTICAL FOR KOTLIN


Steps in Android to run Kotlin code:

 Create New Project>Empty Activity>


 Create New Module in New Project > Java or Kotlin Template
 Give lib name>Finish>
 Expand that lib folder>Open MyClass.kt file>
 delete only class MyClass {} > type fun main() {} >
 Click on Edit Configuration from App Play option> Click on +>
 Select Kotlin > Change to lib.text in Use class path of Module >
 Change to MyClassKt in Main Class > Apply>
 Ok > Now write code between fun main(){}

1. WAP to print “Hello CMPICA” Students.


2. WAP to print “Welcome to CHARUSAT” and “Welcome to CMPICA” using print and println in
kotlin.
3. WAP to assign Roll No, ID and Name of the student and print manually using variable.
4. WAP to find the length of the string.
5. WAP to read Employee No, Employee ID and Name of the Employee and show on the screen.
6. WAP to input numbers like Rollno, Percentage using int and float to print on the screen.
7. WAP to find the largest number from 3 inputted numbers.
8. WAP to swap two number without third variable.
9. WAP to check whether the number is Odd or Even.
10. WAP program to perform arithmetic operations on two numbers using When.
11. WAP to print number in reverse (Eg 23456 o/p 65432 using while)
12. WAP to print number in range using for loop.
13. WAP program to print 1D array elements (Int and String).
14. WAP program to print 2D array elements (Int and String).
15. WAP program to print sum of array elements.
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

16. Find maximum and minimum from an array.


17. WAP to find Square of number using class.
18. Write a Program to design a class having companion object showcount() which has the property
of displaying the number of objects created of the class.
19. WAP to add two numbers using primary constructor.
20. WAP to add two and three numbers using secondary constructors.
21. WAP to create Human as Base class access name and age by derived class male and print on the
screen.

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 by
button.
4. Create an Application to understand Activity, Intent, Create sample application with login modu
le. (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”.
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 android UI application to accept two numbers and the display the sum of the number
using Button and EditText.
12. Create an Android application to demonstrate the Activity LifeCycle.
13. Create an application to understand Activity, Intent, Create sample application with login
module. (Check username and password).
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

14. 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)
15. 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)
16. 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.
17. Write an application in android to understand the Lifecycle of an Activity using Intent.
18. Write an Android application to convert string to upper case, entered by user into edittext on
click of the button.
19.
20. Write an android application to invoke built in application like contact, browser, google map and
dialer. Operations are :
21. By clicking on Visit the Website button , it should open “www.google.com” in android built in
browser application
22. By Clicking on make call button, it should open the phone dialer with a predefined number.
23. By Clicking on Show Map button, it should plot a specified location co ordinates in the built in
google map application.
24. By clicking on Choose Contact button, it should allow the user to select a particular contact and
show the details as a toast message.
25. Design simple GUI application with activity and intents e.g. calculator.
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

26. Write an application in android to manage the session of the user using SharedPreferences for
Login Activity.
27. Design the Simple GUI using proper Layout also set the background color using Drawable
Resource File.

28. Create following GUI using Relative Layout:


Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

29. Create following GUI using Table Layout:

30. Write an application to create List View, GridView and RecyclerView in Android

31. Write an application to create Frame Layout Demo in Android


Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

32. Write an application to create Fragment Demo in Android

33. Write an application for Fragments Communication in Android.


Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

34. Create an Android Application for Online Oder Demo using Checkboxes

35. Create an android Application for Subject Selection, include five subject as an option for
selection

36. Create an application for Country Selection using AutoCompleteTextView in Android

37. Design an application in Android for Seek Bar and Rating Bar
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

38. Create Calendar view and show current time and current date and selected time and selected
date.
39. Create an android Application as shown below using Kotlin Language.
Description:

 On the opening of the App the design should be as it is.


 Enter and match ID as Your Name and Password as your
Birthdate in DDMMYY format.
 On click of login if not matching the ID and PW then show
Toast Message to reenter the same.
 On successful attempt open new activity as shown below.
Use appropriate UI components to show the content
 Download online icons and logo as per your requirement.
And keep your photo to show in next activity.
 This new Activity should also have same design.
 Show Entered name on top as Login name.
 Also show the home image and when clicked redirect on
first login activity.
 Rest of the things are designing and static.
When user click on result open new Activity and follow the
instruction.
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

Here Enter marks for sub1 to sub3 between 0 to 30 and


calculate the result when clicked on Calculate your Result
button. Show total, Percentage, and Grade using below
criteria.
Percentage formula: total marks * 100 / 180
Grade: Pass Per >34 and <50
Second Per >49 and
<60
First Per >59 and
<70
Dist Per >69
On Home icon click it should take the user on Login Page. Provide validations for the app. On
back Press of mobile button, it should ask for Exit Application Alert Dialog. On YES click exit
the application on NO stay on same page.

40. Create an Android Application in Android using Kotlin Language and include all the requirements
as below [Prerequisite: Four Images of Persons, one logo, home icon]
 Create All the activities with same design (use any colour combination)
 Login credentials must be saved with Shared Preferences and Maintain this name on All
activities.
 Use the Intent for passing the data on other page except login and show it as per the
requirement
 Prepare the only one PDF (save with 21MCA001 format) file to include all Kotlin and XML
files and share on google form
 Occupation: It is Spinner and in that options are Service, Industry, Self-Employed,
Academician, Other. ID: Any PW: Any but matched in Login,
 on home click logout using Shared Preferences and On click of any photo or name it should
open each activity with each photo with details. On click of Connect Show Toast Message to
show that You are connected with Name of person. You can keep any logo, any colour any
image any name.
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

41.Create an application to display the flags of country in Gridvew using BaseAdpater in Android.

42.Create an application to display the subject name in Listview using SimpleAdpater in Android.

43.Write an application demonstrating the use of RecylerView to show the list of fruits name and
photo using cardview.
Smt. Chandaben Mohanbhai Patel Institute of Computer Applications,
CHARUSAT

Thank you

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy