Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning an Android phone as a stable webserver (for a Python CGI script)
    primarykey
    data
    text
    <p>I'm new to Android. I have a Python program that is both a CGI script as well as an SMS-based interaction system for a small database. It is an extremely low demand system (a handful of users) being run by a grassroots organisation. But it requires stability, in the sense of not having random crashes or down time. For various reasons, running this on an Android phone would resolve some problems with the existing setup. However, before I dive in, I wanted to check regarding the feasibility of such a system. It would have to:</p> <ul> <li>Run a web server that could execute CGI scripts (vanilla CGI)</li> <li>Respond to SMSs</li> <li>Handle an SQlite database</li> <li>Do so in Python (as porting it to Java is not feasible due to time constraints)</li> </ul> <p>Interfacing with phone users is not required at this stage.</p> <p>I am aware that the pieces that would be needed exist - <a href="http://hex.ro/wp/blog/running-native-cgi-scripts-perl-with-micro-httpd-on-android/" rel="nofollow noreferrer">web servers with CGI</a>, <a href="http://code.google.com/p/android-scripting/" rel="nofollow noreferrer">SL4A</a>, etc. But the webservers mostly seem intended for personal use and SL4A clearly states that it <a href="http://code.google.com/p/android-scripting/" rel="nofollow noreferrer">"is <em>alpha</em> quality software"</a>. The various <a href="https://stackoverflow.com/questions/tagged/sl4a">questions on SO relating to SL4A</a> also don't seem to say much on this kind of use case. They are focused on application development for phones (such as <a href="https://stackoverflow.com/questions/11600364/what-are-the-limitations-of-python-on-android/11602162">this one</a>).</p> <p>In short, would such a system be stable? Assuming the core program is sound, could I rely on it? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload