www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: MichaelJPCT on September 06, 2016, 08:12:10 pm

Title: app not run in Android 5.1
Post by: MichaelJPCT 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.
Title: Re: app not run in Android 5.1
Post by: EgonOlsen 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.
Title: Re: app not run in Android 5.1
Post by: MichaelJPCT 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.