Android context

view story

http://stackoverflow.com – I 'm reading on how to write to internal storage, and found the following code methods on the Android Developer forum. In both the the cases, I do not know how to get/invoke the "context"'s method. I don't understand what the context variable is and how I can create one. Say I want app read a file on start up. What is context and how can I use it to achieve reading from storage. File file = new File(context.getFilesDir(), filename); FileInputStream fis = context.openFileInput("Data.dat", Context.MODE_PRIVATE); InputStreamReade (HowTos)