|
| 1 | +# Build Instructions for Voice Notes App |
| 2 | + |
| 3 | +## Prerequisites |
| 4 | + |
| 5 | +You need one of the following: |
| 6 | +1. **Android Studio** (recommended - easiest method) |
| 7 | +2. **Command line tools** with Android SDK installed |
| 8 | + |
| 9 | +## Method 1: Using Android Studio (Recommended) |
| 10 | + |
| 11 | +### Step-by-Step: |
| 12 | + |
| 13 | +1. **Install Android Studio** |
| 14 | + - Download from: https://developer.android.com/studio |
| 15 | + - Install with default settings |
| 16 | + - Launch Android Studio and complete the setup wizard |
| 17 | + |
| 18 | +2. **Clone the Repository** |
| 19 | + ```bash |
| 20 | + git clone https://github.com/j-almenara-r/studious-garbanzo.git |
| 21 | + ``` |
| 22 | + |
| 23 | +3. **Open Project in Android Studio** |
| 24 | + - Launch Android Studio |
| 25 | + - Click "Open" |
| 26 | + - Navigate to the `studious-garbanzo` folder |
| 27 | + - Click "OK" |
| 28 | + - Wait for Gradle sync to complete (this may take a few minutes the first time) |
| 29 | + |
| 30 | +4. **Build the APK** |
| 31 | + - Click **Build** menu → **Build Bundle(s) / APK(s)** → **Build APK(s)** |
| 32 | + - Wait for the build to complete (you'll see a notification) |
| 33 | + - Click "locate" in the notification to find the APK |
| 34 | + |
| 35 | + OR use the toolbar: |
| 36 | + - Click the hammer icon (🔨) to build |
| 37 | + - Then go to `app/build/outputs/apk/debug/app-debug.apk` |
| 38 | + |
| 39 | +5. **Transfer APK to Your Phone** |
| 40 | + - Option A: Connect phone via USB, copy the APK file |
| 41 | + - Option B: Email the APK to yourself |
| 42 | + - Option C: Upload to Google Drive/Dropbox and download on phone |
| 43 | + |
| 44 | +6. **Install on Samsung Galaxy S25** |
| 45 | + - Locate the APK file on your phone |
| 46 | + - Tap to install |
| 47 | + - If prompted, allow installation from this source |
| 48 | + - Grant microphone permission when app asks |
| 49 | + |
| 50 | +## Method 2: Command Line Build |
| 51 | + |
| 52 | +### Prerequisites: |
| 53 | +- Java JDK 8 or higher installed |
| 54 | +- Android SDK installed (via Android Studio or standalone) |
| 55 | +- `ANDROID_HOME` environment variable set |
| 56 | + |
| 57 | +### Commands: |
| 58 | + |
| 59 | +```bash |
| 60 | +# Clone repository |
| 61 | +git clone https://github.com/j-almenara-r/studious-garbanzo.git |
| 62 | +cd studious-garbanzo |
| 63 | + |
| 64 | +# Build debug APK |
| 65 | +./gradlew assembleDebug |
| 66 | + |
| 67 | +# APK location |
| 68 | +# app/build/outputs/apk/debug/app-debug.apk |
| 69 | + |
| 70 | +# Install directly to connected device (optional) |
| 71 | +adb install app/build/outputs/apk/debug/app-debug.apk |
| 72 | +``` |
| 73 | + |
| 74 | +## Method 3: Using GitHub Actions (if configured) |
| 75 | + |
| 76 | +If GitHub Actions is set up for this repository, you can: |
| 77 | +1. Go to the "Actions" tab on GitHub |
| 78 | +2. Run the build workflow |
| 79 | +3. Download the built APK from the workflow artifacts |
| 80 | + |
| 81 | +## Troubleshooting |
| 82 | + |
| 83 | +### "SDK location not found" |
| 84 | +- Make sure Android SDK is installed |
| 85 | +- Set ANDROID_HOME environment variable |
| 86 | +- Or create `local.properties` file with: `sdk.dir=/path/to/android/sdk` |
| 87 | + |
| 88 | +### "Could not resolve dependencies" |
| 89 | +- Ensure you have internet connection |
| 90 | +- Gradle needs to download dependencies on first build |
| 91 | +- Try running: `./gradlew clean build` |
| 92 | + |
| 93 | +### "Build failed" |
| 94 | +- Update Android Studio to latest version |
| 95 | +- Ensure you have Android SDK 34 installed |
| 96 | +- Check Java version: `java -version` (needs Java 8+) |
| 97 | + |
| 98 | +### "App won't install on phone" |
| 99 | +- Enable "Install from Unknown Sources" or "Install Unknown Apps" in Settings |
| 100 | +- Make sure you're allowing installation from the file manager/browser you're using |
| 101 | +- Check if you have enough storage space |
| 102 | + |
| 103 | +## What Gets Built |
| 104 | + |
| 105 | +The build process creates: |
| 106 | +- **app-debug.apk** - Unsigned debug version (for testing/personal use) |
| 107 | + - File size: ~2-5 MB |
| 108 | + - Location: `app/build/outputs/apk/debug/app-debug.apk` |
| 109 | + |
| 110 | +For a production release (not needed for personal use): |
| 111 | +- You would need to sign the APK with a keystore |
| 112 | +- Use: `./gradlew assembleRelease` |
| 113 | + |
| 114 | +## Security Note |
| 115 | + |
| 116 | +The debug APK is suitable for personal use. It's not signed for distribution on Google Play Store, but that's fine for installing on your own device. |
| 117 | + |
| 118 | +## Estimated Time |
| 119 | + |
| 120 | +- First time setup: 30-60 minutes (downloading Android Studio, SDK, etc.) |
| 121 | +- Subsequent builds: 2-5 minutes |
| 122 | +- APK transfer and install: 1-2 minutes |
| 123 | + |
| 124 | +**Total time to working app on phone: 35-70 minutes** (most time is setup) |
| 125 | + |
| 126 | +## After Installation |
| 127 | + |
| 128 | +1. Launch "Voice Notes" app |
| 129 | +2. Tap "Allow" when asked for microphone permission |
| 130 | +3. Tap the big microphone button |
| 131 | +4. Speak your note |
| 132 | +5. Done! Your note appears with timestamp |
| 133 | + |
| 134 | +Perfect for dictating notes while driving safely! |
0 commit comments