Exporting picture with Android App

Hi there! I am using processing android app, can you please tell me how to export a the images that I create with the code? Thanks!

Please search the forum there are lots of sketches on this.

I really did not find them, could you give me a link please?

https://discourse.processing.org/search?q=Android%20save%20image

These topics are more about adding images to android sketches and things like that, but I don’t find anything about exporting your image. My pc does that automatically, but I can not find them on my phone although I can open my sketchbook

I have tried with save(); but it doesn’t work.

void setup() {
  
  size(1000, 1000);
  background(255,255,255);
  
  float x1 = random(0, 1000);
  float y1 = (0);
  float x2 = random(0, 1000);
  float y2 = random(0, 1000); 
  float x3 = random(0, 1000);
  float y3 = random(0, 1000);
  float x4 = random(0, 1000);
  float y4 = random(0, 1000);
  float x5 = (1200);
  float y5 = random(0, 1000);
  float x6 = (1200);
  float y6 = random(0, 1000);  
  float x7 = random(0, 1000);
  float y7 = (1200);
  float x8 = random(0, 1000);
  float y8 = random(0, 1000);
  float x9 = random(0, 1000);
  float y9 = random(0, 1000);
  float x10 = (0);
  float y10 = random(0, 1000);
  float x11 = random(0, 1000);
  float y11 = random(0, 1000);
  float x12 = (0);
  float y12 = random(0, 1000);
  float x13 = random(0, 1000);
  float y13 = (0);
 
  
  stroke(0, 0, 0);
  strokeWeight(3);
  
  //a
  line(x1, y1, x2, y2);
  line(x2, y2, x3, y3);
  line(x3, y3, x4, y4);
  
  //b
  line(x4, y4, x5, y5); 
  line(x5, y5, x6, y6);
  line(x6, y6, x7, y7);
  
  //c
  line(x7, y7, x8, y8);
  line(x8, y8, x9, y9);
  line(x9, y9, x10, y10);
  
  //d
  line(x10, y10, x11, y11);
  line(x11, y11, x12, y12);
  line(x12, y12, x13, y13);
  
  save("numberone.tiff");
  
  }
  
  

Thanks, I will ask in another topic about save() to understand it better.

Sorry I misunderstood your question. I think you meat just saving an image. But you are looking to export the assets in the data folder and sketch folders. Normally it should be just as single as exporting the app, however if you are using android mode perhaps it’s using the android file structure and therefore they aren’t exported, just a guess.