Android - GitHub Open Source Project android-alt-installer - android

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.

Related

How to start Android Device File Explorer without Android Studio?

I am building my app with React Native and do not need Android Studio. I am starting the emulator directly from console. However if I need to check files, I always need to start Android Studio to launch the Device File Explorer.
Can I launch the Device File Explorer directly from console or as standalone in some way?
Many thanks!
No, sorry, that specific tool is an integrated part of Android Studio.
There used to be the Dalvik Debug Monitor Service (DDMS), which was a standalone tool that had a file explorer among other things. Google discontinued that some time ago.
The only official solution that I can think of is to use adb pull from the command line.
Otherwise, you would need to see if somebody created a standalone tool for this, or perhaps a plugin for Sonar.

AOSP - Building custom images and running them with Android emulator on SDK

I am currently building custom images using the Android Open Source Project. I would like to send these custom images (system.img, ramdisk.img, cache.img, etc.) to a friend so that he/she can run them without having to compile the entire AOSP branch. Note that they "do" have the latest official Android SDK (not AOSP).
Is there a way to do this? Ideally, I was hoping for some make target that already exists where I can simply run it (make avd-package) and an "avd" (or something close to it) would pop out so that I can just send it to my friend and have them type:
emulator -avd
Also, from my research, the fact that I want these images to be runnable by the normal Android SDK (not AOSP) might present a problem since the tools in the Android SDK are different than the ones in AOSP (e.g. qemu versions, etc.). Would I also need to send my friend the emulator binaries as well?
Thanks!
Yes, it is doable. You need to create some metadata and upload it to a public server so that your users can get the URL. This is the URL they can then enter in Android Studio for using it with the SDK Manager tool.
For full instructions follow the official docs here: https://source.android.com/setup/create/avd

Sync android framework code and build with custom changes

I'm a Java developer and now exploring android.. I've learnt developing Apps but want to customize the framework and build it and deploy on my phone.. Web says a Linux machine is needed. I installed Ubuntu virtual machine on my windows 7 Machine..
How do I now sync the code and carry development?
Installing stuff and building android from source code
Installing the repo client.
Time to create a working directory so you can put the downloaded code there . Now If you know the branch/version of android you want to download you can initialize the repo and start downloading.
Follow the links below for more details on how to setup the repo (wrapper around git) and start downloading the source code.
Finally when the source code download finishes , start building the source code .
Finally run it...
emulator
FYI :
Make sure you have java (the version mentioned on the links) is in your system path.
Here are some resources to try building android from source code.
Android source code page
I wrote something on it as well...Read it here

SL4A Android x86 installation

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.

android source?

I was looking to download “android emulator source code” and can’t seem to find it anywhere. Can you please tell me where I can download it, and what language does the “android emulator source code” written in?
Here are instructions for getting set up with Android, setting up your build environment, and building (including building the Emulator).
As found on this site, you can download the Android Emulator source code here.

Categories

Resources