-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use file FROM the phone #134
Comments
Are you on Android? If so: /storage/emulated/0/testfolder/ would be your path |
PImage webImg; void setup() { void draw() { I tried it and it still crashed the sketch and I am on Android |
It says all of this Failed to delete old APK file |
But I want to use photos from anywhere on the phone by just renaming or moving it to a not data folder |
Hey @Turtlemod , in plain processing you would do it like this for the '"just outside" folder named '0texts'
I mean you aren't putting stuff inside 'data' but on a folder called '0texts' that is one level up the folder of your sketch, so you have, '0texts' with your sketch folder besides on the same level. |
@Leamucho And just to clarify I want to use the "testfolder" to hold images and then this uses it |
I'm trying to make something to find an image on the phone (eg. Test.jpg) and as far as the reference goes I can use the file path, but either I don't know the path or doing somthing wrong
This is my code so far
PImage webImg;
void setup() {
size(400,400);
String url = "/Testfolder/Test.jpg";
webImg = loadImage(url);
}
void draw() {
background(0);
image(webImg, 0, 0);
}
The text was updated successfully, but these errors were encountered: