Reputation: 5
I am currently working on an app for android devices. However, the application is too big to build for the device. Therefore, i want to build the core of the application (the part that does most of the work) and place it on a server, and build the light weight part of the application for the mobile device. The App on the android device is to connect to the application on the server, and collect the processed information. I want to build the application that is to run on a server with the Python language, as the application I'm working on does a lot of numeric crunching. Is this possible? If so, how can i embed my Python script to a web server and how to link it to my application
Upvotes: 0
Views: 1048
Reputation: 90
On the server side I would suggest looking the Flask framework (you may find the Flask-Restful framework and having the mobile app accessing it via a REST API. This may be useful depending on your Android experience: http://developer.android.com/training/volley/simple.html However, if you are doing a lot of number crunching, you may need to use WebSockets to connect the two and run your processing in a background thread. In which case I would look at http://www.elabs.se/blog/66-using-websockets-in-native-ios-and-android-apps and https://flask-socketio.readthedocs.org/
Upvotes: 1