SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Kannada Sangha Pune’s
Kaveri College of Arts, Science and Commerce
MSc(CS) – I
Sem II Practical Assignments
Android practical programs
1) Write an Android Program to demonstrate Activity life Cycle
2) Create table Customer (id, name, address, phno). Create Android Application for
performing the following operation on the table. (usingsqlite database)
i) Insert New Customer Details.
ii) Show All the Customer Details
3) Create an Android Application that will change color of the screen and change the
font size of text view using xml.
4) Create an Android Application to accept two numbers and create two buttons (power
and Average). Display the result on the next activity on Button click
5) Create an Android Application to perform following string operation according to
user selection of radio button.
6) Create a Simple Android Application Which Send ―Hello‖ message from one
activity to another with help of Button (Use Intent).
7) Write an Android Program to Change the Image Displayed on the Screen
8) Java Android Program to demonstrate login form with validation.
9) By using Spinner, Buttons. Write a Android program to draw following GUI.
10) Create a Notification in Android and display the notification message on second
activity
11) Write an Android program to read 5 numbers and print the sum of all
12) Create an Android Application to display satellite view of current location using
Google Map.
13) Construct an Android Application to display the images using ImageSwitcher
14) Construct an Android Application to accept a number and calculate Factorial and Sum
of Digits of a given number using Menu.
15) Create table Company (id, name, address, phno). Create Android Application for
performing the following operation on the table.(using sqlite database)
i) Insert New Company Details.
ii) Show All the Company Details.
16) Construct an Android application to accept a number and calculate Armstrong and
Perfect number of a given number using Menu.
17) Write an Android Application to send Email.
18) Create a Simple Android Application Which Send ―Hello‖ message from one
activity to another with help of Button (Use Intent).
19) Create an Android application which will ask the user to input his name and a
message, display the two items concatenated in a label, and change the format of the
label using radio buttons and check boxes for selection, the user can make the label
text bold, underlined or italic and change its color .include buttons to display the
message in the label, clear the text boxes and label and then exit.
20) Write an Android Program to Demonstrate Date Picker Dialog in Android
21) Create table Project(id,name,dept,city). Create Application to perform the following
operations.(usingsqlite database)
i) Add records.
ii) Display all the records.
22) Write an Android application to accept two numbers from the user, and displays them,
but reject input if both numbers are greater than 10 and asks for two new numbers.
23) Create the simple calculator shown below also perform appropriate operation
AOS practical programs
1) Write a C program to find whether a given file is present in current directory or not.
2) Write a C program which blocks SIGOUIT signal for 5 seconds. After 5 second
process checks any occurrence of quit signal during this period, if so, it unblock the
signal. Now another occurrence of quit signal terminates the program. (Use
sigprocmask() and sigpending() )
3) Write a C program that a string as an argument and return all the files that begins with
that name in the current directory. For example > ./a.out foo will return all file names
that begins with foo.
4) Write a C program to find file properties such as inode number, number of hard link,
File permissions, File size, File access and modification time and so on of a given file
using stat() system call.
5) Write a C program to create ‘n’ child processes. When all ‘n’ child processes
terminates, Display total cumulative time children spent in user and kernel mode.
6) Write a C program to find file properties such as inode number, number of hard link,
File permissions, File size, File access and modification time and so on of a given file
using fstat() system call.
7) Write a C program to implement the following unix/linux command (use fork, pipe
and exec system call). Your program should block the signal Ctrl-C and Ctrl- signal
during the execution.
ls -l | wc -l
8) Write a C program to create an unnamed pipe. The child process will write following
three messages to pipe and parent process display it.
Message1 = “Hello World”
Message2 = “Hello SPPU”
Message3 = “Linux is Funny”
9) Write a C program to read all txt files (that is files that ends with .txt) in the current
directory and merge them all to one txt file and returns a file descriptor for the new
file
10) Write a C program to map a given file in memory and display the contain of mapped
file in reverse.
11) Write a C program to create a file with hole in it.
12) Write a C program to get and set the resource limits such as files, memory associated
with a process.
13) Write a C program which receives file names as command line arguments and display
those filenames in ascending order according to their sizes.
e.g $ a.out a.txt b.txt c.txt, …
14) Write a C program to display as well as resets the environment variable such as path,
home, root etc.
15) Write a C program that will only list all subdirectories in alphabetical order from
current directory.
16) Write a C program to display statistics related to memory allocation system. (Use
mallinfo() system call).
17) Write a C program to create variable length arrays using alloca() system call.
18) Write a C program that behaves like a shell (command interpreter). It has its own
prompt say “NewShell$”. Any normal shell command is executed from your shell by
starting a child process to execute the system program corresponding to the command.
It should additionally interpret the following command.
i) count c - print number of characters in file
ii) count w - print number of words in file
iii)count l - print number of lines in file
19) Write a C program to send SIGALRM signal by child process to parent process and
parent process make a provision to catch the signal and display alarm is fired.(Use
Kill, fork, signal and sleep system call)
20) Write a C program to display all the files from current directory and its subdirectory
whose size is greater than ’n’ Bytes Where n is accepted from user through command
line.
21) Write a C program that redirects standard output to a file output.txt. (use of dup and
open system call)
22) Write a C program to Identify the type (Directory, character device, Block device,
Regular file, FIFO or pipe, symbolic link or socket) of given file using stat() system
call.
23) Write a C program that catches the ctrl-c (SIGINT) signal for the first time and
display the appropriate message and exits on pressing ctrl-c again.
24) Write a C program to implement the following unix/linux command on current
directory
ls –l > output.txt
25) Write a C program to display the given message ‘n’ times. (make a use of setjmp and
longjmp system call)
26) Write a C program to display the last access and modified time of a given file.
27) Write a C program to move the content of file1.txt to file2.txt and remove the file1.txt
from directory.
28) Write a C program which creates a child process to run linux/ unix command or any
user defined program. The parent process set the signal handler for death of child
signal and Alarm signal. If a child process does not complete its execution in 5 second
then parent process kills child process.
29) Write a C program that print the exit status of a terminated child process.

