Running from Android Studio
The easiest way to run TechSales is through Android Studio:Select Device
Choose a target device from the device dropdown:
- Physical device connected via USB
- Android Virtual Device (AVD) emulator
Running with Gradle
Use Gradle tasks to build, install, and optionally launch the app:Install Debug Build
Install Release Build
Release builds require signing configuration. The unsigned APK must be signed before installation on production devices.
Uninstall App
To remove the app from connected devices:Running with ADB
Android Debug Bridge (ADB) provides direct control over app installation and launching.Prerequisites
Ensure ADB is in your PATH and devices are connected:Install APK
First, build the APK (see Building), then install it:Launch the App
Launch the MainActivity using the package name and activity:com.teamtech.techsalesMain activity:
MainActivity
The activity reference .MainActivity is shorthand for com.teamtech.techsales.MainActivity.
Combined Install and Launch
Stop the App
Uninstall via ADB
Setting Up an Emulator
To run TechSales on an Android Virtual Device (AVD):Select System Image
Choose a system image matching the app’s requirements:
- Minimum API: 29 (Android 10)
- Target API: 36
Configure AVD
Set AVD name and advanced settings:
- RAM: At least 2GB
- Internal storage: 2GB+
- Graphics: Hardware acceleration
Launch Emulator from Command Line
Device Debugging
Enable USB Debugging
To run on a physical device:Enable Developer Options
On your Android device:
- Go to Settings > About phone
- Tap Build number 7 times
Wireless Debugging (Android 11+)
For devices running Android 11 or higher:View Logs
Monitor app logs in real-time:Application Entry Point
The app launches through the MainActivity, as defined inAndroidManifest.xml:
- Activity class:
com.teamtech.techsales.MainActivity - Exported:
true(required for launcher) - Intent filter: MAIN/LAUNCHER (shows in app drawer)
Quick Reference
Common ADB Commands
Gradle Run Tasks
Troubleshooting
Device Not Recognized
- Check USB cable and connection
- Enable USB debugging on device
- Authorize computer on device
- Restart ADB server:
Installation Failed
App Crashes on Launch
Check logs for errors:Next Steps
Testing
Run tests to verify functionality
Building
Learn about build variants