Relative Content

Tag Archive for javaandroid-studioappendfileoutputstreamwritefile

AndroidStudio FileOutputStream how to Append with ParcelFileDescriptor

I’m trying to append a new line to .txt file using Scoped Storage, I’ve already can create it and add text, but I haven’t be able to add/append a new line with text, I’m trying to use the FileOutputStream in MODE_APPEND but is giving me the red underline error, the Show Context Actions don’t help me either. Is like the MODE_APPEND doesn’t work with the ParcelFileDescriptor. Any suggestion would be appreciated. this is the onClick function:

AndroidStudio FileOutputStream how to Append with ParcelFileDescriptor

I’m trying to append a new line to .txt file using Scoped Storage, I’ve already can create it and add text, but I haven’t be able to add/append a new line with text, I’m trying to use the FileOutputStream in MODE_APPEND but is giving me the red underline error, the Show Context Actions don’t help me either. Is like the MODE_APPEND doesn’t work with the ParcelFileDescriptor. Any suggestion would be appreciated. this is the onClick function: