TechShare is an Android mobile application designed for renting and selling electronics and gadgets. Built with Java, Firebase, and an integrated AI-driven recommendation engine, TechShare enables users to list, discover, rent, or buy gadgets seamlessly through a smart, personalized marketplace experience.
- Firebase Auth Integration: Secure signup and login using email/password.
- Role Management: Unified user accounts supporting both buyer/renter and seller/lessor roles.
- User Profiles: Manage active listings, transaction history, rental agreements, and saved items.
- Dual Transaction Model: List gadgets for outright sale or short-term rental with daily/weekly rates.
- Dynamic Search & Filtering: Filter gadgets by category (laptops, cameras, gaming consoles, audio gear), price range, availability, and condition.
- Item Management: Detailed product pages complete with high-resolution image carousels, specification breakdowns, seller information, and rental terms.
- Booking & Rental Tracking: Track active rental periods, return deadlines, and reservation statuses in real time.
- Personalized Feeds: Surfaces relevant gadget listings based on user browsing history, category preferences, and past rental habits.
- Collaborative Filtering: Recommends accessories and complementary gadgets based on items similar users rented or bought.
TechShare utilizes a hybrid architecture connecting an Android client to Firebase cloud services and an external Flask-based AI recommendation service:
┌────────────────────────────────────────────────────────┐
│ TechShare Android App │
│ (Java / XML Layouts / Material UI) │
└───────────────┬────────────────────────┬───────────────┘
│ │
▼ ▼
┌───────────────────────────────┐ ┌───────────────────────────────┐
│ Firebase Backend │ │ Flask AI Service API │
│ • Firebase Auth │ │ • Python / Scikit-Learn │
│ • Cloud Firestore Database │ │ • Recommendation Matrix │
│ • Firebase Cloud Storage │ │ • Content & Item Filtering │
└───────────────────────────────┘ └───────────────────────────────┘
- Frontend / Android: Java, Android SDK (API 24+), XML Layouts, Material Design Components
- Backend Services: Firebase Authentication, Cloud Firestore (NoSQL), Firebase Storage
- AI Engine & API: Python 3, Flask REST API, Pandas, Scikit-Learn
- Asynchronous Networking: Retrofit 2 / Volley, Glide (Image Caching)
- IDE & Tooling: Android Studio, Git, Postman
The Firestore database is structured into four main collections:
users/: Stores user metadata, contact information, role, and preference vectors for AI recommendations.gadgets/: Stores product details (title, description, category, sale price, rental rate, availability status, owner ID, image URLs).transactions/: Tracks purchases and rental agreements (item ID, buyer ID, seller ID, total price, rental start/end dates, transaction status).recommendations/: Cached recommendation scores generated by the AI engine for fast mobile retrieval.
- Android Studio (Electric Eel or newer recommended)
- JDK 11 or higher
- Android device or emulator running API Level 24 (Android 7.0) or higher
- A configured Firebase Project
- Clone the repository:
git clone [https://github.com/your-username/TechShare.git](https://github.com/your-username/TechShare.git)
cd TechShare
- Configure Firebase:
- Go to the Firebase Console.
- Create a new project and register an Android app using your package name (
com.techshare.app). - Enable Authentication (Email/Password), Firestore Database, and Firebase Storage.
- Download
google-services.jsonand move it to theapp/directory:
TechShare/app/google-services.json
- Build and Run:
- Open the project folder in Android Studio.
- Wait for Gradle dependencies to sync.
- Run the application on an emulator or physical device (
Shift + F10).
TechShare/
├── app/
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/com/techshare/app/
│ │ │ │ ├── activities/ # MainActivity, LoginActivity, ProductDetailActivity
│ │ │ │ ├── adapters/ # GadgetAdapter, RentalAdapter, CategoryAdapter
│ │ │ │ ├── models/ # Gadget, User, Transaction, Recommendation
│ │ │ │ ├── network/ # Firebase Helpers & Flask API Services
│ │ │ │ └── utils/ # Date formatters, validation constants
│ │ │ ├── res/
│ │ │ │ ├── layout/ # XML UI layouts
│ │ │ │ ├── drawable/ # Icons and graphics
│ │ │ │ └── values/ # Colors, strings, themes
│ │ │ └── AndroidManifest.xml
│ └── google-services.json
├── build.gradle # Project-level Gradle setup
└── README.md # Project documentation
- Developer: Mesum Hussain
- Degree: B.Sc. in Computer Science (Software Technology)