Simple medicine reminder app using python
To build an APK for Android from your Kivy application, we will use Buildozer, a tool that automates the process of packaging Kivy applications for Android. Below is a step-by-step guide to help you through this process.
- Set reminders with medication name and interval (in hours).
- View a list of all active reminders.
- Edit or delete existing reminders.
- Receive notifications with medication details.
- Python 3.6+
- Git
- Buildozer (Python tool to package the application)
- Java JDK (for compiling the application)
- Android SDK (Android development tools)
sudo apt update
sudo apt install -y python3-pip python3-dev build-essential git \
python3-venv libffi-dev libssl-dev liblzma-dev zlib1g-dev \
libgdbm-dev libsqlite3-dev libreadline-dev libncurses5-dev libbz2-dev \
openjdk-11-jdk
brew install caskroom/cask/brew-cask
brew install automake autoconf libtool pkg-config
brew install gnu-sed wget
brew install openssl
Navigate to your project directory and initialize Buildozer:
cd your_project_directory
buildozer init
This command will create a buildozer.spec file in your project directory. This file contains all the configurations required to build the APK.
Open the buildozer.spec file in a text editor and modify it as needed. Here are some important fields you should configure:
title = Medicine Reminder
package.name = medicinereminder
package.domain = org.example
source.include_exts = py,kv
source.include_patterns = assets/*, images/*, *.png
requirements = python3,kivy,kivymd,plyer,schedule,sqlite3
android.permissions = INTERNET, VIBRATE
Once your buildozer.spec file is configured, you can build the APK. In your project directory, run:
buildozer -v android debug
This command will download the necessary tools, compile your application, and package it into an APK file. The -v flag provides verbose output.