[Xperia Play Q&A, Help & Troubleshooting] MLX:
Hi all, I've just installed CM11 (LegacyXperia) on my Xperia Play for using it as MP4, but I have a little problem: looks like every app which checks for external storage crashes. I've reached that conclusion after taking a logcat and seeing what causes the crash: accessing to na empty array returned during a call to getExternalCacheDir() function.

My device does not have a SD Card inserted because the slot is broken and I can't find anyone selling the replacement.

Is there something that I can do to fix this? Or should change to another ROM?

See the logcat below:

I/ActivityManager( 546): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.gallery3d/.app.GalleryActivity} from pid 1476

V/StateManager( 3437): startState class com.android.gallery3d.app.AlbumSetPage

V/NFC ( 3437): this device does not have NFC support

D/AndroidRuntime( 3437): Shutting down VM

W/dalvikvm( 3437): threadid=1: thread exiting with uncaught exception (group=0x416b0ce0)

E/AndroidRuntime( 3437): FATAL EXCEPTION: main

E/AndroidRuntime( 3437): Process: com.android.gallery3d, PID: 3437

E/AndroidRuntime( 3437): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.gallery3d/com.android.gallery3d.app.GalleryActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0

E/AndroidRuntime( 3437):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2212)

E/AndroidRuntime( 3437):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2271)

E/AndroidRuntime( 3437):	at android.app.ActivityThread.access$800(ActivityThread.java:144)

E/AndroidRuntime( 3437):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)

E/AndroidRuntime( 3437):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 3437):	at android.os.Looper.loop(Looper.java:136)

E/AndroidRuntime( 3437):	at android.app.ActivityThread.main(ActivityThread.java:5146)

E/AndroidRuntime( 3437):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 3437):	at java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime( 3437):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)

E/AndroidRuntime( 3437):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)

E/AndroidRuntime( 3437):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 3437): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0

E/AndroidRuntime( 3437):	at android.app.ContextImpl.getExternalCacheDir(ContextImpl.java:969)

E/AndroidRuntime( 3437):	at android.content.ContextWrapper.getExternalCacheDir(ContextWrapper.java:235)

E/AndroidRuntime( 3437):	at com.android.gallery3d.app.AbstractGalleryActivity.onStart(AbstractGalleryActivity.java:170)

E/AndroidRuntime( 3437):	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)

E/AndroidRuntime( 3437):	at android.app.Activity.performStart(Activity.java:5241)

E/AndroidRuntime( 3437):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178)

E/AndroidRuntime( 3437):	... 11 more

W/ActivityManager( 546): Force finishing activity com.android.gallery3d/.app.GalleryActivity

I/WindowManager( 546): Screenshot max retries 4 of Token{420b55a8 ActivityRecord{41efdcd0 u0 com.android.gallery3d/.app.GalleryActivity t19 f}} appWin=Window{41fdd190 u0 Starting com.android.gallery3d} drawState=4

W/WindowManager( 546): Screenshot failure taking screenshot for (854x480) to layer 21020

W/ActivityManager( 546): Activity pause timeout for ActivityRecord{41efdcd0 u0 com.android.gallery3d/.app.GalleryActivity t19 f}

I/Timeline( 1476): Timeline: Activity_idle id: android.os.BinderProxy@41b1ed18 time:1453928

I/Timeline( 546): Timeline: Activity_windows_visible id: ActivityRecord{41d48ec8 u0 com.cyanogenmod.trebuchet/org.cyanogenmod.trebuchet.CustomHomeLauncher t3} time:1454349

D/AudioFlinger( 235): start(4098), calling pid 546 session 945

D/AudioFlinger( 235): ? => ACTIVE (4098) on thread 0x7d6820

I/Process ( 3437): Sending signal. PID: 3437 SIG: 9

I/ActivityManager( 546): Process com.android.gallery3d (pid 3437) has died.