Questions tagged [android-scripting]
33 questions
2
votes
1 answer
How can I interact with the android scripting environment from an android app?
I'd like to use python scripts as plugins for an app I'm developing. This seems to be possible by interacting with android-scripting-environment (ASE), as is done by Locale, but I haven't found any documentation about this. How you execute ASE…

Joakim Lundborg
- 10,920
- 6
- 32
- 39
2
votes
1 answer
Using Python android.py module without SL4A
Is there a way to use android.py module without installing SL4A?
I mean I have Python running on android successfully from Terminal Emulator.
Can I use that module without installing that layer (or if I can't install it anymore)?

Крайст
- 776
- 1
- 9
- 22
1
vote
1 answer
Running chmod from my application doesn't work after running su
My main aim is to run a something like below from within an Android application:
$(normal mode)su
#(root mode) chmod 777
But the problem here is as soon the shell changes from $ --> # the chmod command doesn't work.
Another way of…
softy
1
vote
0 answers
Execute Python script on Android studio Application
I have developed an android application using java on an android studio. And now I need to implement the python script for a part of the backend functionalities. I want to access the data from our android SQLite DB to process the python scripts and…

krishna
- 409
- 5
- 16
1
vote
1 answer
How to interact with android device through a script?
I need a bump in the right direction here.
I want to write a script that will scroll up or down, maybe unlock the screen ( no lockscreen security set ) every 30 minutes or so. Also if possible I'd like for it to press the next button on my YouTube…

fluffehStack
- 81
- 1
- 12
1
vote
1 answer
I need a global TextView?
I have 2 classes - Buttons_Class - Display_Class
On the screen I show a few Buttons and a TextView at all times.
The Buttons class sends a startActivityforResult to the Display class with a string in a bundle. The Display class manipulates that…

EliFromToronto
- 81
- 1
- 8
1
vote
1 answer
Android shell script fails to run command in background
My android app launches a script using Runtime.exec(). The script in turn runs a command that starts a process. I want to capture the pid of that process, so I can keep track of its status and kill it later.
Here's an excerpt from my script:
$exec …

MidnightJava
- 1,927
- 2
- 18
- 38
0
votes
2 answers
how to setup android-scripting + python on Android phones?
I've downloaded the latest available version of python interpreter here. Now, how can i start scripting in python on my phone? The apk (r4) that i've installed is has not any other option than download python interpreter and browse modules.
any…

Pabluez
- 2,653
- 3
- 19
- 29
0
votes
0 answers
Why is my shell script variable not working as an argument for the top command?
So I'm writing this simple script to pull the process ID of my app, and then run the "top" command with the value I pulled as the -p argument. The goal is to run the "top" command using the pid of our app to see what our CPU and MEM usage is like…

mbob98
- 79
- 7
0
votes
1 answer
How to transfer data with Intents
I am building an application that has 2 classes
- Buttons_Class
- Display_Class
I want to keep them as separate classes.
When the user clicks on a button the OnClick routine in the Buttons_Class creates an intent and a bundle and starts the…

EliFromToronto
- 81
- 1
- 8
0
votes
2 answers
Disribute program with scripts in android
I'm confused how the the android scripting enviornment is supposed to work. Is there a relatively easy way to include python scripts that I run from my java code without making the users download any new applications or anything? Or am I completely…

Falmarri
- 47,727
- 41
- 151
- 191
0
votes
1 answer
Using python in android to interface to sql
I know you can use python and other scripting languages in android. But I haven't seen weather or not it was possible to use python as an interface to sqlite in android. Is this possible? This is the first android app where I've needed sqlite, and…

Falmarri
- 47,727
- 41
- 151
- 191
0
votes
2 answers
How do I use gdata and save a file on QPython for android?
I am in the process of migrating my scripts from python SL4A to QPython (can't get SL4A to work on android lollipop).
I can't save a file to the disk
So I am using:
with open("foo.txt" ,"a") as f:
f.write(theInfo)
And I get
IOError: [Errno…

user850498
- 717
- 1
- 9
- 22
0
votes
1 answer
AndroidScript - DrawArc equivalent?
I'm trying to draw an Arc in AndroidScript on the canvas. Does that method exist?
Thanks,
Dan
[they're making me add more to the question, so here you go]

ProGrammar
- 298
- 4
- 17
0
votes
1 answer
Organize code in AndroidScript?
I'm working on a fully-featured, basic classic RPG (JRPG) using the Android "Javascript" IDE--AndroidScript (which is great!). However, this program is getting a little large for one file (700 lines). What can I do to better organize or separate my…

ProGrammar
- 298
- 4
- 17