Diploma Computer/IT

Mobile Application Development Practical 16

Mobile Application Development Practical 16 Question 1 Write a program to display following output. Select and display date and time on click of buttons. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <EditText android:id="@+id/edit1" android:layout_width="180dp" android:layout_marginLeft="40dp" android:layout_marginTop="100dp" android:layout_height="48dp" /> <EditText android:id="@+id/edit2" android:layout_width="180dp" android:layout_below="@id/edit1" android:layout_alignLeft="@id/edit1" android:layout_height="48dp" /> <Button android:id="@+id/button1" android:layout_width="wrap_content"

Mobile Application Development Practical 16 Read More »

Mobile Application Development Practical 15

Mobile Application Development Practical 15 Question 1 Write a program to display three checkboxes and one button as below. Once you click on the button it should display different checkboxes and total cost. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <CheckBox android:id="@+id/checkBox1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="150dp" android:layout_marginTop="70dp" android:text="Pizza"

Mobile Application Development Practical 15 Read More »

Mobile Application Development Practical 14

Mobile Application Development Practical 14 Question 1 Write a program to display following output. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <ListView android:id="@+id/lstv" android:layout_width="match_parent" android:layout_height="match_parent" android:divider="#8A8585" android:dividerHeight="1dp" android:listSelector="#F28DD8FA" /> </androidx.constraintlayout.widget.ConstraintLayout> activity_list.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ListActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/listText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textSize="20dp"

Mobile Application Development Practical 14 Read More »

Mobile Application Development Practical 13

Mobile Application Development Practical 13 Question 1 Write a program to display following output. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:text="Download File" /> <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" android:visibility="invisible" /> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginBottom="30dp" android:layout_marginLeft="20dp" android:textSize="16dp" android:text=""

Mobile Application Development Practical 13 Read More »

Mobile Application Development Practical 12

Mobile Application Development Practical 12 Question 1 Write a program to show the following output. First two radio buttons are without using radio group and next two radio buttons are using radio group. Note the changes between these two and also toast which radio button is selected. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"

Mobile Application Development Practical 12 Read More »

Mobile Application Development Practical 11

Mobile Application Development Practical 11 Question 1 Write a program to show five checkboxes and toast selected checkboxes. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:layout_marginTop="50dp" android:layout_marginLeft="40dp"> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Select names of states from below" android:textColor="@color/purple_700" android:textSize="20dp"/> <CheckBox android:id="@+id/mah" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Maharashtra" android:layout_marginTop="10dp"/> <CheckBox android:id="@+id/guj"

Mobile Application Development Practical 11 Read More »

Mobile Application Development Practical 10

Mobile Application Development Practical 10 Question 1 Write a program to create a login form for a social networking site. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TableLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="100dp"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="20dp" > <TextView android:id="@+id/textView1" android:layout_width="79dp" android:layout_height="wrap_content" android:text="Username:" /> <EditText android:id="@+id/username" android:layout_width="187dp" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:hint="Enter username here" />

Mobile Application Development Practical 10 Read More »

Mobile Application Development Practical 9

Mobile Application Development Practical 9 Question 1 Write a program to create a toggle button to display ON / OFF Bluetooth on the display screen. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ToggleButton android:id="@+id/toggleButton" android:layout_width="153dp" android:layout_height="262dp" android:layout_gravity="center" android:drawableBottom="@drawable/bluetooth" android:textOff="off" android:textOn="on" /> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="100dp" android:layout_gravity="center_horizontal" android:text="Bluetooth

Mobile Application Development Practical 9 Read More »

Mobile Application Development Practical 8

Mobile Application Development Practical 8 Question 1 Write a program to create a first display screen of any search engine using Auto Complete Text View. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <AbsoluteLayout android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/text1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="56dp" android:layout_y="99dp" android:text="Search" /> <AutoCompleteTextView android:id="@+id/autoText" android:layout_width="200dp" android:layout_height="wrap_content" android:layout_x="138dp" android:layout_y="83dp" android:hint="Search

Mobile Application Development Practical 8 Read More »

Mobile Application Development Practical 7

Mobile Application Development Practical 7 Question 1 Write a program to accept username and password from the end user using Text View and Edit Text activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TableLayout android:layout_width="match_parent" android:layout_height="match_parent"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="50dp" android:layout_marginLeft="40dp" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Enter Username:" /> <EditText android:id="@+id/edittext" android:layout_width="160dp"

Mobile Application Development Practical 7 Read More »