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. <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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/commonsguy http://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

