Skip to main content

Posts

MAD Imp Question

MAD Imp Question - KTC CH 1 > 3] Explain Android manifest in detail.  1] Explain spinner in detail.  1] Explain alterdialog boxs of Android.  1] How to create dynamic radio button in Android? Explain with example.  1] Explain alertdialog box of android in detail.  1] Explain dalvik virtual machine in detail.  CH 2 > 1] Explain listview in detail.  1] Explain progressbar and spinner in Android.  1] Explain imageslider in detail.  2] Explain datepicker and timepicker in detail.  2] Explain Autocompletetextview and textwatcher in detail.  1] Explain searchview using listview.  CH 3 > 1] Explain dart function in detail.  1] Explain feature of dart in detail.  2] Explain datatype of dart.  1] Explain decision making statement of dart.  1] Explain iterative Statment in dart.  1] Explain operators in dart.  CH 4 > 2] Explain features of flutter in detail.  1] Explain stateful and stateles...

Practical Paper solution B

Q-1 A> Java program that prompts the user to input the base and height of a triangle. Accordingly calculates and displays the area of a triangle using the formula (base* height) / 2, and handles any input errors such as non-numeric inputs or negative values for base or height. Additionally, include error messages for invalid input and provide the user with the option to input another set of values or exit the program Source Code :- import java.util.InputMismatchException; import java.util.Scanner; class q1_a { public static void main(String args[]) { Scanner s = new Scanner(System.in); boolean continueProgram = true; while(continueProgram) { try{ System.out.print("Enter the base of the traingle : "); double base = s.nextDouble(); System.out.print("Enter the height of traingle : "); double height = s.nextDouble(); if(base <= 0 || height <= 0) { throw new IllegalArgumentException("Base and height mu...

How to insert data into access database using vb.net project.

Source Code : - Imports System.Data.OleDb Public Class UserControl1     Dim pro As String     Dim connstring As String     Dim command As String     Dim myconnection As OleDbConnection = New OleDbConnection     Private Sub UserControl1_Load(sender As Object, e As EventArgs) Handles MyBase.Load     End Sub     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click         pro = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source = C:\Users\91846\OneDrive\Documents\demo_project.accdb"         connstring = pro         myconnection.ConnectionString = connstring         myconnection.Open()         command = "insert into STUDENT([Stu_Name],[Stu_Marks],[Stu_Age]) values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "')"         Dim cmd ...

How to implement Bottom sheet dialog in android studio

For Full video click on below link :- https://youtu.be/RdKznpj3p30?si=41W4Dj0focRWbFln Working with the activity_main.xml file. Navigate to the   app > res > layout > activity_main.xml  and add the below code to that file. Below is the code for the   activity_main.xml   file.  <?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"     android:background="@color/white">     <Button         android:id="@+id/openbtn"         android:layout_width="150dp"         android:layout_height="50dp"     ...

Remove specific item from Recyclerview in android studio

For Full video click on below link :- https://youtu.be/sUz4fqeanjI?si=A8AqBWCgu-5NnBOJ Working with the activity_main.xml file. Navigate to the   app > res > layout > activity_main.xml  and add the below code to that file. Below is the code for the   activity_main.xml   file.  <?xml version="1.0" encoding="utf-8"?> <LinearLayout 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" android:orientation="vertical" android:background="@color/white"> <EditText android:layout_width="350dp" android:layout_height="50dp" android:inputType="text" android:id="@+id/coursenam...

Fingerprint Authentication in Android Studio Project

Implement the implementation : - implementation 'androidx.biometric:biometric:1.0.1' Working with the activity_main.xml file. Navigate to the   app > res > layout > activity_main.xml  and add the below code to that file. Below is the code for the   activity_main.xml   file. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" tools:context=".MainActivity" android:background="@color/white"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Welcome to the Boxcode!!" android:textSize=...

Sqlite with CRUD operation in Android studio

For Full video click on link :- https://youtu.be/QTvy8sJSiyI?si=dM1f98Mr7aFpJpqG Working with the activity_main.xml file. Navigate to the   app > res > layout > activity_main.xml  and add the below code to that file. Below is the code for the   activity_main.xml   file.  <?xml version="1.0" encoding="utf-8"?> <LinearLayout 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" android:orientation="vertical" android:background="@color/white"> <EditText android:layout_width="350dp" android:layout_height="50dp" android:inputType="text" android:id="@+id/coursename...