├── APP development lab ├── Program2 │ ├── AndroidManifest.xml │ ├── HomeActivity.java │ ├── README.md │ ├── activity_home.xml │ └── activity_main.xml ├── output │ ├── program1 │ │ └── applab.pdf │ └── program2 │ │ └── output2.png ├── program1 │ └── activity_main.xml ├── program3 │ ├── MainActivity.java │ └── activity_main.xml ├── program4 │ ├── MainActivity.java │ └── activity_main.xml ├── program5 │ ├── MainActivity.java │ └── activity_main.xml ├── program6 │ ├── DBHelper.java │ ├── MainActivity.java │ └── activity_main.xml ├── program7 │ ├── MainActivity.java │ └── activity_main.xml ├── program8 │ ├── MainActivity.java │ └── activity_main.xml └── program9 │ ├── GameView.java │ ├── MainActivity.java │ └── activity_main.xml ├── DIP ├── outputs │ ├── output1.png │ ├── output10.png │ ├── output2 .png │ ├── output3.png │ ├── output4.png │ ├── output5.png │ ├── output6.png │ ├── output7.png │ ├── output8-a.png │ ├── output8-b.png │ └── output9.png ├── program1.m ├── program10.m ├── program2.m ├── program3.m ├── program4.m ├── program5.m ├── program6.m ├── program7.m ├── program8.m └── program9.m ├── ML lab ├── mydata │ ├── Find_s_data.csv │ ├── candidate_data.csv │ ├── data.csv │ └── tennis.csv ├── program1(introduction) │ └── ml lab.pdf ├── program10.ipynb ├── program2.ipynb ├── program3.ipynb ├── program4.ipynb ├── program5.ipynb ├── program6.ipynb ├── program7.ipynb ├── program8.ipynb └── program9.ipynb ├── Python lab ├── new.c ├── program01.py ├── program02-a.py ├── program02-b.py ├── program03-a.py ├── program03-b.py ├── program04-a.py ├── program04-b.py ├── program04-c.py ├── program05-a.py ├── program05-b.py ├── program06-a.py ├── program06-b.py ├── program07.py ├── program08-a.py ├── program08-b.py ├── program09-a.py ├── program09-b.py ├── program10-a.py ├── program10-b.py ├── pythonlab.pdf └── test.txt └── README.md /APP development lab/Program2/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 15 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /APP development lab/Program2/HomeActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.program2; 2 | 3 | 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | 8 | public class HomeActivity extends AppCompatActivity { 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_home); 14 | 15 | TextView tvWelcome = findViewById(R.id.tvWelcome); 16 | tvWelcome.setText("Login Successful \n Welcome to the Home Page!"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /APP development lab/Program2/README.md: -------------------------------------------------------------------------------- 1 | ## AIM : To understand Activity, Intent, Create sample application with login module.(Check username and password). 2 | 3 | ### **Understanding Activity, Intent, and Login Module in Android** 4 | 5 | #### **Activity** 6 | An **Activity** represents a single screen in an Android application. It acts as the main entry point for user interaction. Every app has at least one activity, usually `MainActivity`, which is launched when the app starts. 7 | 8 | #### **Intent** 9 | An **Intent** is used to navigate between activities or pass data between them. It can be **explicit** (for launching a specific activity within the app) or **implicit** (for launching system applications like the camera or browser). 10 | 11 | #### **Login Module** 12 | A **Login Module** allows users to enter their credentials (username and password) and verifies them before granting access. It ensures security and can be implemented using static checks, local databases, or authentication APIs (e.g., Firebase). 13 | 14 | In our sample application, we created a **simple login module** where: 15 | 1. The user enters a **username and password**. 16 | 2. The credentials are validated in the `MainActivity`. 17 | 3. A message is displayed based on the verification result. 18 | 19 | This demonstrates the basic functionality of activities, intents, and UI interaction in Android development. 🚀 -------------------------------------------------------------------------------- /APP development lab/Program2/activity_home.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | -------------------------------------------------------------------------------- /APP development lab/Program2/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 18 | 19 | 20 | 26 | 27 | 28 | 34 | 35 | 36 |