Skip to main content

Posts

AMP PRACTICAL 5

  Aim: Create a application for showing Menus Activity_Main.xml   <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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">   <TextView android:id="@+id/mn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> </RelativeLayout> MainActivity.java package com.example.myapplication;...

AMP PRACTICAL 4

  Aim: Create the login form using different layout                                Activity_Main.xml   <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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"> <TextView android:id="@+id/textview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:text="Login Example" android:textSize="35dp" /> <EditText android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:id = ...

AMP PRACTICAL 3

                                Aim: Activity Lifecycle                                              MainActivity.java package com.example.myapplication;   import androidx.appcompat.app.AppCompatActivity; import android.util.Log;   import android.os.Bundle;   public class MainActivity extends AppCompatActivity {   String tag = "LifeCycle";   @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout. activity_main ); Log. d (tag, "In the onCreate()event"); }   public void onStart() { super.onStart(); Log. d (tag, "In the onStart()event"); }   public void onRestart() { super.onRestart(); Log. d (tag, "In the onRestart()event"); } ...

AMP PRACTICAL 2

  Aim: Android Resources: (Color, Theme, String, Drawable). Colors.xml   <?xml version="1.0" encoding="utf-8"?>   <resources>   <color name="purple_200">#FFBB86FC</color>   <color name="purple_500">#FF6200EE</color>   <color name="purple_700">#FF3700B3</color>   <color name="teal_200">#FF03DAC5</color>   <color name="teal_700">#FF018786</color>   <color name="black">#FF000000</color>   <color name="white">#FFFFFFFF</color>   </resources> To apply color to Textview : Using code <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/black" android:text="HelloWorld!"  android:textColor="#FEFEFE" app:layout_constraintBottom_toBottomOf="parent" app:layou...

AMP PRACTICAL 1

  Aim: Create the simple “hello world” program 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">   <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />   </androidx.constraintlayout.widget.ConstraintLayout> MainActivity.jav...

Practical 1(c): Create an application that receives the (Student Id, Student Name, Course Name, Date of Birth) information from a set of students. The application should also display the information of all the students once the data entered.

   BSc IT Sem 5- Advanced Web Programming Practicals...   In this article I have given the solution and step-by-step   explanation for practical 1(c) of  Advanced Web Programming  subject of  BSc IT sem-5  (Mumbai University). I have given a step-wise guidance on creating a new project and designing our webpage to writing the code  on Visual Studio.  I`ll also explain  How the program works?  so that It`ll be easier for you to understand the program and manipulate it according to yourself. Question:  Create an application that receives the (Student Id, Student Name, Course Name, Date of Birth) information from a set of students. The application should also display the information of all the students once the data entered.   Firstly, let us understand what the question demands. Explanation:  We have to create an application that takes inputs from students for information like Student Id, Student name, Course name ...