How to implement equalizer in Android 2.1? - java

I know this has been asked earlier but I was not able to find much needed information.
I have implemented equalizer in 2.3.
But I want to implement it it in 2.1
There are 2 ways I came across:
Either import the java library code from 2.3 to 2.1. But I do not have much hope with this.
Or, use JNI & Android NDK and use some out of box C/C++ libraries. (Please suggest are there any libraries available)
If any other solution is viable then please suggest.

As is mentioned in How to implement Equalizer in Android2.1? you will need to implement your own signal processing in native code with JNI

Related

Can a fully native Android app call Java?

Good day.
It is possible to change for example native-plasma, which is a fully native Android app with only C++ and no Java or Kotlin, to be able to call Java?
I have used native-plasma as a base for an application, and now I need to call into third-party libraries, which they provided as Java, of course. But I cannot seem to find a way to now import their libraries and use their classes.
Thanks, help is appreciated.

How can I edit ORB parameters in OpenCV 3.0.0 and higher OR use different OpenCV versions in the same app in Android/Java

I am implementing an algorithm for which I require CLAHE and to change ORB parameters. The ORB parameters I change in Java/android for version below 3.0 as described here. The OpenCV library doesn't have a constructor implementation for CLAHE in version lower than 3.0. for android. So, unfortunately, I don't know how to do it. What I can think of is doable is writing one part in C++ and port it to Java but that is pretty complex. May be changing the function names in OpenCV library is also possible, but I would prefer not to mess with the libraries. Can anyone suggest a possible method/solution?
Just for someone who might bump into this problem in future and/or doesn't want to use C++ on android, from OpenCV 3.0 the parameters in Java (android sdk) can't be changed. As described here

interface DLL with java application, how to?

I wrote a Java application for my company which works great. Now I am asked to interface my application with an API of a piece of hardware.
The API is implemented in a Windows dynamic link library (DLL). The samples that come with the API were written in Visual C++ 6.0
and Visual Basic 5.0 (seems very old).
There is no Java API available. I am wondering if there is a way to use the DLLs with my Java application I wrote? Should I rewrite the application
in VB.NET or... (Would these APIs even work with VB.NET)?
This is the piece of hardware whose API I need to use:
http://www.sealevel.com/store/8004e-pci-express-16-reed-relay-output-16-isolated-input-digital-interface-3-13v.html
Any suggestions or ideas are appreciated.
Thank you
The API should work with VB .NET.
If the API is Open-Source you could try to add JNI support, so that you can use it in Java.
Otherwise you could try to write the Application in C++. The difference to Java is not that big.
1) Use JNI, try using some java-c++ bridge which will make your life easy - see this https://code.google.com/p/javacpp/
2) Yes you can call native api's in vb.net

Java library for netflow

Is there a Java library for Netflow? I need to be able to objectify flows for analysis. (I really need to support sflow, too, but one hurdle at a time.) I found a project called "jflow" that has classes for Netflow v5 and v6, but I need to support 7 and 9 as well.
All of my googling has brought me nothing. Does anyone know of a library? Has anyone written their own?
Yes, there is Java NetFlow Collect-Analyzer as well. It supports v7 and v9 as well as previous versions.
Another java library called Styx is another Netflow Collector and Analyzer.
There is a Scala library, which presumably means it could be invoked from Java. But that's not specifically documented, nor have I attempted to.

Porting blackberry application code in to Android platform

I have an Blackberry library written using JAVA as well Blackberry(RIM) specific API's. I would like to port the same library in to Android platform without making any code changes and make it run.
Here i am looking for the best way to achieve it
Any cross compiler/cross framework is available for making my Blackberry run on Android platform.Thinking this would make my job easy ;)
Please share your inputs on this.
Thanks in advance.
You can't do that. AFAIK, Blackberry uses J2ME technologies(can be wrong here). Android system is built in absolutely other principles. You have got to learn android in order to understand how to build GUI, how to process with background tasks and where you store your data. Sorry.
Start with application fundamentals.
If porting was that easy, a lot of developer would be out of work.
You will not have to rewrite the whole application, but surely there must be quite a few changes done. If you have a clean design, you might be able to reuse a lot of code as it is. Otherwise it will get more complicated. For the RIM API, it might be a good idea to write interface-classes first ("RIMXyz implements IntrfXyz"), that have all the function-call that you use of the RIM-API. Then you can write the Android API classes using "AndrXyz implements IntrfXyz". Put the RIM-dependend stuff in a separate external lib, and do the same with the android-dependent stuff. Then you can have a RIM-prj and an Android-prj, each only linking to the dependent classes and the reusable classes. That way you could structure you porting project quite nicely.
Also the "top" end of the application surely has to change, because you have to use the "activity"-class in Android to get anything running. Those are the two aspects I see.
I hope this is understandable, a bit hard to put it in a few words...
I have started a cross-platform project for Android/Java applet, and this is how I've done it. It works. ;-)
You cannot do this without some code rewrite. If you can tell us more about the classes in the RIM API that you are using, you might get some specific answers as to what classes from the Android API to use.
You should find similar functions in android api to replace RIM API invocations and refactor your code using for example Abstract Factory design pattern. (http://sourcemaking.com/design_patterns/abstract_factory)

Categories

Resources