[Galaxy S II Android Development] cybernetus:
I receive an PM from [MENTION=4608158]vitök[/MENTION] about the screenshot ( i don't test this on the last build ) .

After the PM of him I test this feature. Here is the logcat :

D/AKMD2 ( 6136): akm_enable_sensor: Accel is enabled. (orien = 0)
I/AKMD2 ( 6136): enable_accelerometer, mEnabled = 0, enable = 1
I/GCoreUlr(16592): Successfully inserted location
W/InputMethodManagerService( 6136): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42df6f90 attribute=android.view.inputmethod.EditorInfo@42de3480, token = android.os.BinderProxy@427ceff8
I/GCoreUlr(16592): Not calling LocationReportingService, hasMoved: false, elapsed millis: 1501656, request: Phone
V/TAG ( 6136): bug 7643792: fitSystemWindows([0,0][0,0])
W/ViewRootImpl( 6136): Dropping event due to no window focus: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=116, metaState=0, flags=0x8, repeatCount=2, eventTime=15341502, downTime=15341000, deviceId=3, source=0x101 }
W/ViewRootImpl( 6136): Dropping event due to no window focus: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=116, metaState=0, flags=0x8, repeatCount=3, eventTime=15341553, downTime=15341000, deviceId=3, source=0x101 }
D/Yamaha-MC1N2-Audio( 2576): yamaha_mc1n2_audio_output_stop()
D/Yamaha-MC1N2-Audio( 2576): yamaha_mc1n2_audio_route_start()
W/InputMethodManagerService( 6136): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4329b958 attribute=null, token = android.os.BinderProxy@427ceff8
I//sbin/ext/cortexbrain-tune.sh(23594): *** MALI_TIMEOUT: awake ***
I//sbin/ext/cortexbrain-tune.sh(23596): *** CENTRAL_CPU_FREQ: awake_normal ***: done
D/AKMD2 ( 6136): akm_disable_sensor: Accel is disabled. (orien = 0)
I/AKMD2 ( 6136): enable_accelerometer, mEnabled = 1, enable = 0
I//sbin/ext/cortexbrain-tune.sh(23598): *** AWAKE: Normal-Mode ***
I//sbin/ext/cortexbrain-tune.sh(23599): *** ECO_TWEAKS ***: enabled
D/Yamaha-MC1N2-Audio( 2576): yamaha_mc1n2_audio_output_start()
D/Yamaha-MC1N2-Audio( 2576): yamaha_mc1n2_audio_route_start()
D/Yamaha-MC1N2-Audio( 2576): (yamaha_mc1n2_audio_params_route_find): device = 2, direction = 0
I//sbin/ext/cortexbrain-tune.sh(23855): *** TOUCH_KEYS_CORRECTION: off - 3000ms ***
I//sbin/ext/cortexbrain-tune.sh(23856): *** USB_POWER_WAKE: done ***
E/SaveImageInBackgroundTask(21663): Cannot create screenshots directory
I/Choreographer(21663): Skipped 35 frames! The application may be doing too much work on its main thread.
W/MediaProvider( 8973): original file hasn't been stored yet: /storage/sdcard0/Pictures/Screenshots/Screenshot_2013-11-19-17-33-04.png
V/MediaStore(20585): Create the thumbnail in memory: origId=19262, kind=1, isVideo=false
E/ThumbnailUtils(20585):
E/ThumbnailUtils(20585): java.io.FileNotFoundException: /storage/sdcard0/Pictures/Screenshots/Screenshot_2013-11-19-17-33-04.png: open failed: ENOENT (No such file or directory)
E/ThumbnailUtils(20585):	at libcore.io.IoBridge.open(IoBridge.java:409)
E/ThumbnailUtils(20585):	at java.io.FileInputStream.<init>(FileInputStream.java:78)
E/ThumbnailUtils(20585):	at java.io.FileInputStream.<init>(FileInputStream.java:105)
E/ThumbnailUtils(20585):	at android.media.ThumbnailUtils.createImageThumbnail(ThumbnailUtils.java:109)
E/ThumbnailUtils(20585):	at android.provider.MediaStore$InternalThumbnails.getThumbnail(MediaStore.java:680)
E/ThumbnailUtils(20585):	at android.provider.MediaStore$Images$Thumbnails.getThumbnail(MediaStore.java:1011)
E/ThumbnailUtils(20585):	at ehz.a(PG:416)
E/ThumbnailUtils(20585):	at ehz.a(PG:257)
E/ThumbnailUtils(20585):	at edc.i(PG:545)
E/ThumbnailUtils(20585):	at ecq.b(PG:574)
E/ThumbnailUtils(20585):	at edc.b(PG:669)
E/ThumbnailUtils(20585):	at eds.handleMessage(PG:294)
E/ThumbnailUtils(20585):	at android.os.Handler.dispatchMessage(Handler.java:95)
E/ThumbnailUtils(20585):	at android.os.Looper.loop(Looper.java:137)
E/ThumbnailUtils(20585):	at android.os.HandlerThread.run(HandlerThread.java:61)
E/ThumbnailUtils(20585):	at eds.run(PG:275)
E/ThumbnailUtils(20585): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
E/ThumbnailUtils(20585):	at libcore.io.Posix.open(Native Method)
E/ThumbnailUtils(20585):	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
E/ThumbnailUtils(20585):	at libcore.io.IoBridge.open(IoBridge.java:393)
E/ThumbnailUtils(20585):	... 15 more
W/cqg (19781): unable to open content://media/external/images/media/19262
D/Yamaha-MC1N2-Audio( 2576): yamaha_mc1n2_audio_output_stop()
D/Yamaha-MC1N2-Audio( 2576): yamaha_mc1n2_audio_route_start()
D/AKMD2 ( 6136): akm_enable_sensor: Accel is enabled. (orien = 0)
I/AKMD2 ( 6136): enable_accelerometer, mEnabled = 0, enable = 1
D/AKMD2 ( 6136): akm_disable_sensor: Accel is disabled. (orien = 0)
I/AKMD2 ( 6136): enable_accelerometer, mEnabled = 1, enable = 0
D/AKMD2 ( 6136): akm_enable_sensor: Accel is enabled. (orien = 0)
I/AKMD2 ( 6136): enable_accelerometer, mEnabled = 0, enable = 1
^C

I believe the error is :

W/MediaProvider( 8973): original file hasn't been stored yet: /storage/sdcard0/Pictures/Screenshots/Screenshot_2013-11-19-17-33-04.png

This is strange

Update: to solve this create the directory

Pictures/Screenshots on the internal storage and the screenshot will be saved without problems.