![]() ![]() ![]() Inbetweeen both tests I obviously removed the SampleApp folder, so it doesn't exist when I try app version from Google Play. Has something specific changed from Android 11 to 12? I also tried using mkdir() but end result is the same. I get the problem only on Android 12 devices. Logged debug path is the same: /storage/emulated/0/Download/SampleApp Stworzenie takiej listy wymaga jednak czasu. By moe potrzebujesz indeksu niektrych plikw lub folderw na pycie CD, DVD lub karcie pamici, chcesz wysa list do kolegi lub chcesz opublikowa list przez Internet. The full path where new folder gets created is: /storage/emulated/0/Download/SampleAppīut when the same code as a part of application gets uploaded to Google Play and then installed to the same phone, folder can't create and an exception gets triggered. Niejednokrotnie potrzebujesz stworzy listy plikw lub katalogw. Log.d("Debug", "Can't create new folder on path: " + folder.getPath()) String folderName = Environment.DIRECTORY_DOWNLOADS įile folder = new File(Environment.getExternalStoragePublicDirectory(folderName) + "/SampleApp/") įirebaseCrashlytics.getInstance().recordException(new Exception("Storage access class: can't create folder") When code bellow as a part of application is executed locally (directly started from Android Studio) it works correct.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |