https://github.com/vesellov/android-twisted-service
An example of background Twisted server running on Android
https://github.com/vesellov/android-twisted-service
android kivy mobile python python-for-android twisted webserver
Last synced: 5 months ago
JSON representation
An example of background Twisted server running on Android
- Host: GitHub
- URL: https://github.com/vesellov/android-twisted-service
- Owner: vesellov
- Created: 2019-09-27T17:29:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T18:48:04.000Z (over 6 years ago)
- Last Synced: 2025-07-18T06:24:14.146Z (8 months ago)
- Topics: android, kivy, mobile, python, python-for-android, twisted, webserver
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Twisted web server running on your Android
Tested on Ubuntu 18.04 Desktop
#### Install dependencies
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git gcc make perl pkg-config autoconf libtool protobuf-compiler
sudo apt-get install python3-pip openjdk-8-jdk python3-venv
sudo apt-get install zlib1g-dev libffi-dev libusb-1.0-0-dev libudev-dev
sudo apt-get install python-zopeinterface python-twisted
sudo pip3 install cython
#### Install buildozer
make install_buildozer
#### Make sure to start from clean state
make clean
#### Build APK image
make
#### Connect and run on Android device
Enable "Developer Mode" on your Android device: https://developer.android.com/studio/debug/dev-options
Open another terminal window and run this to be able to catch Python logs from your Android:
adb logcat | grep python
Now connect your device with USB cable and install APK file you just created:
adb install -r bin/twistedsample-1.0.1-armeabi-v7a-debug.apk
On your device find "TwistedSample" application and start it.
You will see a lot of output in another console window and will be able to monitor the service.
Now you can open web browser on your Android and open `http://127.0.0.1:18000`.
Hello, world!