Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread was
Jon, Looking at the options, it seems that: using (var o = new StreamWriter(OpenFileOutput("appname.db", FileCreationMode.WorldReadable))) should solve the problem. However, I'm not familiar with StreamWriter and how to use it to copy the Assets empty sqlite database file - say appname

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread was
Many thanks Jon for your very comprehensive reply. I'll have to digest your response and try the methods therein - which look as though they should resolve my problems with the Nexus permissions. Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Changing-Fol

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread Jonathan Pryor
On Oct 22, 2012, at 4:47 PM, was wrote: > As I'm not familiar with unix permissions, is there a way of changing the > permissions for the App.AppName folder? Yes: with the chmod(2) system call [0, 1]. (Insert rant about how C# actually allows you to do things like this, while it's not easy in J

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread was
Any answer to this? Is using permission: MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE the way foward? If so, why are they not included in the required permissions' list? Thanks...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Changing-Folder-File-permissi

Re: [mono-android] Fastest way to transfer binary data between java/mono

2012-10-23 Thread Jonathan Pryor
On Oct 23, 2012, at 4:32 AM, Igor Russkih wrote: > Assume I have my java class, and my cs class. What I want is to transfer > binary data between these two with max performance. > > Main direction is cs -> java for now. > > What is the best way? > > 1) JNI CopyArray - how is that implemented i

Re: [mono-android] 4.2.8 JAR Bindings bug

2012-10-23 Thread Jeremy A. Kolb - ARA/NED
Filed a bug: https://bugzilla.xamarin.com/show_bug.cgi?id=7950 From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jeremy A. Kolb - ARA/NED Sent: Tuesday, October 23, 2012 9:36 AM To: Discussions related to Mono for Android Subject: Re: [mono-android

Re: [mono-android] warning: with 4.2.8 you will have to remove android-support-v4.jar build item

2012-10-23 Thread Atsushi Eno
OK, I filed an enhancement issue for this: https://bugzilla.xamarin.com/show_bug.cgi?id=7948 Thanks, Atsushi Eno Jeremy A. Kolb - ARA/NED wrote: Hi Atsushi, They're pretty important. Unfortunately in my travels it looks like a lot of third party jars have dependencies on other jars. Jerem

Re: [mono-android] warning: with 4.2.8 you will have to remove android-support-v4.jar build item

2012-10-23 Thread Jeremy A. Kolb - ARA/NED
Hi Atsushi, They're pretty important. Unfortunately in my travels it looks like a lot of third party jars have dependencies on other jars. Jeremy -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno Sent: Tue

Re: [mono-android] warning: with 4.2.8 you will have to remove android-support-v4.jar build item

2012-10-23 Thread Atsushi Eno
Hi Jeremy, Unlike InputJar, ReferenceJars cannot be "embedded" - honestly I never thought about scenarios where ReferenceJars are widely required among many projects. If there are not a small need for that feature, we will consider implementing something like "EmbeddedReferenceJar" for that.

Re: [mono-android] warning: with 4.2.8 you will have to remove android-support-v4.jar build item

2012-10-23 Thread Jeremy A. Kolb - ARA/NED
What about reference jars? If A library project depends on 3 jars + and input jar do we still have to copy the reference jars to the project that uses the library or are they packaged up too? -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.xi

[mono-android] warning: with 4.2.8 you will have to remove android-support-v4.jar build item

2012-10-23 Thread Atsushi Eno
Hello, tl;dr: after updating to 4.2.8 preview, you might see a build breakage to your existing project that references Mono.Android.Support.v4.dll and contains android-support-v4.jar as AndroidJavaLibrary. In that case, removing the AndroidJavaLibrary item is needed. Starting from version 4

Re: [mono-android] 4.2.8 JAR Bindings bug

2012-10-23 Thread Jeremy A. Kolb - ARA/NED
I cranked up the verbosity and found: 1> Unknown parameter type org.osmdroid.ResourceProxy.bitmap found in method GetBitmap in type OsmDroid.IResourceProxy 1> Unknown parameter type org.osmdroid.ResourceProxy.bitmap found in method GetDrawable in type OsmDroid.IResourceProxy 1> Unknown parame

[mono-android] 4.2.8 JAR Bindings bug

2012-10-23 Thread Jeremy A. Kolb - ARA/NED
I upgraded to the 4.2.8 beta build and now it fails to generate the constructor from org.osmdroid.views.ItemizedOverlay in the osmdroid bindings referenced on the website: Java: public ItemizedOverlay(final Drawable pDefaultMarker, final ResourceProxy pResourceProxy); The only one it generates

[mono-android] Fastest way to transfer binary data between java/mono

2012-10-23 Thread Igor Russkih
Hello, Assume I have my java class, and my cs class. What I want is to transfer binary data between these two with max performance. Main direction is cs -> java for now. What is the best way? 1) JNI CopyArray - how is that implemented internally? SetIntArrayRegion? 2) DirectByteBuffer seems to