pwedev / andengineexamples

Automatically exported from code.google.com/p/andengineexamples
0 stars 0 forks source link

ScreenCapture example fails if directory doesn't exist #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Clone the andengineexamples project
2. Run the ScreenCapture Example for the first time (clean install)
3. Capture will fail

What is the expected output? What do you see instead?
Capture saved to sd card. 
Capture is not saved, it fails because the directory doesn't exist. Once the 
directory is created it works as expected.

ERROR/AndEngine(732): java.io.FileNotFoundException: 
/mnt/sdcard/Android/data/org.anddev.andengine.examples/files/Screen_130331296235
8.png (No such file or directory)

What version of the product are you using? On what operating system?
Android 2.3.3 Stock Nexus 1
Latest andengine examples.

Please provide any additional information below.

Original issue reported on code.google.com by chris.sm...@gmail.com on 20 Apr 2011 at 3:47

GoogleCodeExporter commented 8 years ago
I'm using the ScreenCapture class, and when my app try to capture image and 
save in SDCard using FileUtils.getAbsolutePathOnExternalStorage(), I get the 
same error.

Original comment by gumbira....@gmail.com on 14 Oct 2011 at 3:55