I want to create a file in android application during runtime. As i understand i can do it using :
openFileOutput("samplefile.txt", MODE_WORLD_READABLE);
The problem is, i want to create this file in another class not in Activity. How can I do this ?
send context instance as parameters of method in your second class
now you can call it like this in you main activilty :