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 ...
1
vote
0
answers
108
views
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 ...
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 ...
3
votes
1
answer
10k
views
Install a APK and Launch App from Shell script [duplicate]
My Requirement is :
App A will Run shell script(myshellscript.sh) that is already in "system/bin" location and shell script will install App B that is stored in "sdcard/Download" location and will ...
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
153
views
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]
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). ...
0
votes
2
answers
371
views
AndroidScript DrawText() new line?
I'm working on a fully-featured, basic classic RPG (JRPG) using the Android "Javascript" IDE--AndroidScript (which is great!). Here's a few questions to start off: (I'm going to ask in separate ...
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 ...
1
vote
1
answer
2k
views
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 ...
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 ...
0
votes
1
answer
629
views
Programatically launch phone internal setting dialog on Android phone
I have an philips w626 dual-sim android 2.3.5 phone.
When I manually turn on data connection, SIM selection dialog appears and I have to choose what Card should data be switched on.
And exaclty this ...
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 ...
0
votes
1
answer
798
views
Android: How do I load External JSON data via JSON or JSONP in webview
I have an application with WebView
I tried to load external data via Ajax (Get) but it failed with no errors, tried JSONP and failed with no errors too.
Now here are more info:
When my External ...
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 $ --> ...
2
votes
5
answers
4k
views
Run python Script in android application
I want to get list of installed software on remote computer.For that I want to use python script in my android application.Now,I have a python script which is getting the list of installed software on ...
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 ...
20
votes
4
answers
3k
views
How can I get contact name with his/her number
I'm trying to develop a simple app using Android Scripting and Python.
Now, I have a phone number, and I want to find out which contact has that number. I can do a contactsGet() and search for ...
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
1
answer
161
views
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 ...
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 ...
9
votes
2
answers
12k
views
Writing python (or any other SL4A) in android [closed]
Can someone point me to a tutorial on using the android scripting enviornment? I've seen plenty of tutorials on how to write python code using the android API especially from http://code.google.com/p/...
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 ...
7
votes
2
answers
5k
views
installing python packages on android
I want to install a python package from source on android. Is this possible? I tried in the console to run the py install files, but distutils (.core, ccompiler) isn't being found. Is it possible to ...
4
votes
1
answer
818
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-...
2
votes
1
answer
301
views
How to get a Device Specific UID using Python in ASE on Android?
I am working on am Android Scripting Environment (ASE) script in Python to replicate an iPhone app.
I need a device UID of some sort. My thoughts where a salted MD5 hash of the MAC address or device ...
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 ...
2
votes
1
answer
931
views
Using Android's `Timer.schedule` in Python
Could someone explain how to use the Timer.schedule - that is used for scheduling tasks - in Python?
Note that Python's time.sleep will not work in Android.
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
...
5
votes
1
answer
1k
views
Download scripts for Android Scripting Environment
Downloaded ASE from google code, and was looking through tutorials, and available scripts.
I found a script I wanted to try, however copy pasting it is removing all whitespace (and this is a Python ...
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 ...
2
votes
1
answer
1k
views
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 ...
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 ...