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! On Apr 22, 1:17 pm, Mark Murphy <mmur...@commonsware.com> wrote: > 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,JernejK. <jernej.klan...@gmail.com> 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 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 > > managing with changes..I few times in a second) if I were calling from > > native java methods if we write something to a file.. > > > So I will send getFilesDir() to my native library and also change the > > write permission for the file - MODE_WORLD_WRITEABLE (if it really has > > a different ID, then it will be visible for others). I will also post > > this to the NDK group..but thanks again! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en