I have a text file and it has -
packagename:com.hello
I have non-activity Java Class which has to read this text file fetch this com.hello and output it in the form of Log or Toast Message. I am doing Programming in Android in Eclipse. I have 2 questions..
1) Where do I need to place this text file I mean the location of it so that my JAva Class can read it.
2) Since my JAva Class is non-activity class, openFileInput is not working since it needs context and I have no way of getting context.
FileInputStream in = openFileInput("filename.txt");
Is there any way of doing it. Thanks in advance :)