I am using Android 7.0 and Android Studio(on Windows 7),Openframeworks 0.10.0.
My problem is:
in ofApp.h:
ofImage image1;
in ofApp.cpp:
… ofApp::setup()
{
image1.load("/sdcard/DCIM/100ANDRO/DSC_0021.JPG");
}
… ofApp::draw()
{
image1.draw(400,200,620,620);
}
When I compile and then run code on my phone, it shows a black square/rectangle instead of the picture…
I don’t think the path is wrong because for example when I write a non-existent file name or directory in the path, I see no rectangle on my phone’s screen,nothing.
Under Windows 7 and a previous version of OF, ofImage is able to load the same file(running on Windows).