Hello,
I am probably missing a very simple thing but I’ve been struggling for a while now without finding a solution. I am very new to android Studio so it may be a dumb question but is there a way, in Android Studio, to work with tabs as on the processing IDE?
On the processing IDE, I can create tabs for different functions or classes used by the sketch.
Once I run the sketch, the different functions and classes are somehow linked to the sketch that uses them. And everything works OK.
With android Studio, I can also create classes that appears in the project view and as tabs if I open them :
If I want the projetc to compile, I also have to declare these classes (for example the class “slider” like that:
public class slider extends PApplet {
I then have a little green triangle sympol on the class icon:
Apparently there is no problem when I create an object from that class in the sketch, but as soon as this object uses a processing function like colormode(), stroke(), rect() or line(), the app crashes without any error messages.
If I declare the same class inside the “sketch extends PApplet{” like this:
public class slider {
then everything works ok and the application doesn’t crash.
But it is not handy at all to have the whole code at the same place…