Getting file from assets using getAssets() consistently fails
问题 In the code I have listed below, the method getPieceTextFile() should return the InputStream to read data from the specified file. However, the method always falls back on the catch and so returns null, leading to a NPE. I have listed the LogCat output and the code for the class below. Any identification of the potential source of the problem would be appreciated. LogCat: 01-03 12:17:51.331: I/dalvikvm(589): threadid=3: reacting to signal 3 01-03 12:17:51.590: I/dalvikvm(589): Wrote stack