Android :: Can I Port Existing Python Apps On ASE?
Feb 10, 2010
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 can I find the list of supported python libraries for ASE?
View 1 Replies
Apr 23, 2010
Devs that are participating in the private beta of Flash for Android have been converting their apps from Air and Flash with great success. This will surely be a kick in the nuts for Apple, a well deserved one at that.Details here: Flash And Air Developers Port Existing Apps To Android In 10 Minutes, Give Feedback From The Private Beta Of Flash/Air For Android
View 3 Replies
View Related
Aug 3, 2010
I'm getting tired of waiting for the OTA froyo update when I can just root and use a leaked version. I was wondering what my best bet would be. I figure I will root with the unrevoked method since it seems straight forward. What should I use for changing roms, though? Clockworkmod looked good because the paid version allowed for updating to newer roms right off app without having to look for them... but from what I understand Titanium is the only way to transfer over your existing apps/contacts/etc to a new rom. I'm not too keen on having to reinstall ALL my apps and data... what does everyone here suggest?
View 14 Replies
View Related
Sep 27, 2010
I'm thinking about an Android app (with possibly an accompanying physical device), and i'm trying to figure out whether this is something that's feasible.
1) Let's say I plug my Android to my PC. Would it be possible for an app installed on the PC to communicate with an app running in the cell phone? I just need a very simplistic data exchange, it can even be one-way (just data pushed from the cell phone to the listening app on the PC, whenever the cell phone wants, I don't need any data sent from PC to phone).
When I plug it in, the phone gives me 4 options (charge, disk drive, HTC sync, tethering), which makes me think this is not doable, but still worth the shot.
2) Would it be possible for an app on the PC to talk to an app on the phone through any other way? (Wi-fi, bluetooth, etc). I'm guessing no on wi-fi since neither party has the other's IP (and I want this to kinda just work, not having to input IPs manually all the time).
3) If I make a device that's plugged to the little USB port at the bottom of the phone (and let's say this is a magical device that can do anything, I don't quite care about those details as long as it's doable). Can I have an Android app talk to that device?
4) Any other ideas to make the phone talk to a "device" that I make, or to an app in the PC are more than welcome. Going "through the web" could be an option (although there'd have to be a central server that I own as a middle man, I believe). But i'd prefer if the communication was direct between the two devices.
View 3 Replies
View Related
Feb 19, 2009
I wanna to add some code in Camera Apps code , so that it will invoke my Application and do the thing as per my desier. Is it possible to change the Application code? If any one already tried this then plz let me know, how to proceed and build if i change some code. How to integrate my application with camera apps.
View 2 Replies
View Related
Oct 29, 2012
Can I port apps from a ICS ROM to my CM7 ROM(e.g. Internet Browser,Camera,Dialer)?
View 1 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
Nov 15, 2010
I have installed python environment using python_for_android_r1.apk file. While installing, it installed some other 'extra packages' also so almost 8 - 10 MB files are instralled looks like. I got an icon in my applications, as "Python for Android". But now when I try to execute this by clicking on this icon, it gives a blank screen with a button with a text "Uninstall" . Not sure what else I need to do to get this work.
View 4 Replies
View Related
Nov 29, 2010
I just received the micro HDMI and connected it to my system. I also connected a 1/8th" stereo to RCA cable because my surround sound isnt smart enough to decode the audio signal from the HDMI. I set the inputs and the first thing I see is that there is no picture. Rather, the picture is black (the no input warning goes away, and there is a black screen) and the only time I get any video is when I play a video or slideshow. But no audio as long as I am playing video.
Is there any way to output the audio through the headphone jack while the HDMI is outputting video? And is there a way to view the UI and apps through the HDMI port?
View 1 Replies
View Related
Mar 14, 2013
How to port over apps from Ice Cream, and Jelly Bean to Gingerbread? I see other people/developers porting apps from ICS to GB, such as apps like ICS Messaging, ICS Launcher, ICS Task Manager, ICS Camera, ICS Gallery, ICS Clock, ICS Calculator and the list goes on and on.
While there are a couple apps that have not been ported, such as the browser, phone/people app, email, and calendar; instead of waiting for others to port them, I would just like to learn how to do it myself.
Lets say I have the stock messaging app from Ice Cream, how would I make the app compatible with GB, and make it a non-system app? Besides just changing the Android Manifest to be compatible, because I tried that, and it did not work ( I just got Force Close).
View 9 Replies
View Related
Nov 30, 2013
how to port apps and roms
View 3 Replies
View Related
Jun 16, 2010
As the title ,I'm an absolutely newbie ,and I don't know how to get my milestone install some valuable linux software , for example ,MySQL ,Apache ,and so on. And ,there's any tool that I can use to operate remotely by linux command line on my lap top through usb or WIFI ? Or can I get some app running on mobile side can using linux commands?
View 6 Replies
View Related
Nov 9, 2009
I am curious to know if anyone has tried attaching a keyboard, controller or remote through the Micro USB port yet. Is there any apps yet to allow this? I think I may try and order a cheap Mini USB Game Controller with a Micro USB Adapter and see if I can use it to play games through one of my Emulators. If anyone has already tried this please let me know. Being able to use this Micro USB to output video is also a question I have. If anyone has discovered anything cool with this Micro USB port feel free to share.
View 7 Replies
View Related
Mar 11, 2010
I am porting a Python application to Android and, at some point, this application has to communicate with a Web Service, sending it compressed data. In order to do that it uses the next method:
def stuff(self, data): "Convert into UTF-8 and compress."
return zlib.compress(simplejson.dumps(data))
I am using the next method to try to emulate this behavior in Android:
private String compressString(String stringToCompress) { Log.i(TAG, "Compressing String " + stringToCompress);
byte[] input = stringToCompress.getBytes();
// Create the compressor with highest level of compression Deflater compressor = new Deflater();
//compressor.setLevel(Deflater.BEST_COMPRESSION);
// Give the compressor the data to compress compressor.setInput(input); compressor.finish();
// Create an expandable byte array to hold the compressed data.
// You cannot use an array that's the same size as the orginal because
// there is no guarantee that the compressed data will be smaller than
// the uncompressed data.
ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length);
// Compress the data byte[] buf = new byte[1024];
while (!compressor.finished()) { int count = compressor.deflate(buf);
bos.write(buf, 0, count); } try { bos.close();
} catch (IOException e) { } // Get the compressed data byte[] compressedData = bos.toByteArray();
Log.i(TAG, "Finished to compress string " + stringToCompress);
return new String(compressedData);
}
But the HTTP response from the server is not correct and I guess it is because the result of the compression in Java is not the same as the one in Python. I ran a little test compressing "a" both with zlib.compress and deflate.
Python, zlib.compress() -> x%9CSJT%02%00%01M%00%A6
Android, Deflater.deflate -> H%EF%BF%BDK%04%00%00b%00b
How should I compress the data in Android to obtain the same value of zlib.compress() in Python?
View 2 Replies
View Related
Apr 29, 2010
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 disturbing (.core, ccompiler) isn't being found. Is it possible to still install them?
View 2 Replies
View Related
Jul 27, 2010
I just ordered an Android smartphone and want to start playing around with creating my own applications. Now the question is which language to use, the native Java or Python using SL4A (former ASE).
I tend to Python, as I know it much better than Java, but I'm wondering what I would be missing using a "second class" language on Android. On the SL4A website it is also stated to be alpha quality software, which is not exactly encouraging.
I'm also not quite sure what the limitations of the scripting environment are and if they would be problematic.
View 3 Replies
View Related
Nov 26, 2012
I would like to port an app from a higher Android version to Galaxy Y. e.g.-Port the JB 4.2 Keyboard or The 4.2 Play Music app..But, how can I do it? I mean, is there any tutorial available or at-least something which would enable me get going? I've seen Devs porting such apps, but I want to know how do they do it..
View 2 Replies
View Related
Aug 25, 2009
This link says that Android support Python, Lua and BeanShell Scripts, subsequently for Perl too. If it is so, is it possible for developers to write python scripts and call them in their standard Java based android applications?
View 2 Replies
View Related
Jan 16, 2010
Here's my Python script written using android-scripting:
CODE:............
while True:
CODE:.............
It basically vibrates every minute (like a motivator). However, when the phone is locked with screen blanked out, I don't sense any vibration. Perhaps Android is freezing the script (and hence the while loop)? Note that I am indeed running this script as a service (long-tap and click 'Start as service').
Is there a way to make this script work all the time regardless of the phone suspend state?
Update 1: I do hear the vibration occasionally, not every minute .. but rather like every 5-10 minutes randomly.
Update 2: This problems occurs if I run the script normally (not as a service). Seems like "time.sleep" is not sleeping for the specified time.
View 4 Replies
View Related
Aug 18, 2009
Is it possible to evaluate a string of python code (or Perl) from Java when developing Android applications?
I am try to do something like evaluating a text-input script:
e.g.
CODE:...........
View 2 Replies
View Related
May 11, 2014
I've got a moto g and its my first android and its rooted and bootrom is unlocked, and ive installed terminal emulator, but I cant find out how to install python so that it works in terminal eit su, cd , ls ... commands?!?
I've installed qpython app from playstore but you cant do commands like su, cd ..... I've tried ping in terminal emulator and it works so you can enter internet over terminal emulator, so i tried apt-get install python but it says no apt-get command founder something like this, so how to install python on android with working commands( su ...) so that it can enter filesystem directories like /sdcard....
View 2 Replies
View Related
Mar 27, 2010
I'm trying to modify the Android device driver for calibre (an e-book management program) so that it identifies devices by only vendor id and product id, and excludes BCD.
The driver is a fairly simply python plugin, and is currently set up to use all three numbers, but apparently, when Android devices use custom Android builds (ie CyanogenMod for the Nexus One), it changes the BCD so calibre stops recognizing it.
The current code looks like this, with a simple list of vendor id's, that then have allowed product id's and BCD's with them:
CODE:..........
The line I'm specifically trying to change is:
CODE:............
Which is, the line for identifying a Nexus One. My N1, running CyanogenMod 5.0.5, has the BCD 0x226, and rather than just adding it to the list, I'd prefer to eliminate the BCD from the recognition process, so that any device with vendor id 0x18d1 and product id 0x4e11 or 0x4e12 would be recognized. The custom Android rom doesn't change enough for the specifics to matter.
The syntax seems to require the BCD in brackets.
How can I edit this so that it matches anything in that field?
View 1 Replies
View Related
Sep 9, 2013
I have a Chinese clone of Galaxy S4 called No.1 S6 with MTK6589 Cpu and Android 4.2.1 (Odexed Rom), well, I tried to replace some system app like contacts, phone and mms with the same apps taken from the Slim bean 4.2.2 Rom for the Google Nexus 4 that has the same screen resolution.
I odexed the slim bean apks with dexopt-wrapper as explained here [URL] ...., I signed them with auto-sign software, so I put them into system/app folder with right permissions, deleting old apks first, rebooted the phone, wiped cache in recovery and when the phone booted the apk I replaced was gone, so I think there's a compatibility problem between my system apps and nexus 4 ported apps, maybe I have to take the slim bean (or other ROMS, whatever) sources and edit the apks and make them compatible with my phone...
How to port system apps from other devices with different software?
View 1 Replies
View Related
Nov 19, 2012
How can i get device information from nonrooted device with python script? As I understand python don't have API like os.android.build in Java.
I need to get system information from device, such as cpu frequencies, gpu vendor and other (like in Antutu and another benchmarks).
I know how to write python script with $getprop information from shell, and from buil.prop file in the system files, but it isn't enough. I also know how to get these information with shell command and busybox installed, but I shouldn't root them.
View 1 Replies
View Related
Jun 1, 2013
What I am trying to do is get either nest-api in PHP or pynest in python to run out of SL4A in order to control my Nest thermostat ultimately out of Tasker. Both are found on github, but I can't link to them as I apparently need ten posts to do so. So a google search for "nest-api github" and "pynest github" will have to do I suppose.
I have absolutely no issues getting either to run out of Terminal on my MacBook Air, but for whatever reading the SL4A shell seems to escape my understanding. I would rather have the PHP script work, as it has more options for things I can set, which I like. Where to put the nest.class.php on my phone in order for the PHP shell to reference it when running the example.php or any script I write myself. When I put both files in the sdcard/sl4a/scripts folder and try to run either from within either sl4a or sl4a's shell I get a call to undefined function error.
For the python script, I'm not sure how I need to import the module so that I can call it with nest.py at the beginning of my command line prompt and follow it up with the user name and password and so on. I've done everything including trying to create an .egg file, which I've since been told is not necessary, and that I simply have to put it in the /sl4a/scripts folder. That doesn't make sense to me though, as I needed to run the setup.py command on my computer in order to start using it, and the .egg file should be the equivalent of that on the phone, no?
So what I am looking for is the foolproof way to get either a php or python script running through the shell that isn't actually hooking into the Android environment at all, which is what all the writeups I have found in my searching seems to pertain to. Then eventually make sure that they are available in a way that Tasker can call them. I should also note that all this has been done in an emulator through eclipse until this point, as I didn't want to go screwing around with my brand new Nexus 4's file structure until I had the best practice perfected.
View 2 Replies
View Related
Nov 15, 2010
Hello Everybody. For an application prototype I'm creating a simple user login. The Password of the user will then be hashed using sha224 and transferred to the back-end. The Problem I am facing right now is the following. The password that was stored in the DB (also hashed using sha224) seems to look a little different then the hash I am sending.
I use the following code to create the hashes.
CODE:..................
What now will be produced looks like this and I will post the two hashes directly underneath each other. (The first one is python and the second android)
CODE:.............
They are almost the same but the python hash has two 0s more. Do you guys have any idea why?
View 3 Replies
View Related
May 2, 2009
Does AOP support with in Android sdk. If no, is it possible to use the existing AOP impl. and use them to bulild the application. Does AOP break Andriod applications design in any way.
View 2 Replies
View Related
Sep 9, 2010
I am just learning application development using Android platform. I want to know how if we post something in twitter app will go to twitter..how do they integrate these two ?
View 1 Replies
View Related
Jun 23, 2010
I'm faced to a big issue : I can't add datas to an existing contact I'm developing an application which manage contacts, I can add, delete or edit contacts. The creation is ok, because I create all types of datas (even if they are empty) for the contact (this is NOT a good way, I will change this later). So when I want to edit those datas I can find them to the data base (with Datas.CONTENT_URI) 'cause they already exist ! But if I create a new contact with the ANDROID contact application only the fill fatas are created for a contact. When I try to add new phone number for example with my application I get a error Here is my code to try to add phone number. Code...
View 2 Replies
View Related
May 9, 2009
is that possible or should i just throw away my AVD and create a new one with an SD Card?
View 4 Replies
View Related