Skip to content

A basic Android app to demonstrate sending data between two activities using Intents. Users enter their name and age, and view the data on a second screen after clicking a button.

Notifications You must be signed in to change notification settings

AmarjeetJyotis/Android-Studio-Project-5-Button-Intent-Action

Repository files navigation

Android-Studio-Project-5-Button-Intent-Action

image

image

Android Intent Data Transfer App

This is a simple Android application demonstrating how to pass data (Name and Age) between two activities using Intents in Android Studio. The user inputs their name and age on the first screen, and upon clicking the "Send Data" button, the information is displayed on the second screen.

📱 Features

  • Collect user input using EditText
  • Navigate between activities
  • Transfer data using Intents
  • Display personalized message on the second screen

🛠️ Built With

  • Java
  • Android Studio
  • XML (for UI design)
  • Android SDK 29 (API Level 29)

📸 Screenshots

Activity 1 – User Input

Input Screen

Activity 2 – Display Result

Display Screen

🧑‍💻 Author

Amarjeet Kumar
UID: 21BCS10768
Department of Computer Science & Engineering
Chandigarh University

Portfolio: https://amarjeetkr.vercel.app/
LinkTree: https://linktr.ee/AmarjeetKumarJyotish
GitHub: https://github.com/AmarjeetJyotis
LinkedIn: https://www.linkedin.com/in/amarjeet-jyotish/
GeeksforGeeks: https://www.geeksforgeeks.org/user/amarjeetjyotish/
LeetCode: https://leetcode.com/u/AmarjeetJyotish/

📂 Project Structure

app/ ├── java/ │ └── com.example.exp21/ │ ├── MainActivity.java │ └── SecondActivity.java ├── res/ │ ├── layout/ │ │ ├── activity_main.xml │ │ └── activity_second.xml │ └── values/ │ └── strings.xml

bash Copy Edit

🚀 Getting Started

  1. Clone this repository:
    git clone https://github.com/your-username/android-intent-demo.git

Open the project in Android Studio.

Run the app on an emulator or physical device.

🧠 How It Works MainActivity.java:

Collects user input.

Sends it to SecondActivity using an Intent.

SecondActivity.java:

Receives the data via getIntent().getStringExtra(...).

Displays it in TextViews.

📌 Requirements Android Studio Arctic Fox or newer

Android device or emulator (API 29+)

Java 8+

📝 License This project is licensed under the MIT License - see the LICENSE file for details.

About

A basic Android app to demonstrate sending data between two activities using Intents. Users enter their name and age, and view the data on a second screen after clicking a button.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages