33 questions
0
votes
0
answers
17
views
Why is my shell script variable not working as an argument for the top command? [duplicate]
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 ...
0
votes
1
answer
3k
views
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 ...
0
votes
2
answers
4k
views
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:...
0
votes
1
answer
420
views
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). ...
3
votes
1
answer
3k
views
Does Google still support SL4A for Android?
Does Google still support SL4A for Android.
I have created an apk file for SL4A which is A6 using the old source code, could anyone kindly let me know if the source code for SL4A is available for ...
2
votes
0
answers
121
views
Inspect element for html loaded in android application
I am rendering an html file using webview in my Android application. I am also using some javascript functions to handle the contents. Is there any way to inspect the html content (like the inspect ...
2
votes
1
answer
1k
views
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 ...
1
vote
1
answer
1k
views
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 <some file>
But the problem here is as soon the shell changes from $ --> ...
0
votes
2
answers
1k
views
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 ...
1
vote
1
answer
485
views
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 ...
0
votes
2
answers
101
views
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 ...
0
votes
1
answer
4k
views
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 ...
4
votes
1
answer
817
views
running python from an android app
I am trying to run a python script through an application I've written. I found some pages which say that this piece of code is doing it, but I can't figure it out.
http://code.google.com/p/android-...
8
votes
1
answer
920
views
Can I port my existing python apps on ASE?
I learned that the Android Scripting Environment (ASE) supports python code. Can I take my existing python programs and run them on android?
Apart from the GUI, what else will I need to adapt? How ...
15
votes
5
answers
6k
views
Making an android Python service to run in suspend state
Here's my Python script written using android-scripting:
import android, time
droid = android.Android()
interval = 1 # every 1 minute
while True:
# define your own vibrate pattern here
...
8
votes
1
answer
12k
views
Android - Use WebView to evaluate a javascript string and return the value
Given that scripting is not natively supported in Android and wrapping libraries like javax.script.ScriptEngine into your app will make it too large, is it possible to send a javascript string to an ...
2083
votes
23
answers
781k
views
Is there a way to run Python on Android?
We are working on an S60 version and this platform has a nice Python API..
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the ...