[android-developers] Re: Use of files

2011-04-28 Thread Jernej K.
I found the problem! I used the if statement wrong :) But I can confirm you have in Android native code accessibility to local files created in java - files create on application level, where other applications can not see your file! Now I can write to files in native code and read them in java!

Re: [android-developers] Re: Use of files

2011-04-22 Thread Mark Murphy
Do not make the file MODE_WORLD_WRITEABLE unless you don't mind when people hack your files. On Fri, Apr 22, 2011 at 4:41 AM, Jernej K. wrote: > Thank you both for your answer! > > The thing is, in my company we already have working libraries and that > is the reason why I have to use jni. > So m

[android-developers] Re: Use of files

2011-04-22 Thread Jernej K.
Thank you both for your answer! The thing is, in my company we already have working libraries and that is the reason why I have to use jni. So most of the work is done in native code, most of time I use Java for GUI part.. So I think i would be a performance issue (applications is constantly mana

[android-developers] Re: Use of files

2011-04-21 Thread Igor Prilepov
Most likely this is about permissions: the native application (I guess you run it from the shell) is executed under different user ID than your Java application. As a temporary development solution you can get root access and fix it but I would recommend to avoid using native code unless for the