More Related Content

PPTX
SDLC Model (Waterfall,Iterative Waterfall,Spiral)
Shaikh Kamrul Islam (Konok kamrul)
 
PPTX
Different types of mobile apps
MVM Infotech Co. Ltd.
 
PPTX
Development of Mobile Application -PPT
Dhivya T
 
PPTX
Top 10 programming languages for mobile app development
Wxit Consultant Services
 
PPTX
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 
PPT
Case study windows
Padam Banthia
 
PDF
android app development training report
Rishita Jaggi
 
PPTX
Java API
'Gurumukhi' Vaishnav
 
SDLC Model (Waterfall,Iterative Waterfall,Spiral)
Shaikh Kamrul Islam (Konok kamrul)
 
Different types of mobile apps
MVM Infotech Co. Ltd.
 
Development of Mobile Application -PPT
Dhivya T
 
Top 10 programming languages for mobile app development
Wxit Consultant Services
 
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 
Case study windows
Padam Banthia
 
android app development training report
Rishita Jaggi
 

What's hot (20)

PPTX
Introduction to MERN
ShyamMohanKunwar
 
PPT
Entity relationship modelling
Dr. C.V. Suresh Babu
 
DOCX
SRS for online examination system
lunarrain
 
PDF
Employee Time and Task Tracking System
Imran Javed Dar, MBA, PMP, 6σ, COBIT
 
PPTX
Diagrams
janessa24
 
PPT
Database Presentation
a9oolq8
 
PPTX
Waterfall model in SDLC
HND Assignment Help
 
PPT
ADO .Net
DrSonali Vyas
 
PPT
Introduction To Web Technology
Arun Kumar
 
PPT
Interacting with your computer
Waqas Ahmed
 
PPTX
Android Layout.pptx
vishal choudhary
 
PDF
Primary Key & Foreign Key part10
DrMohammed Qassim
 
PPTX
Fundamental software engineering activities
sommerville-videos
 
PDF
Local Service Search Engine Management System LSSEMS
YogeshIJTSRD
 
PPTX
Software Engineering Methodologies
Damian T. Gordon
 
PPTX
Basic android-ppt
Srijib Roy
 
PPTX
Html character entities
nobel mujuji
 
PDF
Full report on blood bank management system
Jawhar Ali
 
PPT
Rad model
Sneha Chopra
 
PDF
Android activities & views
ma-polimi
 
Introduction to MERN
ShyamMohanKunwar
 
Entity relationship modelling
Dr. C.V. Suresh Babu
 
SRS for online examination system
lunarrain
 
Employee Time and Task Tracking System
Imran Javed Dar, MBA, PMP, 6σ, COBIT
 
Diagrams
janessa24
 
Database Presentation
a9oolq8
 
Waterfall model in SDLC
HND Assignment Help
 
ADO .Net
DrSonali Vyas
 
Introduction To Web Technology
Arun Kumar
 
Interacting with your computer
Waqas Ahmed
 
Android Layout.pptx
vishal choudhary
 
Primary Key & Foreign Key part10
DrMohammed Qassim
 
Fundamental software engineering activities
sommerville-videos
 
Local Service Search Engine Management System LSSEMS
YogeshIJTSRD
 
Software Engineering Methodologies
Damian T. Gordon
 
Basic android-ppt
Srijib Roy
 
Html character entities
nobel mujuji
 
Full report on blood bank management system
Jawhar Ali
 
Rad model
Sneha Chopra
 
Android activities & views
ma-polimi
 
Ad

Similar to Android AOS practical programs.pdf (20)

DOCX
CS291(C Programming) assignment
Kuntal Bhowmick
 
PDF
Unit 1
Sowri Rajan
 
PDF
Assignment 1 for 2nd sem
home
 
DOCX
CS3451-INTRODUCTION TO OPERATING SYSTEM-91035556-OS LAB CSE (1).docx
prathika1989
 
DOC
Programming in c notes
Sudharasanam Babu
 
DOC
Programming qns
Dr.Subha Krishna
 
DOCX
CS3451-INTRODUCTION TO OPERATING SYSTEM-91035556-OS LAB CSE.docx
prathika1989
 
DOC
Course Breakup Plan- C
swatisinghal
 
PPTX
Logic development
Jerin John
 
PDF
Activity 5
Heidi Owens
 
PPTX
Physics lab ppt for btech students in engineetin
sunkaraasharani
 
PDF
IP Lab Manual for Kerala University 3 Year UG Programme
SAFAD ISMAIL
 
PPTX
6. C_ControlStatements_Loop (1) for cse.pptx
talenthidden271
 
PDF
PCA-2 Programming and Solving 2nd Sem.pdf
Ashutoshprasad27
 
DOCX
PCA-2 Programming and Solving 2nd Sem.docx
Ashutoshprasad27
 
DOCX
Design problem
Sanjay Kumar Chakravarti
 
PPTX
Team-7 SP.pptxdfghjksdfgduytredfghjkjhgffghj
bayazidalom983
 
PDF
The ProblemUsing C programming language write a program that simul.pdf
federaleyecare
 
PDF
C Programming Lab manual 18CPL17
manjurkts
 
PDF
Hands-On Ethical Hacking and Network Defense 1st Edition Simpson Test Bank
yarroodraxl
 
CS291(C Programming) assignment
Kuntal Bhowmick
 
Unit 1
Sowri Rajan
 
Assignment 1 for 2nd sem
home
 
CS3451-INTRODUCTION TO OPERATING SYSTEM-91035556-OS LAB CSE (1).docx
prathika1989
 
