[mono-android] Mono for Android 4 - Constructor injection causes packaging failure.

2011-12-07 Thread SpiritMachine
Hi everyone, I had a functional application working fine, using TinyIoC for DI. In particular one of my classes looks like this: public class ProcessLogin : AsyncCommand { private IDataService _dataService; private Context _context; private ProgressDialog _progressDia

[mono-android] MapView exception

2011-12-07 Thread laurar81
I work with mapsdemo example. This is the mapview.xml http://schemas.android.com/apk/res/android"; android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent"> In OnCreate find the mapview1 but the cast MapView is invalid exception: MapView m

[mono-android] output library file for general Android app development use

2011-12-07 Thread lynnlu
I'm not too familiar with android programming and I've been reading documentation&trying out things with monodroid for 3 days (and still am not getting anywhere) so I'll really appreciate if I can get any help from here. Thanks. Basically my problem is, I have quite a large amount of source code w

Re: [mono-android] sqlite

2011-12-07 Thread Wally McClure
To follow up on this, the code works on an Android 2.3 device and an Android 3.2 tablet. It fails in an Android 2.3 and 4.0 simulator. Wally From: theevilprogram...@hotmail.com To: monodroid@lists.ximian.com Date: Wed, 7 Dec 2011 14:50:55 -0500 Subject: Re: [mono-android] sqlite This is

[mono-android] (no subject)

2011-12-07 Thread Wally McClure
I'm getting the following warning when I have some fragments defined in a layout. My guess is that this is an issue with the verification of the .axml file as oppossed to any really issue since this code does work in my app. Warning1The element 'LinearLayout' has invalid child element

Re: [mono-android] Non-apk applications (and mixed assemblies)

2011-12-07 Thread Daniele Salvatore Albano
Understood, thank you! 2011/12/7 Jonathan Pryor : > On Dec 7, 2011, at 5:35 AM, Daniele Salvatore Albano wrote: >> Understood, and if i compile it normally with mono can i run it on mono for >> android? > > No, if you use mcs/gmcs/dmcs you'll be referencing the desktop assembly set, > which are

Re: [mono-android] Debugging and MS Visual Studio has stopped working ( MfA ver 1.2)

2011-12-07 Thread DocM
Thanks Jonathan. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Debugging-and-MS-Visual-Studio-has-stopped-working-MfA-ver-1-2-tp5055450p5057011.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] Garbage Collection performance can be very poor (new Mono for Android)

2011-12-07 Thread warren burch
Also this was a Droid2 device. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Garbage-Collection-performance-can-be-very-poor-new-Mono-for-Android-tp5055044p5057007.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Garbage Collection performance can be very poor (new Mono for Android)

2011-12-07 Thread warren burch
Hi Jon, per the title, this is the new drop of Mono (ie. this weeks - 4.0) Cheers Warren -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Garbage-Collection-performance-can-be-very-poor-new-Mono-for-Android-tp5055044p5057004.html Sent from the Mono for Android mailin

[mono-android] DatePicker events

2011-12-07 Thread Paul F. Johnson
Hi, I know TimePicker has it's own events, but there doesn't seem to be anything similar for DatePicker. Is this just some omission or is it not in the Java layer? If it's not implemented, other than a listener, is there another way to pick up the event and then read the new date? Click seems too

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Olaf Kammerman
Jonathan Pryor-2 wrote > > Note "may" above. There are some known "forward incompatibilities" in > Android (e.g. methods moving from MotionEvent to InputEvent), and if you > use those types/members, things will break on downlevel platforms. If it > works, though, it should work. :-) > Jon, Tha

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Olaf Kammerman
Wally McClure wrote > > Yes, I get what you are talking about.I read it initially as "Is there > Fragment support?" > No problem Wally, your help is much appreciated :) -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Using-the-New-Compatibility-Packages-and-

Re: [mono-android] sqlite

2011-12-07 Thread Wally McClure
This is in the Android 4.0 simulator. yeah, I know its "the simulator" and all the hassle that goes with it. I'll check the SanityTests sample. Wally > From: j...@xamarin.com > Date: Wed, 7 Dec 2011 14:24:09 -0500 > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] sqlite > > On

Re: [mono-android] sqlite

2011-12-07 Thread Jonathan Pryor
On Dec 6, 2011, at 11:23 PM, Wally McClure wrote: > • db is valued: > /data/data/internalnetworkdata.internalnetworkdata/files/UserData.db3. > internalnetworkdata is the name of my application. > • free space: 391M There goes my "out of disk space" theory. What device is this? Do y

Re: [mono-android] Garbage Collection performance can be very poor (new Mono for Android)

2011-12-07 Thread Jonathan Pryor
On Dec 7, 2011, at 4:54 AM, warren burch wrote: > I am seeing very poor garbage collection performance, even for quite small > memory sets. Is this with Mono for Android 4.0 or 1.2? Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com

