Giter Site home page Giter Site logo

android-twisted-service's Introduction

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!

android-twisted-service's People

Contributors

vesellov avatar

Watchers

 avatar  avatar

Forkers

jamesagada

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.