Author Topic: app not run in Android 5.1  (Read 1870 times)

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
app not run in Android 5.1
« on: September 06, 2016, 08:12:10 pm »
i tested my app in Android 5.1 , it doesn't work.
i read the logcat i found FileNotFoundException . the file is like "/mnt/sdcard/myFolderName/myFileName.png" (pseudo names)
i don't know why, since:
1) the files are there and they can be opened by a image viewer.
2) the app runs on Android 4.2.2 and 4.4.2.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: app not run in Android 5.1
« Reply #1 on: September 06, 2016, 11:03:53 pm »
Haven't they changed access policies to the SD in 5? I don't know for sure, because I use to store all my static stuff in assets and the dynamic stuff in the locations that the app context provides.
But it's clearly not an engine issue... It has to be something else.

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
Re: app not run in Android 5.1
« Reply #2 on: September 07, 2016, 07:49:24 am »
you are right.
i added android.permission.WRITE_EXTERNAL_STORAGE in manifest.xml and it works now.