tag:blogger.com,1999:blog-8001170587821659759.post846776537501380452..comments2023-08-22T02:10:46.226-07:00Comments on My Brain Hurts: Mono on Android: State of the UnionKoushhttp://www.blogger.com/profile/11049460148325973407noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-8001170587821659759.post-61497335959678578432010-07-01T12:10:20.944-07:002010-07-01T12:10:20.944-07:00https://wave.google.com/wave/waveref/googlewave.co...https://wave.google.com/wave/waveref/googlewave.com/w+8vSV9-MEAJeroMiyahttps://www.blogger.com/profile/07694668015028794706noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-66066498014687620412010-07-01T11:58:49.676-07:002010-07-01T11:58:49.676-07:00Link to the wave?Link to the wave?Koushhttps://www.blogger.com/profile/11049460148325973407noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-26851101843196802172010-07-01T11:50:30.997-07:002010-07-01T11:50:30.997-07:00If you have access to google Wave, I started a wav...If you have access to google Wave, I started a wave. Search for tag:"androidmono" - I should be the only one there: "Late Breaking AndroidMono Build Issues/Instructions" wave.JeroMiyahttps://www.blogger.com/profile/07694668015028794706noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-32364815346380077032010-07-01T11:32:36.771-07:002010-07-01T11:32:36.771-07:00@koush Sorry, I don't have access to IRC at wo...@koush Sorry, I don't have access to IRC at work, and my 6 month old daughter keeps me away from the computer at home heh.JeroMiyahttps://www.blogger.com/profile/07694668015028794706noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-86658216444001055742010-07-01T11:02:01.098-07:002010-07-01T11:02:01.098-07:00Hey, sorry, been busy with non-Mono stuff again. I...Hey, sorry, been busy with non-Mono stuff again. If you want to hop onto irc.freenode.net and PM Koush, I can give you a better status on the project and some instructions. You shouldn't have needed to merge master into devel on jni4net.Koushhttps://www.blogger.com/profile/11049460148325973407noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-88142540422897038742010-07-01T10:59:51.829-07:002010-07-01T10:59:51.829-07:00@Damian - I had to grab the jni4net.n directory fr...@Damian - I had to grab the jni4net.n directory from the master branch and manually merge it into the devel branch. <br /><br />Also, I had to rebuild the bindings from scratch using the jni/MonoJavaBridge/JavaObjectModelGenerator project, after changing String androidSDK in JarListener.java to point to my android SDK's android.jar instead of koush's.<br /><br />Then, I needed to regenerate the android.dll source files by running the MonoDroid project (see the readme.txt).<br /><br />Then I had to delete the jni/MonoJavaBridge/android/generated directory, and copy jni/MonoJavaBridge/bin/generated into jni/MonoJavaBridge/android.<br /><br />I also removed the */net folders from the android project and re-added the sources - not sure if that did anything. The affected folders were generated/android/net, generated/java/net and generated/javax/net.<br /><br />Couple of other things I had to do:<br />Remove the (java.lang.String) casts in the HelloWorld Activity. Seems koush found a way to generate overloads for .Net strings somehow?<br /><br />Also, I had to modify the return type of one of the methods in ArrayList.cs from returning ListIterator to returning Iterator. I think there were already exceptions hard-coded for other similar classes, but ArrayList wasn't added to the exception list (see jni/MonoJavaBridge/MonoDroid/NetProxyGenerator.cs, line 141. We may need to add ArrayList to the if statement here).<br /><br /><br />Also, that's as far as I got. I haven't yet been able to get the MonoDevelop plugin to build (says it is missing MonoDevelop.Debugger and MonoDevelop.Debugger.Soft assemblies). I'm thinking this is an issue with my config. I'm using MonoDevelop 2.4 from badgerports.orgJeroMiyahttps://www.blogger.com/profile/07694668015028794706noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-89045898496863267162010-06-23T11:12:54.580-07:002010-06-23T11:12:54.580-07:00You mention creating some doppleganger stubs from ...You mention creating some doppleganger stubs from reflection. In case you were interested, I have published an open source project that does this for C# classes. It is currently set to output C# code, but it could be modified to output Java code. Feel free to take a look at it here: http://code.google.com/p/doppleganger/<br /><br />Best of luck in your work on getting Mono to run on the Android platform. I am very interested in having this ability.e.p.s.https://www.blogger.com/profile/02110432681309876801noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-91224739733388790062010-06-13T08:48:52.241-07:002010-06-13T08:48:52.241-07:00Thanks for your efforts! This is great. Have you g...Thanks for your efforts! This is great. Have you gotten your .NET+OpenGLES wrapper working on android ( http://www.koushikdutta.com/2008/08/net-compact-framework-wrapper-for.html )? And has anyone manged to migrate those to Visual Studio 2010 [Express]?Unknownhttps://www.blogger.com/profile/05272457390093588732noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-16901970533895503442010-06-06T03:13:56.361-07:002010-06-06T03:13:56.361-07:00To clarify, if I go to ~/src/androidmono/jni/MonoJ...To clarify, if I go to ~/src/androidmono/jni/MonoJavaBridge/android<br /><br />and do an xbuild, I get errors such as "Source file `generated/android/net/ConnectivityManager.cs' could not be found".<br /><br />Indeed there is no generated/android/net folder - not sure if this should have been generated as part of the build ....<br /><br />Regards,<br /> DamianDamianhttps://www.blogger.com/profile/03275214864891955875noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-57070250614998389072010-06-06T02:53:31.400-07:002010-06-06T02:53:31.400-07:00Really appreciate the work you've put into thi...Really appreciate the work you've put into this - a long time ago I put together a Java-COM bridge (J-Integra) and I know how much work it is to do this kind of thing.<br /><br />I'm getting build errors running build.sh in MonoJavaBridge - it doesn't find generated/android... files.<br /><br />These are not in the http://github.com/koush/jni4net.n.gitgit repository as far as I can see - I manually fetched this to jni4net.n<br /><br />Should they be being generated as part of the build? I don't see anything in the csproj files to do so.<br /><br />Thanks,<br /> DamianDamianhttps://www.blogger.com/profile/03275214864891955875noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-33883057433087270982010-05-31T08:20:53.822-07:002010-05-31T08:20:53.822-07:00Anonymous:
http://developer.android.com/reference...Anonymous: <br />http://developer.android.com/reference/android/widget/TextView.html#setText(java.lang.CharSequence)<br /><br />You can't have implicit operators on interface types. It takes a charsequence parameter. Not java.Lang.String.<br /><br />But the operator is implemented and would work if the parameter were java.Lang.string.Koushhttps://www.blogger.com/profile/11049460148325973407noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-74469669489913181982010-05-31T00:45:33.533-07:002010-05-31T00:45:33.533-07:00public static implicit operator java.lang.String(S...public static implicit operator java.lang.String(System.String m)<br />{<br /> return new java.lang.String(m);<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-52940322965294476492010-05-27T07:41:48.769-07:002010-05-27T07:41:48.769-07:00This comment has been removed by the author.chadhttps://www.blogger.com/profile/06453929591797199017noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-28766622542724190442010-05-24T05:30:13.901-07:002010-05-24T05:30:13.901-07:00Nice work!Nice work!Morganhttps://www.blogger.com/profile/10530834219569757336noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-92155995244983200292010-05-20T14:22:25.645-07:002010-05-20T14:22:25.645-07:00Does Mono for android allow stuff from .NET 3.5 or...Does Mono for android allow stuff from .NET 3.5 or are we limited to 1.1 for now?robert101https://www.blogger.com/profile/04808494049194483842noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-4628257316771901212010-05-18T05:00:15.852-07:002010-05-18T05:00:15.852-07:00This is great news! I've been waiting for a w...This is great news! I've been waiting for a way to start .NET coding on my new Incredible. I can understand your priorities going to your non-free products, but please keep up the good work on Mono!Scott R. Frosthttps://www.blogger.com/profile/08053175178495163307noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-70910910959795661782010-05-18T01:10:53.254-07:002010-05-18T01:10:53.254-07:00Great work! Thanks for being bored every once in a...Great work! Thanks for being bored every once in a while ;-)Unknownhttps://www.blogger.com/profile/05424531161298259648noreply@blogger.comtag:blogger.com,1999:blog-8001170587821659759.post-9240497784798689432010-05-17T19:24:23.484-07:002010-05-17T19:24:23.484-07:00Awesome! So jni4net is going to be cross-platform ...Awesome! So jni4net is going to be cross-platform now? :)Anonymoushttps://www.blogger.com/profile/11590327362007753457noreply@blogger.com