I'm having another strange problem with my app.
I'm using flat files to store incoming SMS messages and reading them back in a ListView.
The basics of the method are as follows
Everything works fine as long as the only files in the data directory are the SMS files created by my broadcastReceiver. If I add another file to that directory, either through the app itself or by copying a file over with ddms, I get
10-31 12:28:35.511: ERROR/AndroidRuntime(6082): Uncaught handler: thread main exiting due to uncaught exception
10-31 12:28:35.531: ERROR/AndroidRuntime(6082): java.lang.NullPointerException
I've tried catching NullPointerException as well as file not found but it doesn't make a difference.
Can anyone shed any light on what I'm doing wrong?
Thanks in advance