Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-21 Thread GigaNTes
Thank you. Could help one more :) I'm trying to estimate such solution. We have several .net products. And we need to make porting of these apps to Android applications. We're considering two ways. First way - 1)we make porting from .net code to Java and 2) this already ported application to Androi

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-21 Thread Jonathan Pryor
On Mar 21, 2012, at 5:19 AM, GigaNTes wrote: > I'm trying to estimate such solution. I think there are too many factors for me to provide much help. :-) > We're considering two ways. > First way - 1)we make porting from .net code to Java and 2) this already > ported application to Android app.

[mono-android] Creating my own OpenGL bindings?

2012-03-21 Thread Rodrigo 'r2d2rigo' Diaz
I'm currently porting some MonoTouch code over to MonoDroid. It would be nice if I could use Vertex Array Objects in Android (the target platform supports the GL_OES_vertex_array_object extension) but there are no available bindings. I have already made my own bindings in MonoTouch with DllImport,

Re: [mono-android] Creating my own OpenGL bindings?

2012-03-21 Thread Jonathan Pryor
On Mar 21, 2012, at 11:16 AM, Rodrigo 'r2d2rigo' Diaz wrote: > But there aren't any references to Mono.Constants or something alike in > MonoDroid. Is this possible? The constant isn't present, so you just need to use a different string. The /system/lib/libGLESv2.so file on my Xoom contains a gl

Re: [mono-android] Creating my own OpenGL bindings?

2012-03-21 Thread Andreia Gaita
Hi, On Wednesday, March 21, 2012 at 3:16 PM, Rodrigo 'r2d2rigo' Diaz wrote: > I'm currently porting some MonoTouch code over to MonoDroid. It would be nice > if I could use Vertex Array Objects in Android (the target platform supports > the GL_OES_vertex_array_object extension) but there are n

Re: [mono-android] Creating my own OpenGL bindings?

2012-03-21 Thread Rodrigo 'r2d2rigo' Diaz
Awesome! The library is there (Kindle Fire), and the function is included! I'm going to try the bindings now, thank you! 2012/3/21 Jonathan Pryor > On Mar 21, 2012, at 11:16 AM, Rodrigo 'r2d2rigo' Diaz wrote: > > But there aren't any references to Mono.Constants or something alike in > MonoDroi

Re: [mono-android] Creating my own OpenGL bindings?

2012-03-21 Thread Andreia Gaita
On Wednesday, March 21, 2012 at 3:54 PM, Rodrigo 'r2d2rigo' Diaz wrote: > Awesome! The library is there (Kindle Fire), and the function is included! > I'm going to try the bindings now, thank you! > If you're on the Kindle, be careful when using egl 2.0, a few egl calls seem to not be fully impl

Re: [mono-android] Creating my own OpenGL bindings?

2012-03-21 Thread Rodrigo 'r2d2rigo' Diaz
Done, and it works like a charm! Luckily the implementation of glGenVertexArrayOES/glBindVertexArrayOES is implemented in libGLESv2.so on the Kindle. @Andreia: yes, I know those functions are already in OpenTK. It was an old binding from when it was broken in MonoTouch. 2012/3/21 Andreia Gaita

[mono-android] So you want to know about binding via JNI?

2012-03-21 Thread Jonathan Pryor
Behold! One of the larger brain-dumps on the documentation site! http://docs.xamarin.com/android/tutorials/Binding_Android_Types Guaranteed to put you to sleep! On a more serious note, if you want an overview of how Mono for Android bindings work, and why you really really want an autom

Re: [mono-android] So you want to know about binding via JNI?

2012-03-21 Thread Tomasz Cielecki
Mother of JNI! This is great news, thanks a bunch! On Mar 21, 2012 5:37 PM, "Jonathan Pryor" wrote: > Behold! One of the larger brain-dumps on the documentation site! > >http://docs.xamarin.com/android/tutorials/Binding_Android_Types > > Guaranteed to put you to sleep! > > On a more serio

[mono-android] Testing for a network connection

2012-03-21 Thread Paul Johnson
Hi, I'm trying to resolve an issue with an app I'm porting from iPhone to Android and I'm going through everything bit by bit. The problem is that whenever the app attempts to the outside world, it falls over dead. Works fine on the emulator, dies on a phone. One thing I'm looking at is the

Re: [mono-android] profiling support in monodroid?

2012-03-21 Thread mcleodia
Hi Jon/Rodrigo Good news... I am hopefully going to be able to give you some form of a standalone repro. I remembered that we have a "software" media renderer, which is essentially a simulator app that can be run on a computer. So I set up an isolated test network today, consisting of a Mac con

[mono-android] Sample project Tutorials

2012-03-21 Thread closdesign
Does Xamarin have tutorials on some of the examples they provide for MonoDroid? Specifically something like the Contacts or Honeycomb Gallery? Right now we are kind of stumbling through the code. If there were some good tutorials or video tutorials, that would be great on how these C# classes

[mono-android] Equivalent of wget?

2012-03-21 Thread Paul Johnson
Hi, I'm trying to grab files from a server using this code but it dies. Any ideas why? public void grabAFile(string url, Context c) { WebClient webClient = new WebClient(); webClient.DownloadFileCompleted += delegate(object s, AsyncCompletedEventArgs e)

Re: [mono-android] Equivalent of wget?

2012-03-21 Thread Gonzalo Paniagua Javier
On Wed, Mar 21, 2012 at 2:44 PM, Paul Johnson wrote: > Hi, > > I'm trying to grab files from a server using this code but it dies. > > Any ideas why? If you check the properties of 'e' you will certainly find out why. -Gonzalo ___ Monodroid mailing lis

Re: [mono-android] Sample project Tutorials

2012-03-21 Thread Jonathan Pryor
On Mar 21, 2012, at 12:47 PM, closdesign wrote: > Does Xamarin have tutorials on some of the examples they provide for > MonoDroid? Specifically something like the Contacts or Honeycomb Gallery? We have a variety of tutorials at: http://docs.xamarin.com/android/tutorials As for the Co

Re: [mono-android] Testing for a network connection

2012-03-21 Thread Jonathan Pryor
On Mar 21, 2012, at 2:35 PM, Paul Johnson wrote: > The problem is that whenever the app attempts to the outside world, it falls > over dead. Can you elaborate? Does the Android Debug Log contain anything useful? Stack traces? Anything? - Jon ___ Mon

Re: [mono-android] Testing for a network connection

2012-03-21 Thread Paul Johnson
Hi, The problem is that whenever the app attempts to the outside world, it falls over dead. Can you elaborate? Does the Android Debug Log contain anything useful? Stack traces? Anything? Where would I look on the phone for that? The emulator runs fine - it's on a real device it coughs, sp

Re: [mono-android] Testing for a network connection

2012-03-21 Thread Jonathan Pryor
On Mar 21, 2012, at 3:33 PM, Paul Johnson wrote: >>> The problem is that whenever the app attempts to the outside world, it >>> falls over dead. >> >> Can you elaborate? Does the Android Debug Log contain anything useful? Stack >> traces? Anything? > > Where would I look on the phone for that?

Re: [mono-android] Testing for a network connection

2012-03-21 Thread Paul Johnson
Hi, Where would I look on the phone for that? The emulator runs fine - it's on a real device it coughs, splutters and keels over It still has the Android Debug Log: http://docs.xamarin.com/android/advanced_topics/android_debug_log Please provide any relevant output. The emulat

[mono-android] Writing to the external SD card

2012-03-21 Thread Paul Johnson
Hi, I have some very simple code for writing to the SDCard (pruned from postings on here and other places). Only problem is that it throws an exception when writing the directory. On closer examination, external contains nothing. Is this what it should contain and if it isn't, does anyone ha

Re: [mono-android] Writing to the external SD card

2012-03-21 Thread Jonathan Pobst
Not sure if it's your issue, but use Path.Combine instead of manually creating paths. Android is Linux based, so it uses forward slashes instead of backwards slashes. Jonathan On 3/21/2012 7:19 PM, Paul Johnson wrote: Hi, I have some very simple code for writing to the SDCard (pruned from p