The file extension and read per mission issue Hi, I am in the problem about reading data fr om some new file extensions, the problem is gets -1 from the first run wit

by 100town » Sat, 24 Oct 2009 19:39:16 GMT

Sponsored Links

I am in the problem about reading data from some new file extensions,
the problem is gets -1 from the first run without and
exceptions being thrown. Check the code below:
String path = sdcard/wanshuiqianshan.lrc fis = null;
                        fis= new;
                        int c=0;
                        StringBuffer sb=new StringBuffer();
                        Log.e("INFO", "Here 1;
                        return sb.toString();
                }catch(Exception ioe){
                        Log.e("EROOR", "file: "+path, ioe);
                        return null;
                        }catch(Exception e){
If I change the file extension to xt everything is all right. I
debugged into the android source then the code running into the native
C code so not any clue was found.

I searched in the group. Only some discuss leads to the cycle about
mime-type and file extensions which cannot help me.
I guess it is a build-in security mechanism about the undefined file
extension types. Can anybody help? Thanks.


Other Threads

1. canvas.scale and text size bug


i'm using bitmap object to draw text like below step.
first, i use the bitmapCanvas.scale(sx, sy);
second,  text strings are drawn on the bitmap object.
third, i draw the bitmap object to the real canvas by using
but sometimes text size is not fit to area when i change zoom in/out

for example, now the screen size is 320x400 and i use
bitmapCanvas.scale(0.5f, 0.5f); and if i draw text
(ex: canvas.draw("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii....");)
then the text has to be drawn in rect of 160x200 however it's drawn
over the 160px.
it's unstable by zoom value and it depends on current typeface.
will this android bug be fixed?

Thank you.


2. Resuming not visible activities using intents

Hi all,


Is it possible to resume a background activity using an intent? 

When I register a notification in the status bar and clicked on it an
Activity is fired, but it's always a new one... I would need a way to
reuse one in background already on the stack.

Please help. 

Thanks a lot.


3. Eclipse hangs when launching program file.. AGAIN !

4. Problem using XMPP demo in latest SDK emulator m5 rc 14

5. NullPointerException Error (Very Easy)

6. MapView inside ScrollView doesn't move right

7. is there any plans to release c++ version of andriod