A simple Android app that uses the Gemini API to provide medical advice based on user-reported symptoms.
- User-friendly interface for entering symptoms
- Integration with Gemini AI for medical advice
- Clear display of medicines and precautions
- Loading indicator during API calls
- Error handling and user feedback
- Safety disclaimer
-
Prerequisites
- Android Studio (latest version)
- Android SDK (API level 21 or higher)
- An Android device or emulator for testing
-
Project Setup
- Clone or download this repository
- Open the project in Android Studio
- The Gemini API key is already configured in
local.properties
-
Building the App
- Click on "Build" > "Make Project" in Android Studio
- Wait for the build to complete
-
Running the App
- Connect an Android device or start an emulator
- Click on "Run" > "Run 'app'" in Android Studio
- Select your target device and click OK
-
Sample Test Cases
- Input: "I have a fever and cough"
- Input: "I have a headache and nausea"
- Input: "I have a sore throat and runny nose"
-
Expected Output Format The app will display:
- Recommended medicines
- Precautions to take
- A disclaimer about consulting a real doctor
- This app provides AI-generated advice for informational purposes only
- Always consult a licensed doctor before following any medical advice
- The app requires an internet connection to function
- The Gemini API key is stored securely in the local.properties file
- If the app crashes, check your internet connection
- If you get an error message, try entering your symptoms again
- Make sure you have the latest version of Android Studio
- Ensure your device/emulator has internet access
For any issues or questions, please open an issue in the repository.