[Monodroid] Monodroid Digest, Vol 7, Issue 127
Deryk Robosson
drobosson at gmail.com
Tue Mar 1 00:41:52 EST 2011
>From within Visual Studio Tools menu->Options->MonoDroid
Set the Android SDK Location.
On Tue, Mar 1, 2011 at 1:32 PM, NIkhilesh kumar <nikhulion at yahoo.com> wrote:
> i have problem in visual studio 2010. i have installed monoDroid and
> Android SDk for Visual studio 2010. but when i debug, it say "could not
> found Anroid sdk" what vould be the reason.
>
> I don't know whether i'm send this error in correct channel. If not please
> guide me.
>
> Regards
> Nikhilesh T Sundaran
> ------------------------------
> *From:* "monodroid-request at lists.ximian.com" <
> monodroid-request at lists.ximian.com>
> *To:* monodroid at lists.ximian.com
> *Sent:* Tuesday, 1 March 2011 10:28 AM
> *Subject:* Monodroid Digest, Vol 7, Issue 127
>
> Send Monodroid mailing list submissions to
> monodroid at lists.ximian.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.ximian.com/mailman/listinfo/monodroid
> or, via email, send a message with subject or body 'help' to
> monodroid-request at lists.ximian.com
>
> You can reach the person managing the list at
> monodroid-owner at lists.ximian.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Monodroid digest..."
>
>
> Today's Topics:
>
> 1. Re: FW: Monodroid on Mac (Chris Erickson)
> 2. Re: FW: Monodroid on Mac (Jonathan Pryor)
> 3. Re: Build stopped working (Chris Erickson)
> 4. Re: Build stopped working (Jonathan Pryor)
> 5. How to load Assets outside of an Activity? (Amir Waldman)
> 6. View onClick attribute support (Adam Tybor)
> 7. Re: android 3.0 / honeycomb (justin coon)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 28 Feb 2011 16:12:23 -0500
> From: Chris Erickson <chris at cartopac.com>
> Subject: Re: [Monodroid] FW: Monodroid on Mac
> To: "monodroid at lists.ximian.com" <monodroid at lists.ximian.com>
> Message-ID: <C9915DBD.161F1%cerickson at cartopac.com>
> Content-Type: text/plain; charset="us-ascii"
>
> How do I mark it novell-only?
>
>
>
>
> On 2/28/11 1:55 PM, "Jonathan Pryor" <jpryor at novell.com> wrote:
>
> >On Feb 28, 2011, at 3:50 PM, Chris Erickson wrote:
> >> Yeah,
> >> The build succeeds, then gives the dialog...
> >
> >Please attach the project to bugzilla, and mark as novell-only if
> >necessary.
> >
> >Thanks!
> > - Jon
> >
> >_______________________________________________
> >Monodroid mailing list
> >Monodroid at lists.ximian.com
> >
> >UNSUBSCRIBE INFORMATION:
> >http://lists.ximian.com/mailman/listinfo/monodroid
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 28 Feb 2011 16:16:58 -0500
> From: Jonathan Pryor <jpryor at novell.com>
> Subject: Re: [Monodroid] FW: Monodroid on Mac
> To: monodroid at lists.ximian.com
> Message-ID: <AE5442CD-9A89-4CDA-9EB8-DCE320B6E532 at novell.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Feb 28, 2011, at 4:12 PM, Chris Erickson wrote:
> > How do I mark it novell-only?
>
> In the Bug Details section is a checkbox: "Initial Description is Private."
> Check it.
>
> At the bottom of the page is another checkbox: "This bug is only open to
> Novell employees and contractors." Check it.
>
> - Jon
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 28 Feb 2011 16:26:54 -0500
> From: Chris Erickson <chris at cartopac.com>
> Subject: Re: [Monodroid] Build stopped working
> To: "monodroid at lists.ximian.com" <monodroid at lists.ximian.com>
> Message-ID: <C9916100.161F6%cerickson at cartopac.com>
> Content-Type: text/plain; charset="us-ascii"
>
> So, it works in debug (YAY!!!), but I'd like to try it release to see
> performance related items... I get this error in release:
>
>
> ------ Build started: Project: CartoPac.Trebuchet.Client.Services.Md,
> Configuration: Release Any CPU ------
> Build started 2/28/2011 2:24:27 PM.
> GenerateTargetFrameworkMonikerAttribute:
> Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
> output files are up-to-date with respect to the input files.
> CoreCompile:
> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig
> /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4
> /define:TRACE;MONODROID
> /reference:\\psf\Home\Documents\Projects\Trebuchet\svn\
> CartoPac.DataPipe.Md
> \bin\Release\CartoPac.DataPipe.Md.dll
> /reference:\\psf\Home\Documents\Projects\Trebuchet\svn\CartoPac.Md\bin\Rele
> ase\CartoPac.Md.dll
> /reference:\\psf\Home\Documents\Projects\Trebuchet\svn\CartoPac.Trebuchet.C
> lient.Md\bin\Release\CartoPac.Trebuchet.Client.Md.dll
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v2.2\Mono.Android.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\mscorlib.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Core.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Data.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Runtime.Serialization.
> dll" /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.ServiceModel.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Web.Services.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Xml.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Xml.Linq.dll"
> /debug:pdbonly /filealign:512 /optimize+
> /out:obj\Release\CartoPac.Trebuchet.Client.Services.Md.dll /target:library
> ..\CartoPac.Trebuchet.Client.Services.Mt\SoapDataPipeServiceClient.cs
> MdServiceFactory.cs Properties\AssemblyInfo.cs
> SoapGeoProcessServiceClient.cs "Web References\GeoProcess\Reference.cs"
> "Web References\HpDataPipe\Reference.cs"
> "C:\Users\Administrator\AppData\Local\Temp\MonoDroid,Version=v2.2.AssemblyA
> ttributes.cs"
> GenerateSerializationAssemblies:
> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0
> Tools\sgen.exe
> /assembly:\\psf\Home\Documents\Projects\Trebuchet\svn\
> CartoPac.Trebuchet.Cl
> ient.Services.Md\obj\Release\CartoPac.Trebuchet.Client.Services.Md.dll
> /proxytypes
> /reference:\\psf\Home\Documents\Projects\Trebuchet\svn\
> CartoPac.DataPipe.Md
> \bin\Release\CartoPac.DataPipe.Md.dll
> /reference:\\psf\Home\Documents\Projects\Trebuchet\svn\CartoPac.Md\bin\Rele
> ase\CartoPac.Md.dll
> /reference:\\psf\Home\Documents\Projects\Trebuchet\svn\CartoPac.Trebuchet.C
> lient.Md\bin\Release\CartoPac.Trebuchet.Client.Md.dll
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v2.2\Mono.Android.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\mscorlib.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Core.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Data.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Runtime.Serialization.
> dll" /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.ServiceModel.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Web.Services.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Xml.dll"
> /reference:"C:\Program Files (x86)\Reference
> Assemblies\Microsoft\Framework\MonoDroid\v1.0\System.Xml.Linq.dll"
> SGEN : error : Could not load file or assembly
> 'file://\\psf\Home\Documents\Projects\Trebuchet\svn\CartoPac.DataPipe.Md
> \bi
> n\Release\CartoPac.DataPipe.Md.dll' or one of its dependencies. Operation
> is not supported. (Exception from HRESULT: 0x80131515)
> - An attempt was made to load an assembly from a network location
> which would have caused the assembly to be sandboxed in previous versions
> of the .NET Framework. This release of the .NET Framework does not enable
> CAS policy by default, so this load may be dangerous. If this load is not
> intended to sandbox the assembly, please enable the loadFromRemoteSources
> switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more
> information.
>
> Build FAILED.
>
>
>
>
> On 2/28/11 1:57 PM, "Chris Erickson" <chris at cartopac.com> wrote:
>
> >I just removed it from the visual studio references list...?
> >
> >
> >On 2/28/11 1:56 PM, "Jonathan Pryor" <jpryor at novell.com> wrote:
> >
> >>On Feb 28, 2011, at 3:49 PM, Chris Erickson wrote:
> >>> I looked at the references for my DLL (it generated the code, not the
> >>> assemblies) and there was a reference to system.enterpriseservices
> >>> (v4.0.0.0) that was automatically added for me.
> >>>
> >>> Thanks for the help, should I do anything to get it in your defect
> >>>system
> >>> that a bad reference like that produces a misleading message?
> >>
> >>Please file a bug.
> >>
> >>Now how do you get it to not add the v4.0.0.0 reference?
> >>
> >> - Jon
> >>
> >>_______________________________________________
> >>Monodroid mailing list
> >>Monodroid at lists.ximian.com
> >>
> >>UNSUBSCRIBE INFORMATION:
> >>http://lists.ximian.com/mailman/listinfo/monodroid
> >
> >_______________________________________________
> >Monodroid mailing list
> >Monodroid at lists.ximian.com
> >
> >UNSUBSCRIBE INFORMATION:
> >http://lists.ximian.com/mailman/listinfo/monodroid
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 28 Feb 2011 16:38:31 -0500
> From: Jonathan Pryor <jpryor at novell.com>
> Subject: Re: [Monodroid] Build stopped working
> To: monodroid at lists.ximian.com
> Message-ID: <AFC3FAFE-B85E-4326-ADCF-98B2FC359B92 at novell.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Feb 28, 2011, at 4:26 PM, Chris Erickson wrote:
> > So, it works in debug (YAY!!!), but I'd like to try it release to see
> > performance related items... I get this error in release:
> ..
> > GenerateSerializationAssemblies:
> > C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX
> 4.0Tools\sgen.exe
> ..
> >
> > SGEN : error : Could not load file or assembly
> > 'file://\\psf\Home\Documents\Projects\Trebuchet\svn\CartoPac.DataPipe.Md\bin\Release\CartoPac.DataPipe.Md.dll'
> or one of its dependencies. Operation is not supported. (Exception from
> HRESULT: 0x80131515)
> > - An attempt was made to load an assembly from a network location
> > which would have caused the assembly to be sandboxed in previous versions
> > of the .NET Framework. This release of the .NET Framework does not enable
> > CAS policy by default, so this load may be dangerous. If this load is not
> > intended to sandbox the assembly, please enable the loadFromRemoteSources
> > switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more
> > information.
>
> I'd say that the error is with SGEN, and I have no idea what that tool is,
> why it's being invoked, or how to work around it. :-(
>
> Looks like it uses Reflection, and what's killing you is the use of a
> network share. I'd suggest trying to build from a local drive.
>
> - Jon
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 1 Mar 2011 01:40:44 +0200
> From: "Amir Waldman" <amirw2k at gmail.com>
> Subject: [Monodroid] How to load Assets outside of an Activity?
> To: <monodroid at lists.ximian.com>
> Message-ID: <057401cbd7a0$ec92bd50$c5b837f0$@com>
> Content-Type: text/plain; charset="us-ascii"
>
> I'm trying to load assets outside of an Activity.
>
> This is what I have:
>
>
> new Android.App.Activity().Assets.Open(...)
>
>
> Seems like you can instantiate AssetsManager like this, but it requires a
> pointer:
>
>
> new Android.Content.Res.AssetManager(???).Open(...)
>
>
> Is there a simpler, less memory consuming for this action? Why is it
> limited
> to Activity anyway?
>
>
> Thanks,
> Amir
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 28 Feb 2011 22:46:49 -0600
> From: Adam Tybor <adam.tybor at gmail.com>
> Subject: [Monodroid] View onClick attribute support
> To: monodroid at lists.ximian.com
> Message-ID:
> <AANLkTimUU=UcdwyfNmzzjNy-qmEToogZ7oRO9OzZjZgi at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Does MonoDroid support the android:onClick attribute for views? Running a
> test in preview 13 yields me this stack trace
>
> E/AndroidRuntime( 480): java.lang.IllegalStateException: Could not find a
> method Login_OnClick(View) in the activity class android.LoginActivity
> for onClick handler on view class android.widget.Button with id 'Login'
> E/AndroidRuntime( 480): at
> android.view.View$1.onClick(View.java:2131)
> E/AndroidRuntime( 480): at
> android.view.View.performClick(View.java:2485)
> E/AndroidRuntime( 480): at
> android.view.View$PerformClick.run(View.java:9080)
> E/AndroidRuntime( 480): at
> android.os.Handler.handleCallback(Handler.java:587)
> E/AndroidRuntime( 480): at
> android.os.Handler.dispatchMessage(Handler.java:92)
> E/AndroidRuntime( 480): at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime( 480): at
> android.app.ActivityThread.main(ActivityThread.java:3647)
> E/AndroidRuntime( 480): at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/AndroidRuntime( 480): at
> java.lang.reflect.Method.invoke(Method.java:507)
> E/AndroidRuntime( 480): at
>
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
> E/AndroidRuntime( 480): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> E/AndroidRuntime( 480): at dalvik.system.NativeStart.main(Native
> Method)
> E/AndroidRuntime( 480): Caused by: java.lang.NoSuchMethodException:
> Login_OnClick
> E/AndroidRuntime( 480): at
> java.lang.ClassCache.findMethodByName(ClassCache.java:247)
> E/AndroidRuntime( 480): at
> java.lang.Class.getMethod(Class.java:962)
> E/AndroidRuntime( 480): at
> android.view.View$1.onClick(View.java:2124)
> E/AndroidRuntime( 480): ... 11 more
> W/ActivityManager( 63): Force finishing activity
> Android/android.LoginActivity
>
> Adam
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.ximian.com/mailman/private/monodroid/attachments/20110228/962efecf/attachment-0001.html
>
> ------------------------------
>
> Message: 7
> Date: Mon, 28 Feb 2011 20:58:02 -0800 (PST)
> From: justin coon <jmichaelcoon at yahoo.com>
> Subject: Re: [Monodroid] android 3.0 / honeycomb
> To: "monodroid at lists.ximian.com" <monodroid at lists.ximian.com>
> Message-ID: <183387.28830.qm at web65902.mail.ac4.yahoo.com>
> Content-Type: text/plain; charset="us-ascii"
>
>
>
> Thanks for the detailed explanation Jon. Come on Google lets go!
>
>
> From: Jonathan Pryor <jpryor at novell.com>
> To: justin coon <jmichaelcoon at yahoo.com>; monodroid at lists.ximian.com
> Cc:
> Sent: Monday, February 28, 2011 12:36 PM
> Subject: Re: [Monodroid] android 3.0 / honeycomb
>
> On Feb 28, 2011, at 1:04 PM, justin coon wrote:
> > Atsushi I did see that, however it sounds like MD is waiting on something
> from Google, but I thought Google has released the final SDK for
> Honeycomb/3.0....is that incorrect?
>
> They have, but they haven't updated everything. :-)
>
> So, background: Mono.Android.dll is created via a code generator which
> parses an XML description of the Java API to bind. Google has previous
> versions of the XML description at [0], but they have not provided XML
> descriptions for API level 10 (Android 2.3.3) or API level 11 (Android 3.0).
> Without these files, we can't generate an updated Mono.Android.dll, and the
> Google SDK doesn't include them.
>
> This is also the reason why MonoDroid 1.0 is only binding android.jar:
> because that's the only .jar file that we have an XML description for. Our
> ~first project after 1.0 will be to write a .jar-to-XML generator so that we
> can generate an XML description for 3rd party .jar files, thus allowing use
> of 3rd party .jars, and packaging/cleaning up the source generator for
> external use.
>
> - Jon
>
> [0]
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=api;hb=HEAD
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.ximian.com/mailman/private/monodroid/attachments/20110228/c3218077/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
> End of Monodroid Digest, Vol 7, Issue 127
> *****************************************
>
>
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110301/cd34f128/attachment-0001.html
More information about the Monodroid
mailing list