I'm totally newbee regarding APK and android stuff, so any suggestion is welcome.
I'm trying to install and test the source code from this link:
http://sanjosetech.blogspot.hr/2013/03/gstreamer-streaming-video-and.html
The code should load audio and video passed from RPI to my android phone.
I have RPI part ready and it's working, now i need to compile and install this updated version so i can have support for audio and video.
If i download this code directly on my phone (over my mail account), how can i compile and run it ?
Best regards !
You have to build code into APK file, using compiler, Android Studio, for example. And then transfer it to your Android device.
Related
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
I succeed AOSP build in Nexus 4 and install google apps.
Also, I tried download app from google play and succeed install.
But, When I execute that app, failed execute.
So, check the Logcat I can find 'load .so failed' error in android run time.
Why doesn't working?
Please, how can I find solution this problem?
The short answer is: You probably can't fix this yourself.
The *.so files probably are native running libraries the developer of the app used in his code.
One guess:
Android 5 is capable of 64bit now.
While the Java part of the code works automatically with 64bit, the so-files need to be prepared for it by the developer.
Another guess:
The new ART Runtime causes problems in JNI. For developers, see this: http://developer.android.com/guide/practices/verifying-apps-art.html and
You should contact the developer and ask whether he checked his App on Android 5.
I would like to build a simple apk compiler that runs on android. The objective is to compile some java/android app source code within android.
I searched a lot on Internet but could not find something that could help me with this.
Any of you knows if this is possible? I know AIDE, but I wanted to see how the process of compiling and apk on Android Phone works.
I have developed a tuner application with NDK. Now I want to achieve this.
step 1: my application to be added in to android source
step 2: i need to compile the android source
step 3: i need to flash the output on my device.
After flashing the compiled output, In device I have to have my application there.
For all 3 steps as I told above, please help me step by step.
The Android app can communicate with the native code (NDK) using JNI. Follow the http://developer.android.com/tools/sdk/ndk/index.html link to know more about integrating the Native code in Android apps. Then build your android app.
Add your android app in android_source code. May be under /android_source/packages/apps/your_app. Do the changes in android_souce/build/target/product/generic.mk, where add your new project name under the list of apps to build your app along with them.
Now compile the android source code and flash it on your device. You can see see your app on your device.
Could someone please point to some tutorial on how to setup and build the Google's Contact apps which is under packages/apps/Contact and run it in Android Emulator.
I know it has lot of dependencies including the provider itself which is a separate service., and other libraries from the source folder, but what i'm trying to do is to learn the way Google has designed their contact app and use some of its techniques in my app.
Currently i debug manually !! ^-^.. its very very painful, esp following Intent Calls..
but if i were able to compile and build the Contacts app myself, and run it in emulator, i can add some easy debug messages and recompile and then trace them. Could someone please help me with this.
Thanks in advance
Compiling contacts app nees for Android full source.
establish build environment.
(Ubuntu 64bit, Git 1.7 or later version, JDK6, Python 2.4~2.7 )
get android full source.
( http://source.android.com/ )
full build with entire source.
( http://source.android.com/source/building.html )
if full build success, you can partially build each platform apps.
go to android source root and type in linux command line
# mmm package/apps/Contacts
rooting the Emulator for install system apps.
and set write privileges to '/system/app' in Emulator.
push Contacts.apk into emulator.