I am currently developing a Android Application. I couldn't install the Android Python APKs like the sl4a.apk and the PythonInterpreter.apk on my Android x86 emulator. I read that it is possible to recompile the APKs with NDK but I have not found a closer decription, yet. Has anybody experience with this and could provide a small tutorial?
Best Regards
Try the official Android emulator. If the APKs include native libraries, chances are those are compiled for ARM only. Google's emulator emulates the ARM instruction set.
To make sure, rename the APK to ZIP and look inside. The structure of the lib folder, if any, will give you an idea.
you just install an APK package available here: http://code.google.com/p/android-scripting/downloads/detail?name=beanshell_for_android_r3.apk&can=2&q=
SL4A then you will have to start, edit your script, the APK package is available here: http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r4.apk&can=2&q=
Then you just google uses the SDK to emulate your scripts on a PC
you also just edit directly with a text editor on Android for example "920 text editor"
sorry for the Google translation
++ BeHuman
To install SL4A, you will need to enable the "Unknown sources" option in your device's "Application" settings, download the .apk and install it either by accessing http://code.google.com/p/android-scripting/ from your computer and click the qr-code or directly from your phone and click the qr-code and then run the downloaded .apk file.
After installing SL4A:
press the Home button
press Add button
go to Interpreters
press Home button again
press Add again
pick Python Interpreter and install it
and after that a new screen will appear with an Install button on the top, press it and it will download Python 2.6.2, at the moment, for you. Optionally there is a button so that you can download a few more Python modules.
To build your new files you have a great little tutorial here: http://jokar-johnk.blogspot.com/2011/02/how-to-make-android-app-with-sl4a.html
Just follow all of these steps and you will be able to make working .apk files written in Python for your Android phone.
Related
I apolagize in advance for the extreme noobiness of my question...
I'm on mac os and using cordova to build an app. I know nothing of java or c, so the only thing I did was to put my index, js and css files in the www folder and test it with the CLI.
$ cordova emulate /* with android and ios */
$ cordova run /* with android and ios */
$ cordova build
I was able to make the app work on android and ios virtual and real devices, and got the BUILD SUCCEEDED message on my terminal.
But to be honest none of this is familiar and if it wasn't for a tutorial I read one line at a time I wouldn't have been able to do it.
The probleme is the tutorial stops at the build step, and I can't find any other tutorial that explains very plainly and simply(not to say idiotically) how to go from there.
I'm left with lots of folder and have no idea what exactly is the app amongst all those files.
How can I put it on my website for download? Do I need an executable?
For iOS and android you would typically have two different types of files.
iOS uses .ipa files and android uses .apk files.
I am not sure about Cordova, but generally the cross platform software would generate those two types of files, these can then be put onto the device and run.
I'm sure you've found out more since 2014 but for others (like me landing here from google), in Windows, at the CMD command line, use
WHERE CORDOVA
..to find where the cordova builder is actually located.
For Android, your output is an *.APK file which should be announced at the very end for the cordova console output, eg:
C:/MyApps/TrialApp/phonegap/platforms/android/build/outputs/apk/android-debug.apk
..where C:\MyApps\TrialApp\phonegap\ is your phonegap project folder assuming you are using phonegap.
If you do not want to submit it to Google Play, you can host the *.apk on various hosts including your own site, a freebee like http://androidhost.org/ (care, may download trash to phones), http://slideme.org/ or https://www.voltcloud.io/ etc.
Hopefully that will give other newbies a heads up.
I'm using windows right now and I want to ask is there any good tools to package a kivy app for android in windows or do I have to use Linux distributions?
And also is there anyway to use kivy for python 3.3.2 (Latest)?
I'm using windows right now and I want to ask is there any good tools to package a kivy app for android in windows or I have t use Linux distributions?
Unfortunately the build tools don't work on windows right now. I think there are technical barriers to do with cross compilation.
Have you seen the kivy virtual machine, available at http://kivy.org/#download ? This is an Ubuntu linux image that already has the tools installed and set up. You should be able to run it in virtualbox on any recentish machine.
There's also an online interface to the android component of the buildozer tool (which can manage the entire android or ios build process, but I think doesn't work on windows at the moment), available at http://android.kivy.org/ . You can upload your project there to have the apk built. I haven't tried this service, but it should work.
And also is there anyway to use kivy for python 3.3.2?
The next release of kivy will support python 3, and the github master branch at https://github.com/kivy/kivy should be mostly (if not all) working.
You can use the Kivy launcher now :)
https://kivy.org/doc/stable/guide/packaging-android.html
unfortunately i'm stuck with an issue right now on one of my app.
Use Google Collab. Open this link and upload your code (press the folder in the left toolbar and press the upload button) and click the play button on every code block one by one.
I'm working on a custom default android browser. I follow steps here AOSP to build my custom browser:
Clone android source code
Make changes on android browser
Build the Browser only for Nexus 4:
lunch full_mako-eng
make -j Browser
I rooted my Nexus 4 and install the Browser App. Everything is fine but I wonder if there is any other methods that simplier than above steps?
Can we just import the Browser into Eclipse or IntelliJ and build it directly to the phone?
At first, I want to point to some errors in your receipt.
Command make -jN builds all the sources of AOSP, where N is usually equal to "number of processor cores + 2". After the whole build of sources you can just build your browser application using command mmm packages/apps/Browser -jN snod
Browser application is a part of Android and thus, it is possible that it uses some system permissions that are not available for applications that are not installed on system image or not signed with system image. If it is not, then you can extract Browser application from AOSP, import it as a separate application into Eclipse and build it as a separate application (however, you will need to modify some resources).
I have some questions regarding the Github open source project...from this link https://github.com/android-enhancement/android-alt-installer as it creates custom installer.
Is it specific to device's android operating system or an application..? so that i will be able modify installer code for my application, so that it runs the same install procedure on all android devices.
I would like to modify installer as to perform some check for a file before installing the app.If the file is not present the installation should be aborted.
I have a Windows 7 OS and developing apps using eclipse IDE.
Also I read the README.txt in the above link (repeatedly) and I was not able to understand.
Can I implement the custom installer to my application..?, could one any give me a simple and clear explanation.
Any help on this would be appreciated.
I want to deliver a finished and working Titanium App to Android customers. But I can't find any documentation about how to produce something like a jar-file that I can create to directly install it on Android devices without the Android market or the Titanium IDE at hand (I can't expect my users to install Titanium IDE first, right).
When you do a build for device in titanium studio, titanium studio creates an apk file for you.
You can find this at Titanium Workspace/Your Project/Build/Android/bin/app.apk. This is the app file you want.
This file can be e-mailed to your customers, and if the android phone is set to accept apps from 3rd party locations, they can install it through this e-mail.
See the Appcelerator Wiki:
https://wiki.appcelerator.org/display/guides/Deploying+to+Android+devices
and
https://wiki.appcelerator.org/display/guides/Distributing+Android+apps