I am building an application with API level 19 and I am using:
// download the file input = connection.getInputStream(); fOut = openFileOutput("example.json",MODE_WORLD_READABLE);
he says that โContext.MODE_WORLD_READABLE field is out of dateโ, is there any alternative or addition of @SuppressWarning, is there no problem using it? thank you
Creating world-readable files can be a security flaw, so Google no longer supports this practice. In particular, I cannot think of why the JSON file should be readable.
If you want the application to make content available for other applications, use FileProvider .
FileProvider
Source: https://habr.com/ru/post/971509/More articles:Android L Preview Tabs Style Material - androidPrevent implicit conversions from float to double in C ++ - c ++KnpMenuBundle and dynamic route parameter - phpVim Ctrlp does not parse Ag (silver search) - choose the right option - vimhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/971508/composer-github-private-repository-not-working-with-given-key&usg=ALkJrhjYIyD32lEzAjJ3hqalTE8QdFP2JwAutomatically growing text field in ionic - javascriptGAE still serves image from Google cloud storage after calling delete_serving_url and deleting file - google-app-engineSearch range in Meteor - mongodbHow to manually install App Engine in Android Studio? - javaWhat does "-All Articles