Hello,
I am developing processing android app in android studio, but I can’t load image from loadImage().
I wrote below codes and enabled permission “WRITE_EXTERNAL_STORAGE”, “READ_EXTERNAL_STORAGE”.
I understood that I have to put in the specified directory from the error message, but It didn’t work though I put it in there.
below codes are shown. please, tell me how to fix.
thank you.
(I can’t speak in English well, so I might make mistakes upper sentence. I’m sorry in advance m(_ _)m )
package com.example.android2_0_1;
import processing.core.PApplet;
import processing.core.PImage;
public class Sketch extends PApplet {
private PImage picTimeConstants;
private KetaiAudioInput mic;
@Override
public void settings()
{
fullScreen();
}
public void setup()
{
orientation(LANDSCAPE);
picTimeConstants=loadImage("a.png");
image(picTimeConstants,0,0,500,500); //error! picTimeConstants is null.
}
public void draw()
{
}