Programming in c notes
Sudharasanam Babu
 
Programming qns
Dr.Subha Krishna
 
CS3451-INTRODUCTION TO OPERATING SYSTEM-91035556-OS LAB CSE.docx
prathika1989
 
Course Breakup Plan- C
swatisinghal
 
Logic development
Jerin John
 
Activity 5
Heidi Owens
 
Physics lab ppt for btech students in engineetin
sunkaraasharani
 
IP Lab Manual for Kerala University 3 Year UG Programme
SAFAD ISMAIL
 
6. C_ControlStatements_Loop (1) for cse.pptx
talenthidden271
 
PCA-2 Programming and Solving 2nd Sem.pdf
Ashutoshprasad27
 
PCA-2 Programming and Solving 2nd Sem.docx
Ashutoshprasad27
 
Design problem
Sanjay Kumar Chakravarti
 
Team-7 SP.pptxdfghjksdfgduytredfghjkjhgffghj
bayazidalom983
 
The ProblemUsing C programming language write a program that simul.pdf
federaleyecare
 
C Programming Lab manual 18CPL17
manjurkts
 
Hands-On Ethical Hacking and Network Defense 1st Edition Simpson Test Bank
yarroodraxl
 
Ad

Recently uploaded (20)

PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
Exploring-Forces 5.pdf/8th science curiosity/by sandeep swamy notes/ppt
Sandeep Swamy
 
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
BANDITA PATRA
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PPTX
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PPTX
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Exploring-Forces 5.pdf/8th science curiosity/by sandeep swamy notes/ppt
Sandeep Swamy
 
UPPER GASTRO INTESTINAL DISORDER.docx
BANDITA PATRA
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 

