Open robotdognz opened 4 years ago
Libraries, when used in APDE (unlike P4A PC), need a full structure with the dex jars. I've built these and tested just now for the Box2D lib. You can download it here. Just unzip it in APDE's library folder. Be sure that you don't have a folder with the same name within that folder. Just take it out in case. The sound library does seemingly not work on Android, but I will look into it. You can use the cassette library. instead. On my Android repo here. I have examples to use the android's native MediaPlayer's library. B.T.W Could you please test the codes on this repo? I only can test them on my Lollipop device. Later on, I will verify the LiquidFunProcessing lib
The LiquidFunProcessing lib cannot be used on Android because of conflict between renderers. It gives the error:
java.lang.ClassCastException: processing.a2d.PGraphicsAndroid2D cannot be cast to processing.opengl.PGraphicsOpenGL
Hello, since my problem is also about importing libraries I'll comment here instead of making a new issue. I'm trying to import the Ketai library, got the .zip file but the manager won't install it (doesn't crash the app, just doesn't do anything) so I want to try to install it manually. The thing is that I don't have any 'libraries' folder inside the Sketchbook folder. Should I just create it myself? Or is there something I'm missing? EDIT: I did that, created the 'libraries' folder inside the Sketchbook folder myself, installed the Ketai library manually and it works just fine
It seems like importing libraries from zip files doesn't work, but manually importing works great. Thanks for your help, Emmanuel. I'll try out your android test sketches and get back to you.
Edit: I've tried using DX Dexter on cassette to finish the installation, but it crashes just after the progress bar starts moving. It's fine, because I'll probably just suck it up and learn how to use the native android mediaplayer, but it seems like DX Dexter and zip import don't work on my phone.
Hey, Emmanuel,
I've only tried the first example in your repository so far (been crazy busy with university), and that one works fine on my phone. The button text was split into two rows though, so it had Clic on top and K under. I'll work my way through all of them over the next few weeks and report if any of them don't work.
Would it be too much trouble to ask you for dx dexter'd copies of ketai and cassette?
Thanks
And btw, sound library DOES work! This one (maybe I redexed it):
name=Sound
category=Sound
authors=The Processing Foundation
url=https://processing.org/reference/libraries/sound/index.html
sentence=Provides a simple way to work with audio.
paragraph=
version=11
prettyVersion=2.0.2
lastUpdated=0
minRevision=228
maxRevision=0
I'm using APDE on a galaxy s9 running android 10. I've tried importing from zip and manually importing the following libraries: sound (the one recommended for APDE) Box2D for Processing LiquidFunProcessing The application crashes after every attempted import.
APDE is amazing by the way. Thanks.