You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. On your device, navigate to the APK file and tap on it
88
+
3. Follow the on-screen instructions to install the app
89
+
90
+
## Testing the App
91
+
92
+
### On an Emulator
93
+
94
+
1. In Android Studio, open the AVD Manager (Tools > AVD Manager)
95
+
2. Create a new virtual device if you don't have one already
96
+
3. Start the emulator
97
+
4. Run the app on the emulator
98
+
99
+
### On a Physical Device
100
+
101
+
1. Enable Developer Options on your Android device:
102
+
- Go to Settings > About phone
103
+
- Tap on "Build number" 7 times until you see "You are now a developer"
104
+
2. Enable USB Debugging:
105
+
- Go to Settings > System > Developer options
106
+
- Turn on "USB debugging"
107
+
3. Connect your device to your computer via USB
108
+
4. Allow USB debugging when prompted on your device
109
+
5. In Android Studio, select your device from the dropdown menu
110
+
6. Run the app
111
+
112
+
## Troubleshooting
113
+
114
+
### Common Issues
115
+
116
+
1.**Gradle sync failed**: Make sure you have the correct Gradle version and JDK installed
117
+
2.**Device not recognized**: Check USB debugging is enabled and you have the proper USB drivers installed
118
+
3.**App crashes on startup**: Check the logcat output in Android Studio for error details
119
+
4.**WebView not loading**: Verify internet connectivity and that the URL in Config.kt is correct
120
+
121
+
### Debugging
122
+
123
+
1. In Android Studio, open the Logcat window (View > Tool Windows > Logcat)
124
+
2. Filter the logs by "PDFConverter" to see app-specific logs
125
+
3. Look for any error messages or exceptions
26
126
27
127
## Project Structure
28
128
29
129
-`MainActivity.kt`: Main activity with WebView implementation
30
-
-`Config.kt`: Configuration class that reads from the .env file
31
-
-`activity_main.xml`: Main layout with WebView and SwipeRefreshLayout
130
+
-`Config.kt`: Configuration class that provides the API base URL
131
+
-`activity_main.xml`: Main layout with WebView and bottom navigation bar
132
+
-`bottom_nav_bar.xml`: Layout for the bottom navigation bar
32
133
-`AndroidManifest.xml`: App configuration and permissions
33
134
-`build.gradle`: Project and app-level build configurations
34
135
35
136
## Configuration
36
137
37
-
The app reads the PWA URL from the `API_BASE_URL` variable in the project's root `.env` file. This allows you to easily switch between different environments (development, staging, production) by modifying a single configuration file.
38
-
39
-
### How It Works
40
-
41
-
The `Config.kt` file reads the API_BASE_URL from the .env file:
0 commit comments