Android AOS practical programs.pdf

  • 1. Kannada Sangha Pune’s Kaveri College of Arts, Science and Commerce MSc(CS) – I Sem II Practical Assignments Android practical programs 1) Write an Android Program to demonstrate Activity life Cycle 2) Create table Customer (id, name, address, phno). Create Android Application for performing the following operation on the table. (usingsqlite database) i) Insert New Customer Details. ii) Show All the Customer Details 3) Create an Android Application that will change color of the screen and change the font size of text view using xml. 4) Create an Android Application to accept two numbers and create two buttons (power and Average). Display the result on the next activity on Button click 5) Create an Android Application to perform following string operation according to user selection of radio button. 6) Create a Simple Android Application Which Send ―Hello‖ message from one activity to another with help of Button (Use Intent). 7) Write an Android Program to Change the Image Displayed on the Screen 8) Java Android Program to demonstrate login form with validation. 9) By using Spinner, Buttons. Write a Android program to draw following GUI.
  • 2. 10) Create a Notification in Android and display the notification message on second activity 11) Write an Android program to read 5 numbers and print the sum of all 12) Create an Android Application to display satellite view of current location using Google Map. 13) Construct an Android Application to display the images using ImageSwitcher 14) Construct an Android Application to accept a number and calculate Factorial and Sum of Digits of a given number using Menu. 15) Create table Company (id, name, address, phno). Create Android Application for performing the following operation on the table.(using sqlite database) i) Insert New Company Details. ii) Show All the Company Details. 16) Construct an Android application to accept a number and calculate Armstrong and Perfect number of a given number using Menu. 17) Write an Android Application to send Email. 18) Create a Simple Android Application Which Send ―Hello‖ message from one activity to another with help of Button (Use Intent). 19) Create an Android application which will ask the user to input his name and a message, display the two items concatenated in a label, and change the format of the label using radio buttons and check boxes for selection, the user can make the label text bold, underlined or italic and change its color .include buttons to display the message in the label, clear the text boxes and label and then exit. 20) Write an Android Program to Demonstrate Date Picker Dialog in Android 21) Create table Project(id,name,dept,city). Create Application to perform the following operations.(usingsqlite database) i) Add records. ii) Display all the records. 22) Write an Android application to accept two numbers from the user, and displays them, but reject input if both numbers are greater than 10 and asks for two new numbers. 23) Create the simple calculator shown below also perform appropriate operation
  • 3. AOS practical programs 1) Write a C program to find whether a given file is present in current directory or not. 2) Write a C program which blocks SIGOUIT signal for 5 seconds. After 5 second process checks any occurrence of quit signal during this period, if so, it unblock the signal. Now another occurrence of quit signal terminates the program. (Use sigprocmask() and sigpending() ) 3) Write a C program that a string as an argument and return all the files that begins with that name in the current directory. For example > ./a.out foo will return all file names that begins with foo. 4) Write a C program to find file properties such as inode number, number of hard link, File permissions, File size, File access and modification time and so on of a given file using stat() system call. 5) Write a C program to create ‘n’ child processes. When all ‘n’ child processes terminates, Display total cumulative time children spent in user and kernel mode. 6) Write a C program to find file properties such as inode number, number of hard link, File permissions, File size, File access and modification time and so on of a given file using fstat() system call. 7) Write a C program to implement the following unix/linux command (use fork, pipe and exec system call). Your program should block the signal Ctrl-C and Ctrl- signal during the execution. ls -l | wc -l 8) Write a C program to create an unnamed pipe. The child process will write following three messages to pipe and parent process display it. Message1 = “Hello World” Message2 = “Hello SPPU” Message3 = “Linux is Funny” 9) Write a C program to read all txt files (that is files that ends with .txt) in the current directory and merge them all to one txt file and returns a file descriptor for the new file 10) Write a C program to map a given file in memory and display the contain of mapped file in reverse. 11) Write a C program to create a file with hole in it. 12) Write a C program to get and set the resource limits such as files, memory associated with a process. 13) Write a C program which receives file names as command line arguments and display those filenames in ascending order according to their sizes. e.g $ a.out a.txt b.txt c.txt, … 14) Write a C program to display as well as resets the environment variable such as path, home, root etc. 15) Write a C program that will only list all subdirectories in alphabetical order from current directory. 16) Write a C program to display statistics related to memory allocation system. (Use mallinfo() system call). 17) Write a C program to create variable length arrays using alloca() system call. 18) Write a C program that behaves like a shell (command interpreter). It has its own prompt say “NewShell$”. Any normal shell command is executed from your shell by starting a child process to execute the system program corresponding to the command. It should additionally interpret the following command. i) count c - print number of characters in file ii) count w - print number of words in file
  • 4. iii)count l - print number of lines in file 19) Write a C program to send SIGALRM signal by child process to parent process and parent process make a provision to catch the signal and display alarm is fired.(Use Kill, fork, signal and sleep system call) 20) Write a C program to display all the files from current directory and its subdirectory whose size is greater than ’n’ Bytes Where n is accepted from user through command line. 21) Write a C program that redirects standard output to a file output.txt. (use of dup and open system call) 22) Write a C program to Identify the type (Directory, character device, Block device, Regular file, FIFO or pipe, symbolic link or socket) of given file using stat() system call. 23) Write a C program that catches the ctrl-c (SIGINT) signal for the first time and display the appropriate message and exits on pressing ctrl-c again. 24) Write a C program to implement the following unix/linux command on current directory ls –l > output.txt 25) Write a C program to display the given message ‘n’ times. (make a use of setjmp and longjmp system call) 26) Write a C program to display the last access and modified time of a given file. 27) Write a C program to move the content of file1.txt to file2.txt and remove the file1.txt from directory. 28) Write a C program which creates a child process to run linux/ unix command or any user defined program. The parent process set the signal handler for death of child signal and Alarm signal. If a child process does not complete its execution in 5 second then parent process kills child process. 29) Write a C program that print the exit status of a terminated child process.