How to choose Android DRM plugin? - android

Recently, I am researching Android DRM in the Android source.
Now, I know how to add 3rd DRM plugin library
(Please see frameworks/base/drm/libdrmframework/plugins, You can follow the example plugin passthru).
But Now I face an new problem:
If there serval plugins, How can I choose which DRM plugin to use from the JAVA code?
I have not found an API for it in the ANDROID API(http://developer.android.com/reference/android/drm/package-summary.html)
Any one Know it?

Related

Libgit2sharp Xamarin Android integration

In order to make some proof of concept prototypes, I'm planning to add git functionality to my Xamarin Android app.
For doing so, I was taking a look at the libgit2sharp library, especially the latest prereleases that seem to be released with .netstandard 2.0.
The NuGet package installation works perfectly, but obviously, it fails when I try to make any call to the library because the missing library files that are not built in the libgit2sharp.nativebinaries project.
Is there any way I can build on my own these libraries?
If not, can you think about any other alternative?
Kind regards and thanks in advance

Using selective APIs from Google Play Services in Eclipse

In my project I am integrating push notification for that I require classes from com.google.android.gms package.
Is it possible for me to include selected package from whole library?
I am using eclipse. actually there are lot more libraries required, due to which I am facing 65k multidex issue. Any solution?
If you really really want to use the Eclipse to compile this, you need to perform these steps:
Have someone with Android studio include your needed Google components as dependency.
Kidnap the components from exploded-aar Android studio folder and setup the components as your own Eclipse library.
But of course, this is highly not a recommended procedure, but this is for those people who desperately needs it as last resort. This also marks a disclaimer that the kidnapped libraries are already free from the developer's accountability, because you didn't compile it the right way.
PS. Did this with Google Maps
If you want to use selective components of the Google Play Services you will need to switch to Android studio.
Read this: (Source)
Important: Support for the Android Developer Tools (ADT) in Eclipse
has ended, per our announcement. You should migrate your app
development projects to Android Studio as soon as possible. For more
information on transitioning to Android Studio, see Migrating from
Eclipse ADT.
If you still want to continue using eclipse, you'll have to to the hard work yourself - of deleting the unwanted packages/components from the full source code and making sure it compiles and works fine.
Instructions of setting up selective APIs can be found on this page, for android studio. For Eclipse, as the documentation says nothing about setting up selective APIs, you just have to go with the whole set.
NO. you have to migrate your code to Android Studio.

How to add WebRTC functionality in android app

How can I easily add WebRTC functionality to my android app so that I would be able to play video stream in MediaPlayer?
What library (.jar file) do I have to add to referencies?
Could you add some code example please?
Actually, there is no such ".jar" files for you to reference right now.
WebRTC is designed for web browsers, even if it can be build for android and iOS.
for your question, I think you may need to learn how to build WebRTC on Android or iOS.
for Android, you should know NDK and JNI first. then build whole webrtc projects or standalone VoE\ViE even NS\AECM\VAD\AGC modules for android.
for iOS, you should also build it by yourself, but you may need this help.
all of these info can be found on the internet, especially google group.
checkout following link : http://www.webrtc.org/reference/getting-started
I have added my project on github: https://github.com/SDkie/Webrtc-for-Android, you can fork and make changes in it.
Please take a look at http://www.webrtc.org/native-code/android.
It has all the information on how to build webRTC for android.
The java wrapper for the native webRTC libraries:
https://code.google.com/p/webrtc/source/browse/trunk/talk/app/webrtc/java/#java%2Fsrc%2Forg%2Fwebrtc
It has the instructions on how to build the native libraries.
It also has an example app that uses webRTC to talk to the https://apprtc.appspot.com.
https://code.google.com/p/webrtc/source/browse/trunk/webrtc/examples/android/media_demo/README
I could not find instructions on how to create an Android Studio Project and build it with gradle though. If anyone finds it, please share.
I hope it helps
One option is to use the crosswalk, you can create a native app using the crosswalk as a webview in your project.
In my case the Web-RTC worked without any problems.
Here are some tutorials on how to add the crosswalk on your project.
https://diego.org/2015/01/07/embedding-crosswalk-in-android-studio/
https://crosswalk-project.org/documentation/embedding_crosswalk.html
I hope this helps.

I want setup android project on netbeans using Google Java Api Client?

I am new to Android and I want to develop one small application using Google Java Api Client inside Netbeans, which I already developed on JAVA using swing and it is working correctly.
My netbeans is ready to work for Android But I coudn't figured out how to setup the android project to use the Google Java API client.
Can someone please provide me the detail tutorial to setup the Android project using Google Java Api Client?
I am not sure may I need to do additional processing on google java api client library which is downloded form here.
My Android setup is working correctly on Netbeans.
Can someone please provide me a detail explanation on this?
Thanks in Advance.
Put JAR files from a library that you want to use into lib folder of your android project and you will be able to use it and it will be bundled into .apk too. I am assuming that you have an android project (using nbandroid plugin. I am not sure about maven archetype for android development).
-Radim

Integration of Drools (Expert System) with Android Projects

I'm interested in developing an Android App using the Drools (JBoss) expert systems rules based system. It's got a plugin via Eclipse per their tools (v3.2) but I don't exactly know how to integrate Drools Jars into and Android project successfully. There has some talk about the issue (see below) but I don't know if it's been completely resolved. Can anyone enlighten me.
http://blogs.siliconindia.com/vinayGuntaka/Intergrating_External_Jars_ie_Drools_Jars__to_Android_and_Developing_Android_Programs-bid-HshzM96A62906557.html
http://osdir.com/ml/Android-Beginners/2010-01/msg00318.html
here is another working option, I made a little modification on drools libaries for loading and running DRL rules on android.
check it, hope be helpful:
https://github.com/jorgemfk/dr-drools-android-demo
https://play.google.com/store/apps/details?id=mx.dr.drools
I forked Drools 6 and modified it to use Dex for class generation and it works on Android (using serialized packages compiled on desktop) I put an Android application sample on github
So, do you know how to create android projects? and how to add external jars to your android projects? When you reach that stage, this post may help. It talks about jbpm5 running in android but it depends on drools so it should be the same.
http://kverlaen.blogspot.com/2011/03/jbpm5-lightweight-running-on-android.html
Cheers

Categories

Resources