Running the Flight Ticket Form Android App
User Guide: Running the Flight Ticket Form Android App
Introduction
The Flight Ticket Form app is an Android application that loads a web-based form inside a WebView. This guide provides step-by-step instructions to set up, run, and use the application.
Prerequisites
Before running the application, ensure you have the following:
- A computer with Android Studio installed.
- A physical Android device or an emulator configured.
- Internet access.
Step 1: Clone or Download the Source Code
- Open a terminal or command prompt.
- Navigate to the desired directory and clone the repository:
git clone https://github.com/brahmaputraS/flight-ticket-booking.git
or download the ZIP file and extract it.
Step 2: Open the Project in Android Studio
- Launch Android Studio.
- Click on Open and select the extracted project folder.
- Allow Android Studio to sync and build the project.
Step 3: Configure and Run the App
- Enable Internet Permission:
- Open AndroidManifest.xml and confirm the following permission is present:
<uses-permission android:name="android.permission.INTERNET"/>
- Open AndroidManifest.xml and confirm the following permission is present:
- Run the App:
- Click on Run ▶ in Android Studio or use the shortcut Shift + F10.
- Choose a connected device or an emulator.
Step 4: Using the App
- Upon launching, the app loads a web page inside a WebView.
- The form URL loaded is: https://custom-form-c673d.web.app/
- Users can fill out and submit the form as required.
- Navigation:
- Press the back button to return to the previous web page.
- If no previous page exists, the app exits.
Troubleshooting
Issue: WebView Not Loading
- Ensure the device/emulator has an active internet connection.
- Check log messages in Logcat (Alt + 6 in Android Studio) for errors.
Issue: App Crashing on Launch
- Make sure the minimum SDK version matches your device/emulator.
- Ensure all dependencies in build.gradle are properly installed.
Screenshot:
Conclusion
You have successfully set up and run the Flight Ticket Form app. You can now modify or enhance it further based on your requirements.