This may look like a duplicate question, but all the previous answers were too much confusing for a ameature developer like me. I have never used NDK before and I am working with android studio and windows PC. Previous answers(1,2) and other sources are suggesting to use linux to compile. I couldn't understand what to do. Can anyone guide me through the steps about embeding libvlc in my android app
If you are having trouble with compiling vlc , then you can use the following library , thou it is unofficial , but I worked with it and it worked fine .
Unofficial VLC Android SDK
If you're on Windows 10, you should be able to follow the wiki at https://wiki.videolan.org/AndroidCompile/ using WSL (and google/use the videolan forum for what you don't know).
If you don't want to compile, another way could be to download the apk of the official vlc-android app, unzip it, extract the libs you want (namely libvlcjni.so and probably libjniloader.so) and add it to your project (which means making gradle happy).
vlc-android is a fully opensource app that does exactly what you want to do. Feel free to have a look.
Good luck
I cannot make the sample (Facedetection) coming with the OpenCV4Android work in Android Studio.
Is there a tutorial for facedetection that would address the users of Android Studio?
Because it does not work to import the Eclipse project that is attached to the library as sample.
I am sure it's because of the NDK dependency, but I cannot seem to get it to work. I installed the NDK, added it to the Path, still no change.
Better yet, is there any way of avoiding the use of the NDK in a facedetection application?
I would appreciate any help in making this work in the Android Studio
I've just uploaded to github a simple sample using OPENCV libraries. Everything is setup already to get it to run really quick. My AndroidStudio is 2.0 Preview 2 (released 5 days ago). Hope isn't too late or at least others may find it useful for quick troubleshooting during installation.
Best.
I am trying to compile FFMPEG for android on windows using android-ndk-10d. I have followed number of tutorials but I am unable to compile it.
Can any one please help me to compile FFMPEG. I have referred many blogs and tutorials but I am unable to retrieve the expected result.
I have used the following link roman10, but it isn't working.
Please help me.
Thank You
Based on my experience don't waste your time for compiling FFMPEG in Windows. It will be your worst nightmare & its the most difficult thing to compile.
Whenever you are compiling any libraries especially in C, Windows OS is the worst OS, if you want to get your job done quickly don't think for a second SWICTH to UBUNTU. It will definely get compiled.
For Compilation you can also refer to
Guardian Project
VLC- FFMPEG Refer to VideoLan Wiki
And last you can also use roman10. There are also projects like dolphin, etc. Google it and last thing keep patience.
If you have any problems with this let me know
I am developing an Android project/app for video compression and that's how I came to know about ffmpeg. I'm using Ubuntu 11.04 OS and Eclipse IDE(ADT-bundle).
I came across many topics dealing with ffmpeg at StackOverflow but i can't clearly figure out where I can get the ffmpeg jar file and how to add it and use in my project.
Any advice from you will be of great help.
If ffmpeg is so tough to handle for a beginner in Android like me, then is there any other way to compress a video in android?
If you're targetting Android 15 or greater version, try MediaCodec class.
May be this helps You.It's java porting of ffmpeg. Though it uses JNI internally,it provides java functions that hides the mess!!
I have followed the tutorial at Scala and Android with Scala 2.7.3 final. The resulting Android App works but even the most basic application takes several minutes (!) to compile and needs 900 kb compressed, which is a show stopper for mobile applications. Additionally, the IDE runs out of memory every now and then. I assume dex is not made for big libraries like the scala-library.
So my question is: Has anyone actually done this and is there any cure for this?
I've written some basic Android applications in Scala, nothing too epic. Not being a Java programmer I was suggested to use a "treeshake", I was explained by a friend that this strips out all the unnecessary libraries from the jar files.
I have not documented it, but I found that someone else already has:
http://chneukirchen.org/blog/archive/2009/04/programming-for-android-with-scala.html
Proguard is not the only solution, you might find something that suits your work flow or is more suited for your environment.
Additionally google have just realised JACK , which deals with quite a lot of reducing build and memory times see https://source.android.com/source/jack.html
You can now use the Android plugin for Gradle to create Android applications in Scala. It incorporates the ProGuard tool to trim the fat from the resulting APK file, so seems to meet your needs.
https://github.com/jvoegele/gradle-android-plugin/wiki
There is also an plugin for the Scala-based builder sbt: sbt-android-plugin.
For tutorials and examples, see also Stéphane Micheloud's "Exploring Android" page: http://lamp.epfl.ch/~michelou/android/
I verified this detailed solution with Eclipse 3.7, Scala 2.10 and the plug-in AndroidProguardScala v50:
https://stackoverflow.com/a/11084146/1287856
Everything works fine. A simple test application with scalafied main activity class only takes 38Kb. Libraries projects are supported. Proguard is activated when exporting the project.
Developing Android apps for Scala is continuously evolving. The current best way to do it appears to SBT in conjunction with the android-sdk-plugin, which is maintained* and works well for me in my Scala/Android project. A somewhat recent example that demonstrates the use of this plugin with the already mentioned Scaloid can also be found.
Please note that this question is a typical example of a question with outdated answers on Stack Overflow. This answer will likely become outdated at some point as well.
* The other SBT based projects mentioned in this answer thread don't appear to have code being written for them in the last six months at the time of writing. They may have compatibility issues with newer versions of Scala and SBT.
If you use maven, use android-scala-test as a startup template. It works great for me out-of-the-box.
Scaloid is an Android API wrapper written in Scala that help you to write your Android program in Scala-style.
You can use the Scala on Android without SBT, it built externally by Gradle to create Android applications.
https://github.com/yareally/android-scala-intellij-no-sbt-plugin
Gradle is more native building tool for android than SBT.
There is good example of Scala client and server side solution concept, and gradle building tool as advance for IntelliJ IDEA workbench.
Big advance that core classes are common for client and server.
https://github.com/ghik/akkdroid
Good tutorial for IDEA and android-plugin:
http://fxthomas.github.io/android-plugin/
The biggest issue with Scala on Android is the compile times.
Possibly because of the Proguard class stripping compiles with IDEA13/Scala plugin on a Dual Quad Core (8-CPU) E5450 Xeon with 8GB can take two minutes or more.
I simply moved back to Java after completing a largish Scala Android project as compile times were too frustrating.