Skip to content

Latest commit

Β 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

# πŸš€ Device Tracker

A complete **Android Device Tracking System** built with **Spring Boot**, **Android (Java)**, **MySQL**, and **WebSocket**.

This project enables Android devices to register with a backend server, send real-time location updates, monitor battery status, and display live device information through a web dashboard.

---

## πŸ“± Project Overview

The Device Tracker consists of two main components:

- **Android Application** – Collects device information and sends live location updates.

- **Spring Boot Backend** – Stores device data, manages tracking configurations, and provides a web dashboard.

---

## ✨ Features

### πŸ“± Android Application

- βœ… Device Registration

- βœ… Live GPS Location Tracking

- βœ… Background Location Updates using WorkManager

- βœ… Battery Percentage Monitoring

- βœ… Device Information Collection

- βœ… Runtime Permission Handling

- βœ… Retrofit API Integration

- βœ… Automatic Tracking Configuration Sync

---

### 🌐 Spring Boot Backend

- βœ… REST APIs

- βœ… Device Registration API

- βœ… Update Device Location API

- βœ… Device Information Management

- βœ… Location History

- βœ… Reverse Geocoding (Latitude β†’ Address)

- βœ… WebSocket Support

- βœ… Live Dashboard

---

### πŸ“Š Dashboard

- πŸ“ Live Device Location

- πŸ”‹ Battery Percentage

- πŸ“± Device Information

- πŸ—Ί Interactive Map (Leaflet)

- πŸ“œ Location History

- πŸ“ˆ Device Status Monitoring

---

# πŸ›  Tech Stack

## Android

- Java

- Android SDK

- Retrofit

- WorkManager

- Google Location Services

## Backend

- Spring Boot

- Spring Data JPA

- REST APIs

- WebSocket

- Maven

## Database

- MySQL

## Frontend Dashboard

- HTML

- CSS

- JavaScript

- Bootstrap 5

- Leaflet.js

---

# πŸ“ Project Structure


device-tracker

β”‚

β”œβ”€β”€ android-app

β”‚   β”œβ”€β”€ app

β”‚   β”œβ”€β”€ gradle

β”‚   β”œβ”€β”€ gradlew

β”‚   └── ...

β”‚

β”œβ”€β”€ device-tracker-api

β”‚   β”œβ”€β”€ src

β”‚   β”œβ”€β”€ pom.xml

β”‚   β”œβ”€β”€ .mvn

β”‚   └── ...

β”‚

└── README.md

---

# βš™οΈ Getting Started

## 1️⃣ Clone Repository

git clone https://github.com/manish01-star/device-tracker.git

---

## 2️⃣ Run Backend

cd device-tracker/device-tracker-api

Configure your database in:


src/main/resources/application.properties

Run the application:

mvn spring-boot:run

Backend URL


http://localhost:8080

---

## 3️⃣ Run Android App

cd device-tracker/android-app

Open the project in **Android Studio**.

Update your backend IP inside:


ApiClient.java

Build and run the application on your Android device.

---

# πŸ”„ Project Workflow


Android App

      β”‚

      β–Ό

Spring Boot REST APIs

      β”‚

      β–Ό

MySQL Database

      β”‚

      β–Ό

Web Dashboard

---

# πŸ“‘ REST APIs

- Register Device

- Update Device Location

- Get Device Details

- Get Tracking Configuration

- Dashboard APIs

---

# πŸš€ Future Enhancements

- πŸ” JWT Authentication

- πŸ‘₯ Multi User Support

- πŸ”” Push Notifications

- πŸ“ Geofencing

- πŸ“Š Analytics Dashboard

- ☁ Cloud Deployment

- πŸ“ˆ Device Activity Reports

---

# πŸ“· Screenshots

Screenshots will be added soon.

- Android App

- Dashboard

- Live Map

- Device Details

---

# 🀝 Contributing

Contributions, suggestions, and improvements are welcome.

1. Fork the repository

2. Create a new branch

3. Commit your changes

4. Push your branch

5. Open a Pull Request

---

# πŸ‘¨β€πŸ’» Author

**Manish**

Software Developer

### Skills

- Java

- Spring Boot

- Android

- REST APIs

- MySQL

- Git

- GitHub

GitHub:

https://github.com/manish01-star

---

## ⭐ Support

If you found this project useful, please consider giving it a ⭐ on GitHub.

About

Device Tracker System built with Spring Boot REST APIs and Android application.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages