android - cannot access /mnt/sdcard/dcim/camera/ -


Hello this question "" I have been defined in both ways, but when the APK file was loaded on mobile I keep receiving messages

  error! / Mnt / sdcard / DCIM / camera / directory path is not valid! Please set image directory name AppConstant.java class   

  public static final string PHOTO_ALBUM = "picture";   

Where were some images and this,

  public static final string PHOTO_ALBUM = Environment Gate Extensive Storage Directory () GetPath () + "/ DCIM" + "/ Camera /";   

Then there were some images, so what was wrong ??

1 more thing .. the permission to read the external source has been added in the manifest. Java ... still getting error.

   & Lt; Use-sdk android: minSdkVersion = "8" Android: targetSdkVersion = "17" /> & Lt; Android Android: allowBackup = "true" android: icon = "@draubable / IC_Luncher" Android: label = "@ string / app_name" Android: Theme = "@ Style / Aaptim" & gt; & Lt; Activity Android: name = "info.androidhive.imageslider.GridViewActivity" Android: Theme = "@Android: Style / Theme. Black" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "info.androidhive.imageslider.FullScreenViewActivity" Android: Theme = "@Android: Style / Theme. Black" & gt; & Lt; / Activity & gt; & Lt; / Application & gt;   

Try it out:

Environment DIRECTORY_DCIM ;

Official doctor:

Here's a link to more information: Use of Android's external storage effectively and discreetly

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -