first thank you, for your hep.
but your way isn't possible.
Because the file access methods like openFileOutput need the context of the main-activity. But I can't pass the context from a static function.
This was my problem.
But I solved it.
I put a variable in the file access class to...
hi,
after wasting a complete evening of useless trying I really need some help.
I have an Activity with fragments and want to write and read files by clicking an a button or any other event from a fragment.
The problem is, that I have to place the read and write methods in the mainActivity to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.