Re: [mono-android] AndroidManifest.xml not being updated with new Activity

2012-08-14 Thread devbuzz
Jon - as usual - you nailed it! Missing [Activity] decoration - I'm an idiot. You can add a case of beer to my tally. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/AndroidManifest-xml-not-being-updated-with-new-Activity-tp5711335p5711337.html Sent from the Mon

Re: [mono-android] AndroidManifest.xml not being updated with new Activity

2012-08-14 Thread Jonathan Pryor
On Aug 14, 2012, at 4:44 PM, devbuzz wrote: > When I add a new Activity to an existing project I'm suddenly getting > ActivityNotFoundExceptions. Does the new Activity have an [Activity] custom attribute? > I've traced this to the AndroidManifest.xml not being updated with new > Activities whe

[mono-android] AndroidManifest.xml not being updated with new Activity

2012-08-14 Thread devbuzz
When I add a new Activity to an existing project I'm suddenly getting ActivityNotFoundExceptions. I've traced this to the AndroidManifest.xml not being updated with new Activities when they are added. If I open the AndroidManifest.xml they seem to be added but are then deleted when I deploy? Any

Re: [mono-android] How to handle garbage collection?

2012-08-14 Thread craig
Thanks! Makes me feel much better. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-handle-garbage-collection-memory-leak-tp5711079p5711334.html Sent from the Mono for Android mailing list archive at Nabble.com. _

Re: [mono-android] JNI ERROR (app bug): local reference tableoverflow (max=512)

2012-08-14 Thread Jonathan Pryor
On Aug 14, 2012, at 2:06 PM, "Breyer, Christian" wrote: > Thanks for your answer. The lref option really helped. > > One thing causing a problem is to set the ReplyTo property in a message. The > Messenger lref never gets destroyed, even though the message is. > > Message oSe

Re: [mono-android] JNI ERROR (app bug): local reference tableoverflow (max=512)

2012-08-14 Thread Breyer, Christian
Thanks for your answer. The lref option really helped. One thing causing a problem is to set the ReplyTo property in a message. The Messenger lref never gets destroyed, even though the message is. Message oSendMessage = Message.Obtain(null, (int)eCommand);

[mono-android] ListView.ItemClick

2012-08-14 Thread Goncalo Oliveira
Hi there, I have a ListView with a custom adapter (derived from ArrayAdapter). I hook up the ItemClick list.ItemClick -= Inbox_ItemClick; Then I load up some items into the adapter inboxAdapter.Add( new Document() { ... } ); and in the end inboxAdapter.NotifyDataSetChanged(); Now the weird

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
No other thoughts? On 14 August 2012 17:00, Goncalo Oliveira wrote: > Because the content is dynamic and so is the property getter. > > > On 14 August 2012 16:18, Jonathan Pryor wrote: > >> On Aug 14, 2012, at 6:15 AM, Goncalo Oliveira wrote: >> > The thing is... this is kind of unusable. The

Re: [mono-android] How to add a precompiled, 3rd party dll library to a mono droid (or mono touch) project?

2012-08-14 Thread Jonathan Pryor
On Aug 14, 2012, at 9:15 AM, antoniolopes wrote: > We want to add http://opencv.willowgarage.com/wiki/ OpenCV features in Mono > for Android as we use them already in our app (using a wrapper of OpenCV to > java called https://code.google.com/p/javacv/ JavaCV - OpenCV is a c++ > library).

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
Because the content is dynamic and so is the property getter. On 14 August 2012 16:18, Jonathan Pryor wrote: > On Aug 14, 2012, at 6:15 AM, Goncalo Oliveira wrote: > > The thing is... this is kind of unusable. The whole reason I'm using > reflection is because I don't know which properties I mi

Re: [mono-android] Release version errors

2012-08-14 Thread Jonathan Pryor
On Aug 14, 2012, at 6:15 AM, Goncalo Oliveira wrote: > The thing is... this is kind of unusable. The whole reason I'm using > reflection is because I don't know which properties I might need. I don't understand this; why is Reflection preferable to using type checking? Why wouldn't you know whi

Re: [mono-android] JNI ERROR (app bug): local reference table overflow (max=512)

2012-08-14 Thread Jonathan Pryor
On Aug 14, 2012, at 4:09 AM, "Breyer, Christian" wrote: > On some devices with certain configuration (OS version/Mono version/target > API) the app runs for days. However, on some, I get the following exception > after one to several hours. > Am I missing a dispose? Could this be a bug within mo

[mono-android] How to add a precompiled, 3rd party dll library to a mono droid (or mono touch) project?

2012-08-14 Thread antoniolopes
Hello, Im pretty new to C# and Mono for Android/MonoTouch. We intend to use Mono to port an image-processing related app that we developed. We want to add http://opencv.willowgarage.com/wiki/ OpenCV features in Mono for Android as we use them already in our app (using a wrapper of OpenCV to jav

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
I managed to get around this using the falseflag. Something like this #pragma warning disable 0219, 0649 static bool falseflag = false; static SplashActivity() { if ( falseflag ) { var preserveSpinner = new Android.Widget.Spinner( And

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
I'm kind of lost here. I've found exactly what's failing and where. I have some code that's basically trying to do this: Type targetType = Target.GetType(); // type is Android.Widget.Spinner PropertyInfo getterProperty = targetType.GetProperty( getterPath ); In release getterProperty is returning

[mono-android] JNI ERROR (app bug): local reference table overflow (max=512)

2012-08-14 Thread Breyer, Christian
Hi, in our application a service and an activity communicate through the message-handler pattern (http://developer.android.com/reference/android/app/Service.html#RemoteM essengerServiceSample ) O