Re: [mono-android] SocketError.TimedOut

2011-12-07 Thread Jonathan Pryor
On Nov 25, 2011, at 8:23 AM, tsukrov wrote: > I'm receiving often a *SocketError.TimedOut* from *ReceiveAsync* in a > multi-threaded Mono App on Android 3.2. > Android 2.1 & Android 2.3 works fine. In re-reading this, I'm not sure I understand. Are you saying that when you build against TargetFra

Re: [mono-android] Non-apk applications (and mixed assemblies)

2011-12-07 Thread Jonathan Pryor
On Dec 7, 2011, at 5:35 AM, Daniele Salvatore Albano wrote: > Understood, and if i compile it normally with mono can i run it on mono for > android? No, if you use mcs/gmcs/dmcs you'll be referencing the desktop assembly set, which are incompatible with the Mono for Android profile. (For example

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Jonathan Pryor
On Dec 7, 2011, at 12:12 PM, Olaf Kammerman wrote: > The thing is that I want to develop a generic app that I can deploy to both > phone (Android 2.x) and tablet (Honeycomb) and that by making use of the > Fragments API the UI changes depending on the used device (phone/tablet). IIRC the fragments

[mono-android] web reference - call async

2011-12-07 Thread Wally McClure
I've got a web reference in my mfa project. It works perfectly when I call the web reference synchronously. When I try to call the web reference async, I am getting an error when I get the result. The web reference is to a wcf service. The code is very simple, a few parameters are passed in

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Wally McClure
Olaf, Yes, I get what you are talking about.I read it initially as "Is there Fragment support?" Wally > Date: Wed, 7 Dec 2011 09:12:15 -0800 > From: olaf.kammer...@altran.nl > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] Using the New Compatibility Packages and > TabActivi

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Olaf Kammerman
Wally, The thing is that I want to develop a generic app that I can deploy to both phone (Android 2.x) and tablet (Honeycomb) and that by making use of the Fragments API the UI changes depending on the used device (phone/tablet). But from what I understand this is not possible at this time. So I'm

Re: [mono-android] Calling Static JNI methods?

2011-12-07 Thread Josh Handel
Sweet thanks (though the string value actually has to be a Java.Lang.String or it won't compile) For those interested, these are the two calls you need to track sessions in flurry (for testing, they have been dumped into where I am supposed to "call" them from, which is onStart and onStop of an

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Wally McClure
Olaf, You can use fragments if you target Android 3 honeycomb and later. I've written some stuff there and it works. As I understand it, the compat libraries are an issue due to the lack of 3rd party library support. Wally > Date: Wed, 7 Dec 2011 10:14:05 -0600 > From: mon...@jpobst.com > T

Re: [mono-android] Calling Static JNI methods?

2011-12-07 Thread Jonathan Pryor
On Dec 7, 2011, at 11:16 AM, Josh Handel wrote: > I am working on trying to wrap the Flurry API… Flurry uses static methods for > all of its calls.. I haven’t seen/figured out how to call static methods thru > JNI JNI differentiates between instance and static members, so to lookup a static met

[mono-android] Calling Static JNI methods?

2011-12-07 Thread Josh Handel
I am working on trying to wrap the Flurry API... Flurry uses static methods for all of its calls.. I haven't seen/figured out how to call static methods thru JNI or (better) use the new Register stuff to wrap the Flurry class (specificly its static methods). Any assistance would be great.. For

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Jonathan Pobst
No, the compatibility library is not bound in this release. It will be included in a future release. Jonathan On 12/7/2011 9:59 AM, Olaf Kammerman wrote: > Hi Jon, > > Since Mono For Android 4.0 was released this week, is it now possible to > make use of the Fragments API in .NET and target An

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-12-07 Thread Olaf Kammerman
Hi Jon, Since Mono For Android 4.0 was released this week, is it now possible to make use of the Fragments API in .NET and target Android 2.x by including the Android compatibility library? Olaf -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Using-the-New-Compati

Re: [mono-android] cant make package when referencing a .JAR lib.

2011-12-07 Thread Jonathan Pobst
Try changing your .jar file's build action to AndroidJavaLibrary. Adding the new action was supposed to be backwards compatible, AndroidJavaSource is supposed to work for either .java or .jar, but maybe it got busted. If that doesn't help, you can look at the command line VS or MD is using to

Re: [mono-android] Debugging and MS Visual Studio has stopped working ( MfA ver 1.2)

2011-12-07 Thread Jonathan Pobst
Hello, I would try upgrading to the new MonoDroid 4.0: http://android.xamarin.com/Releases/Mono_for_Android_4/Release_4.0.0 There are lots of debugging bug fixes and speed improvements since 1.2. Hope this helps! Jonathan On 12/7/2011 6:31 AM, DocM wrote: > I'm using VS 2010 and Monodorid ver

Re: [mono-android] Architecture question

2011-12-07 Thread Josh Handel
Never mind.. The updated architecture page makes it clear. http://docs.xamarin.com/android/advanced_topics/architecture From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Josh Handel Sent: Wednesday, December 07, 2011 8:47 AM To: Discussions relat

[mono-android] Architecture question

2011-12-07 Thread Josh Handel
I have a quick architecture question about Mono for Android.. Is Mono for Android a series of Java libraries, or is Mono for Android Android native code? I ask because I am trying to understand the performance implications. For instance when a Mono for Android app is running are there two gar

Re: [mono-android] found solution to not seeing device

2011-12-07 Thread Andreia Gaita
Thanks Wally! One more quirk to add to the list :) andreia gaita Sent from my iPad On Dec 6, 2011, at 18:31, Wally McClure wrote: A while back I posted in the list asking for help trying to figure out why after I updated to the android r15 sdk, I couldn't see my htc evo reliably. Just this

