[android-developers] Re: The file extension and read permission issue

2009-10-24 Thread 100town
Sorry everybody. It turn out the file I push into sdcard is an empty file. I don't know why. But I use another lrc file so it is allright now. So administrator please remove this topic to save other people's time if possible. --~--~-~--~~~---~--~~ You received thi

[android-developers] Re: The file extension and read permission issue

2009-10-24 Thread Mark Murphy
100town wrote: > I did it. The same problem. I just tried modifying one of my book samples to read and write .lrc files, and I ran into no trouble, using the same algorithm that I linked to in my previous reply. I tested this on an Android 1.6 emulator and a T-Mobile G1 running Android 1.6. The

[android-developers] Re: The file extension and read permission issue

2009-10-24 Thread 100town
I did it. The same problem. > The lrc->txt file extension change makes no sense to me. > > That being said, try a better file-reading algorithm and see if it helps: > > http://exampledepot.com/egs/java.io/ReadLinesFromFile.html --~--~-~--~~~---~--~~ You received t

[android-developers] Re: The file extension and read permission issue Hi, I am in the problem about reading dat a from some new file extensions, the problem is fis.read() g ets -1 from the first run

2009-10-24 Thread Mark Murphy
100town wrote: > Hi, > > I am in the problem about reading data from some new file extensions, > the problem is fis.read() gets -1 from the first run without and > exceptions being thrown. Check the code below: > String path = “/sdcard/wanshuiqianshan.lrc”; > java.io.FileInputStream fis = null; >