Note that there are some explanatory texts on larger screens.

plurals
  1. POError in getting folder size for the Pictures folder in android
    primarykey
    data
    text
    <p>I published my new application in the play store and a user told me that when he open a fragment in the application, the app crashes.. I have the logCat:</p> <pre><code>java.lang.NullPointerException at com.dd.androreboot.devicefragment.getFolderSize(devicefragment.java:216) at com.dd.androreboot.devicefragment.onCreateView(devicefragment.java:95) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:829) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035) at android.app.BackStackRecord.run(BackStackRecord.java:635) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1397) at android.app.FragmentManagerImpl$1.run(FragmentManager.java:426) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4849) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>and at the line 95 i have this </p> <pre><code>// Pictures File pictures = new File(Environment.getExternalStorageDirectory().getPath()+"/Pictures/"); float picturesize=getFolderSize(pictures)/(1024f*1024f); </code></pre> <p>He has a <code>Lg optimus L9 P760</code> so i think that the problem is that phone hasn't got the Picture folder or it's not in that path so the application crash.. Could be this the problem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload