Android Context from another class
问题 What I'm trying to do is the following... FileInputStream fIn; try { fIn = openFileInput("samplefile.txt"); InputStreamReader isr = new InputStreamReader(fIn); BufferedReader br = new BufferedReader(isr); isTrue = Boolean.parseBoolean(br.readLine()); Log.i("IN", "isTrue = " + isTrue); } But this is only going to work in the class that extends the Activity class within Android. I have a "Settings" class which writes and reads the current games settings from a file, but this file has a lot of