Re: [mono-android] Packaging problems with 4.0

2011-12-07 Thread Andreia Gaita
Hi, Are you starting the emulator from MD/VS, or from the android avd manager? andreia gaita Sent from my iPad On Dec 7, 2011, at 8:49, Paul Johnson wrote: > Hi, > > I decided to check out the new faster start up on the emulator with > 4.0 using the spinner example on the website only for it

Re: [mono-android] 4.0 Upgrade Issues MonoDevelop 2.8.4.1 / MacOS X Snow Leopard

2011-12-07 Thread Andreia Gaita
Hi, Even though 2.8.4.2 fixes the issue, there might be another problem with your package, since Fast Deployment should never be active in release mode (and therefore you should never have hit that issue). Look inside (unzip) your release package and make sure all assemblies are included in it. I

Re: [mono-android] cant make package when referencing a .JAR lib.

2011-12-07 Thread Piotr Kryger
I have similar problem. I use acra-4.2.3.jar and java class which imports some stuff from this jar. Build action for jar as well as for java class are AndroidJavaSource. When I try to deploy I see following lines: > (SignAndroidPackage target) (1) -> > (_CompileJava target) -> MyJavaClass.java(4

Re: [mono-android] Android InputType constants - namespace?

2011-12-07 Thread DocM
Thanks Atsushi - much appreciated - I will try that. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Android-InputType-constants-namespace-tp5054578p5055452.html Sent from the Mono for Android mailing list archive at Nabble.com.

[mono-android] Debugging and MS Visual Studio has stopped working ( MfA ver 1.2)

2011-12-07 Thread DocM
I'm using VS 2010 and Monodorid ver 1.2. Sometimes I get an error on deployment which throws up a VS 2010 windows saying *MS Visual Studio has stopped working* http://mono-for-android.1047100.n5.nabble.com/file/n5055450/VSErr.png If I close the dialog VS 2010 closes but if I ignore it I can co

Re: [mono-android] unable to use existing keystore after 4.0 update

2011-12-07 Thread John Moore
I tried again to manually sign the apk and was successfully able to upload it to the market, last night i was signing an apk that monodevelop had already signed (probably signed with the debug certificate) that i got from selecting Project -> Create Android Package. On Wed, Dec 7, 2011 at 3:28 AM,

Re: [mono-android] Non-apk applications (and mixed assemblies)

2011-12-07 Thread Daniele Salvatore Albano
2011/12/7 Jonathan Pryor : > Maybe? You could certainly compile your app against the Mono for Android BCL > assemblies (mscorlib.dll, etc.) using CSC.EXE (.NET) or > /Developer/MonoAndroid/usr/bin/smcs (OS X) in order to get a .exe out of it. > As for running on the device, you might be able to

[mono-android] Garbage Collection performance can be very poor (new Mono for Android)

2011-12-07 Thread warren burch
Hello, I am seeing very poor garbage collection performance, even for quite small memory sets. here is a log from my game, I am seeing 35seconds+ for collection of less than a Meg. (These are not extraordinarily small or large objects, just some bitmaps/fonts maybe a sound) Also note the case whe

Re: [mono-android] 4.0 Upgrade Issues MonoDevelop 2.8.4.1 / MacOS X Snow Leopard

2011-12-07 Thread Steven Pack
Back in business. MonoDevelop 2.8.4.2 fixes the issue. http://www.mail-archive.com/mono-list@lists.ximian.com/msg35302.html Startup time has definitely improved. Getting 3-4 secs now on my 2 year old HTC Legend running Android 2.2 (was 5-10 secs previously). > > >Message: 8 >Date: Tue, 6 Dec 20

[mono-android] Packaging problems with 4.0

2011-12-07 Thread Paul Johnson
Hi, I decided to check out the new faster start up on the emulator with 4.0 using the spinner example on the website only for it to fail saying there wasn't enough space on the device. Is this just down to the larger runtime and is there any way of freeing up space on the emulator? Thanks Paul _