I have some bunch of Android projects that contains some common resources in Assets folder, So I have created one folder called "Android Resources" in workspace and copied all common resources in that, and I have linked all resources to Assets folder like this.
http://www.badlogicgames.com/wordpress/wp-content/uploads/2011/02/eclipse-link.png Now I am facing problem with accessing that resources. 1) Our normal way of getting files from Asset doesn't work. I understand this because its not physically present in folder AssetManager aManager = context.getAssets("data/Myfile.txt"); InputStream is = aManager.open(path); 2) Then I have checked my project file I found some entries there. <linkedResources> <link> <name>assets/data/Myfile.txt</name> <type>1</type> <locationURI>PARENT-4-PROJECT_LOC/workspace/Android Resources/data/Myfile.txt/<locationURI> </link> Then I have tried to access file by using this path, but not successful. String path="PARENT-4-PROJECT_LOC/workspace/Android Resources/data/Myfile.txt" AssetManager aManager = context.getAssets(path); InputStream is = aManager.open(path); every-time I am getting null pointer exception, I feel that I am missing something but not getting what? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en