S schnurzel Member Licensed User Longtime User Oct 20, 2020 #1 Hello, I want to use the tritonus open source java sound implementation in a project. Especially the gsm 6.10 codec. Because it's open source, I have the source code in .java files. Is there a tutorial somewhere that describes how I can integrate this into a B4A project? thanks in advance schnurzel
Hello, I want to use the tritonus open source java sound implementation in a project. Especially the gsm 6.10 codec. Because it's open source, I have the source code in .java files. Is there a tutorial somewhere that describes how I can integrate this into a B4A project? thanks in advance schnurzel
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2020 #2 Moved to the questions forum. Creating a library requires some java knowledge. A bit old but mostly relevant: https://www.b4x.com/android/forum/threads/java-creating-libraries-for-basic4android.6810/ In some cases you can use JavaObject + #AdditionalJar. It can be simpler. Upvote 0
Moved to the questions forum. Creating a library requires some java knowledge. A bit old but mostly relevant: https://www.b4x.com/android/forum/threads/java-creating-libraries-for-basic4android.6810/ In some cases you can use JavaObject + #AdditionalJar. It can be simpler.
agraham Expert Licensed User Longtime User Oct 20, 2020 #3 I don't think it will be easy, and from what I have found on the web tritonus seems to be abandoned back in 2003 - but I may be wrong about that. The download page for sources no longer seems to exist but the precompiled plugins page does so I got the jar for the gsm 6.10 codec and poked around inside. Also needed is a tritonus share jar which is also available on the download page. Tritonus: Plug-ins Unfortunately It seems to rely on the javax.sound.sampled package which is not implemented on Android. I have read on StackOverflow from other people wanting that package that it is possible to take the package from OpenJDK 7 and either compile the sources or export a jar to overcome that. javax.* cannot be imported in my Android app? I'm trying to import some javax.* classes in my android app, but I keep getting compiler errors inside Android Studio. I'm using Ubuntu Linux 13.04. Here are my imports: import android.os.Bundle; stackoverflow.com Upvote 0
I don't think it will be easy, and from what I have found on the web tritonus seems to be abandoned back in 2003 - but I may be wrong about that. The download page for sources no longer seems to exist but the precompiled plugins page does so I got the jar for the gsm 6.10 codec and poked around inside. Also needed is a tritonus share jar which is also available on the download page. Tritonus: Plug-ins Unfortunately It seems to rely on the javax.sound.sampled package which is not implemented on Android. I have read on StackOverflow from other people wanting that package that it is possible to take the package from OpenJDK 7 and either compile the sources or export a jar to overcome that. javax.* cannot be imported in my Android app? I'm trying to import some javax.* classes in my android app, but I keep getting compiler errors inside Android Studio. I'm using Ubuntu Linux 13.04. Here are my imports: import android.os.Bundle; stackoverflow.com
S schnurzel Member Licensed User Longtime User Oct 21, 2020 #4 Hello, thanks for your suggestions. I tried to create a library with the help of the tutorial. Everything looks fine, but I don't get the jar file, only the xml. The console output looks like the output in Video, but no jar file :-( What am I doing wrong? Upvote 0
Hello, thanks for your suggestions. I tried to create a library with the help of the tutorial. Everything looks fine, but I don't get the jar file, only the xml. The console output looks like the output in Video, but no jar file :-( What am I doing wrong?
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2020 #5 Tip: easier to use SLC to create the XML file. It is up to you to create the jar file. It is a simple zip file with the class files inside (the folders structure should be correct). Upvote 0
Tip: easier to use SLC to create the XML file. It is up to you to create the jar file. It is a simple zip file with the class files inside (the folders structure should be correct).
S schnurzel Member Licensed User Longtime User Oct 22, 2020 #6 I have now created the library, but the app crashes immediately. I think I'll give up now and write the app in Android Studio. I thought it would be easier to adapt my existing B4A app than to rewrite it in Android Studio. Nevertheless thanks for your help. Upvote 0
I have now created the library, but the app crashes immediately. I think I'll give up now and write the app in Android Studio. I thought it would be easier to adapt my existing B4A app than to rewrite it in Android Studio. Nevertheless thanks for your help.