Android :: Interact With Scripting Environment From An App?
Oct 4, 2009
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 scripts from your own app?
View 1 Replies
Oct 13, 2009
I'm trying to make my app scriptable. Specifically, I need to expose a few Java APIs and make callbacks settable via user-written scripts. Ideally I'd like to hide some of the complexity away in a DSL, but there's no way of accomplishing what I want neatly without some form of user scripting, so I may accept another alternative if it meets my requirements. Initially I looked into Scala as that is my main language of choice, but the Scala interpreter is just a wrapper around its compiler, which I'm told won't run well if at all on the phone.
I've also tried JRuby, which worked under Cupcake. There appears to be a regression in the form of a Dalvik bug that prevents it from working under Donut, however:
http://code.google.com/p/android/issues/detail?id=4242
I've also seen the Android Scripting Environment. Am I correct in assuming that this only supports running full interpreters and not embedding scripting languages into apps?
View 4 Replies
View Related
Jan 14, 2010
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 script. Is there a simple way to download a script from the Internet into the Android Scripting Environment?
View 1 Replies
View Related
Nov 1, 2010
Today, the focus of a cell phone's capabilities is drifting away from plain making a phone call.
And somehow, this shows in the API's too. Therefor I'm wondering: if I want to write an app that e.g. pitches up, records, scrambles... an incoming call - you know, the voice on the other side -, what aspect of the API should I use?
I looked into Android, into Windows Phone, iPhone... (briefly), but had no luck. Is this just unintended usage?
View 4 Replies
View Related
Dec 30, 2009
I am searching for some method of extending Android application with scripting support. All I need is something similar to Lua's C api - I should be able to bind a few functions (classes not necessary) and run a script with a parameter to do some actions and produce result. Android api bindings are unnecessary (even unwanted for security reasons). I have searched this group and google for a lib like this, but no success. Sure there is Android Scripting Environment, but it runs Lua and Python normal interpreter as a separate C process. The Java port of Lua interpreter, which I could possibly compile for Android, doesn't seem to be ready yet, but I may be wrong. I have also looked at JRuby, which looks good except it is large and it may be hard to limit script's access to Java classes, or to set it up properly. Also, Android seems to have some Javascript interpreter (with Webkit) - maybe there is a way to use it inside app? So here is my question: How can I add scripting to my app?
View 3 Replies
View Related
Jun 5, 2009
Is it possible for an app icon to drag over and interact with a widget, similar to the action of deleting an icon or adding something to a folder?
View 2 Replies
View Related
Nov 8, 2009
Hey I've been playing with my droid and I was wonder whether there are any scripting apps. Something like python on the phone? Is it possible? Is there anything like that?
View 4 Replies
View Related
Jan 22, 2010
Does anyone know of a web browser app, or a script for a web browser, that would allow an Android user to update all four of the windows in the web browser (from a pre-configured list of URLs) with a single input to the smartphone? With such an app, one could update four pages in the background, where 3G or "Edge" network speed would not be very important, and then. later on, quickly view/review all four web pages once the time-consuming data fill was complete. My job situation does not allow me to pull out the smartphone and play with it for several minutes to do this -- I could however start the process then come back in a few minutes and quickly toggle through four-screens of already loaded web info.
View 4 Replies
View Related
Mar 11, 2010
I have an XML based file format that I'm using to store and load instances of objects. I'm interested in adding some scripting support to those objects so that they can respond to events. That said, I also don't want to cripple performance. Are there any well known scripting options for Android - maybe even ones where while loading, I can pre-compile and cache the scripts?
View 2 Replies
View Related
Jun 15, 2010
just wonder what people used to interact with their Evo....I keep hearing Linux is better to use than windows? I'm trying to get linux up and running for when i get my evo if that is the case. Just wonder if its worth the trouble...is there anything i'm missing if i dont use linux.
View 12 Replies
View Related
Jul 21, 2009
I'm trying to work with a web service (that I have no control over) that returns a SQLite database when you query it. Is there any way to do this?
View 3 Replies
View Related
Mar 22, 2012
I am trying to get an application to interact with basic settings of an andriod phone so that the functionality of the app can be switched on or off in the main settings functions...
View 1 Replies
View Related
Mar 6, 2010
I have some knowledge about Human computer interaction and some basic knowledge programming scripts (Python) that run from start to finish and automate some tasks I want to do or calculations. In the past I built interfaces in HTML with PHP behind it. I would like my python scripts to evolve from the command line and build some applications with GUIs that would allow the user to drag files and push buttons to initiate operations and check progress graphically. Since I write my scripts in Python I looked at some of the options (Tkinter, wxPython, PyQt) but I can't make a decision between them to invest my time learn one and not the other. My criteria: Has a introduction for programmers for GUI (what are the differences from a script, examples of some simple interfaces). A framework that would allow me to run my programs on the platforms I use most (Windows) but that can also run on Mac and maybe Linux, without too much modification. If not the same, similar to how you program GUI for Android and/or Nokia smartphones. I'm planning to write some programs for these platforms in the near future so I would like to carry over some of the lessons here onto those platforms, if possible. I did find this previous question but none of the answers are satisfactory. Does any of the frameworks fit these requirements better than the others or are they essentially similar and I would be happy with any of them?
View 2 Replies
View Related
Aug 27, 2010
My application needs to perform some activities in background (like interacting with the network and check the location and some other stuff), having or not the main activity visible. Which is the best way to achieve this? Should I write a service for each kind of job? Or just one service that performs everything? I am aware that I will need to launch threads / asynctasks in any case because the service runs on the same thread of the UI, but maybe having several services is a more clear and readable structure.
View 7 Replies
View Related
Nov 24, 2009
Has anybody tried bash scripting on android? I tried to write a simple script on Android's bash shell through adb. Why do I get this error and is there a work around?
View 1 Replies
View Related
Aug 25, 2010
I've got an iphone app and I'm looking to port some of the data-layer objective-c code to a scripting language which can also run on an android phone. Any suggestions on what to use? I'd also like to be able to push new scripts to the app for bug fixes. Not sure if this is against the iphone SDK agreement or not.
View 4 Replies
View Related
Sep 3, 2010
That I can download to interact with other android users.
View 2 Replies
View Related
Jul 19, 2010
I read an article from the web on SL4A (which is also known as Android Scripting Environment). The site from where i got an article is: http://infoworld.com/d/developer-world/php-development-comes-google-android-652. But i got the theoretical knowledge only for SL4A (ASE). Anybody having practical idea or practical example, pleas suggest to me. Which are the scripting language supported by ASE? How do i download script?
View 3 Replies
View Related
Sep 29, 2009
I'm looking into a solution that needs apps to be dynamically extensible. One way could be an extension language or scripting engine. I've seen the Android Scripting Environment, but this needs the actual C scripting engine (Python or Lua) running as a separate process. I would like the runtime to be a Java app itself, like JavaScript using Rhino (and not using a WebView). Another way is to download Java code dynamically. But, Android does not support jar downloading and dynamic classloading, since these bytecode class files are not used directly.
View 4 Replies
View Related
Apr 30, 2013
If I wanted to create an app that manipulates, reads the data of, or controls an external electronic device, what coding or technologies are involved in this? some apps control an toy RC plane in the room.
View 1 Replies
View Related
Sep 20, 2010
I am creating an app which allows for many different Activities to be started from a TabActivity(up to ~25). Most of the activities require data from the sqlite database, so when onCreate is run, an AsyncTask creates an SQLiteOpenHelper object(which will open a readable/writable database), runs a query, data is retrieved, and everything is then closed.
I was just testing messing around to see if i could break something, so i added every Activityto the TabActivity's TabHost. I then started mashing each tab as quickly as possible.
I noticed that very quickly i began to see in the LogCat: Caused by: android.database.sqlite.SQLiteException: database is locked: BEGIN EXCLUSIVE; and the app proceeded to die.
Typically there will only be about 4-6 tabs(i can just limit the user anyway) for the TabHost. I haven't been able to break anything with a small amount of tabs to mash, but i am still worried that maybe i am accessing the database in a poor way.
How can i prevent my SQLiteDatabase objects to cause a lock?
If i create a ContentProvider will that eliminate the possibility of database locking?
Do you have any suggestions for changes I could make for accessing data from an SQLiteDatabase?
I ended up taking the approach of using the Application class and storing 1 SQLiteOpenHelper and trying my best to keep it synchronized. This seems to be working great - i put all my 25 activities in the TabHost and mashed away on them with no errors.
I am calling ((SQLiteDbApplication)getApplication()).setDbHelper(new DBHelper(this, Constants.DB_NAME, null, Constants.DB_VERSION_CODE)); method(shown below) in every onCreate() in my activities
Any further suggestions to this approach or to the changes i made using this Application class?
CODE:...................
View 3 Replies
View Related
May 2, 2010
I know it should be possible, but I am new to android / linux and got no idea of scripting and such. Anyone help?
View 2 Replies
View Related
Sep 14, 2011
My HTC Desire was on Gingerbread 2.3 and I then decided to root the phone with ClockWorkMod. I can flash any ROM fine but when I try to flash a radio it says 'Installation Aborted' and then tells me to use Edify Scripting?
View 3 Replies
View Related
Aug 31, 2009
When I download the source and build it according to http://source.android.com/download, then try to build the eclipse dev evironment as described on http://source.android.com/using-eclipse, I get 100s of Java Errors when trying to build the project.
Linux is 2.6.28-15-generic #49-Ubuntu Eclipse is eclipse-java-galileo-linux-gtk.tar.gz
18# java -version java version "1.5.0_18" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02) Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing) 19#
View 5 Replies
View Related
Sep 17, 2010
For now I've used the classic export command to set an environment variable and tried to read this variable from my test with System.getenv() function, but it doesn't seem to work. how to set and read a system variable in an Android application?
View 3 Replies
View Related
Nov 2, 2010
I am try to get the android environment setup for phone gap and I keep getting this
error when I try and create the phonegap project.
CODE:...............
I have got through the setup for the last could of days. I have also check the PATH for the android sdks and built the test android app in eclipse.
There are the path in the environment vars
CODE:...................
View 1 Replies
View Related
Jun 26, 2010
If it's sunny outside, I can't see anything on the screen of my Android device (HTC Desire). Do you have any solution to this?
View 2 Replies
View Related
Oct 14, 2010
I was just wondering if there was an Android environment that would let you run Android OS inside/alongside Windows, like Virtual PC basically, and let you have full connectivity just like if you were using your phone. I'm not sure what the utility could be right now but it sounds interesting to me.
View 5 Replies
View Related
Feb 29, 2012
Today i installed nano on my android device. it works but i have to set the following variables manually in the terminal emulator:
Code:
export=TERMINFO=/system/etc/terminfo
and
Code:
export TERM=linux
is it possible to set this variables automatically when the phone is booting?
Android Version 2.3.4
View 1 Replies
View Related
Feb 11, 2010
I'll come up with any excuse to get a chance to write my first Android application. I've never done much with it except for a couple of tutorials.
I've got a Windows application that controls a device, and the computer isn't necessarily right next to it. I think it would be great to be able to use my Droid to issue the device commands, but I'm not sure where exactly to start. I don't have a problem writing the GUI code or Java required to send commands to the PC, but it's the wireless connection to the PC that I don't know how to approach.
Bluetooth seems like a good choice. I have a USB-Bluetooth adapter, but no Bluetooth API on Windows. Can anyone suggest one? From reading other questions here on SO, it sounds like the 2.0 SDK has some sort of Bluetooth API, so that's good.
Another option is to use 802.11, and then write a web page / service that would allow the phone to issue commands to the device.
View 2 Replies
View Related