-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented execution of Python apps. Closes #1
The python host provides the necessary libs to execute Python code. These libs must be loaded by the Python app. To ensure that there is no security issue the Python host must have the permission "com.python.permission.PYTHONHOST". It's a start, but I think that the starting process of the Python apps is too complicated, not intuitive and takes too long. If anybody has advice on that topic, please tell me at issue #9.
- Loading branch information
Showing
19 changed files
with
208 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
app/src/main/java/com/apython/python/pythonhost/ExecutePythonAppActivity.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/apython/python/pythonhost/GetPythonAppExecutionInfoActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.apython.python.pythonhost; | ||
|
||
import android.app.Activity; | ||
import android.os.Bundle; | ||
|
||
/* | ||
* This activity can be launched via an intent with the action | ||
* "com.python.pythonhost.PYTHON_APP_GET_EXECUTION_INFO". | ||
* It is used by the Python apps to execute their Python code. | ||
* | ||
* Created by Sebastian on 27.05.2015. | ||
*/ | ||
|
||
public class GetPythonAppExecutionInfoActivity extends Activity { | ||
|
||
// The communication manager which handles the communication with the Python apps. | ||
PythonAppCommunicationManager communicationManager; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
this.communicationManager = new PythonAppCommunicationManager(this); | ||
if (this.communicationManager.parseArgs(this.getIntent())) { | ||
this.communicationManager.startPythonApp(); | ||
} | ||
} | ||
} |
35 changes: 0 additions & 35 deletions
35
app/src/main/java/com/apython/python/pythonhost/MessageIDs.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
app/src/main/java/com/apython/python/pythonhost/PythonAppCommunicationHandler.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.