[mono-android] Newbie - Retrieve info from ListActivity

2012-06-25 Thread Pattt
Hi, I'm a mono newbie, so please excuse if my question is trivial. I do have an activity A where a button opens a ListActivity B (kind of dialog box) When user click on the list, I can retrieve the selected item, I then close B with this.finish, this displays back A The question is, how do I re

[mono-android] 'this' is null / null reference exception

2012-06-25 Thread keith
Hi I have been getting random null reference exceptions in my app when running on lower end devices (galaxy ace in this case), but not on a desire s or emulators. They mostly seem to be in and around my data access to sqlite (using sqlite-net) although I haven't been able to pin point them to any

Re: [mono-android] Newbie - Retrieve info from ListActivity

2012-06-25 Thread Craig Dunn
I think you want StartActivityForResult, SetResult and OnActivityResult I know I have an example of that somewhere, but I can't find it right now. In the meantime check this SO post http://stackoverflow.com/questions/4064126/android-startactivityforresult-and-finish-with-video It's not a complet

Re: [mono-android] 'this' is null / null reference exception

2012-06-25 Thread Matthew Leibowitz
Hi, What may be the problem is that Android is destroying you singleton class. Android does not ensure that static classes/members will keep their values. On lower end devices, the garbage collector is obviously working hard to keep memory usage at a minimum. If you wish to do something like this

Re: [mono-android] Designer Display Bugs?

2012-06-25 Thread Wally McClure
Atsushi, Thanks. That is exactly what I am seeing as well. I always like to ask the question fo whether or not anyone else is seeing this or not before I post a bug. Wally > Date: Mon, 25 Jun 2012 12:02:36 +0900 > From: atsushi...@veritas-vos-liberabit.com > To: monodroid@lists.ximian.com > C

[mono-android] Check for internet connection fails on Vodafone 858

2012-06-25 Thread Petr Slováček
Hello everyone, I'm using this piece of code to check if internet connection is available: ConnectivityManager conMgr = (ConnectivityManager)context.GetSystemService (Context.ConnectivityService); bool output = conMgr.ActiveNetworkInfo != null && conMgr.ActiveNetworkInfo.

Re: [mono-android] 'this' is null / null reference exception

2012-06-25 Thread Keith Raven
Hi Matthew, Thanks for you quick response. Regardless of the following I like your suggestion as it seems like a good safe way to store global static type variables. I'm not sure in my case this is going to solve the issue (although hopefully I'm wrong). The reason being (apologies for not p

Re: [mono-android] Check for internet connection fails on Vodafone 858

2012-06-25 Thread Petr Slováček
Well I answer it myself... :-) This one works on Vodafone 858 also: ConnectivityManager conMgr = (ConnectivityManager)context.GetSystemService (Context.ConnectivityService); return conMgr.ActiveNetworkInfo != null && conMgr.ActiveNetworkInfo.IsAvailable && conMgr

[mono-android] How to obtain crash data from android application

2012-06-25 Thread PedroC
Hello I'm trying to implement 'UncaughtExceptionHandler' for Monodroid as seen in the following link: http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application but with no success. I have tried to code as you see next but with no success and can't find anywa

Re: [mono-android] 'this' is null / null reference exception

2012-06-25 Thread Keith Raven
Hi Matthew Just to update that I have tested out your suggestion but sadly without success (although I can see how it could solve a number of issues like this). Any other suggestions welcome…. Just to add I have had this issue using mono for android 4.1.2 - 4.2.3 . thanks Keith Keith Raven

Re: [mono-android] ActionBarSherlock

2012-06-25 Thread craig
Thanks for the reply Atsushi. Keep up the good work. What do you mean by "continue with missing Java types" approach. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ActionBarSherlock-tp5710482p5710515.html Sent from the Mono for Android mailing list archive at

Re: [mono-android] ActionBarSherlock

2012-06-25 Thread James Montemagno
Both Tomasz and I have been working on an ActionBar port: His original: https://github.com/Cheesebaron/MonoDroid.ActionBar My fork https://github.com/jamesmontemagno/MonoDroid.ActionBar -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com

[mono-android] transforming a property in a java library project

2012-06-25 Thread Wally McClure
I have created a class called operations in .java file in eclipse. Everything compiles as intended in Eclipse. I want to then import my jar file into a java binding project in MfA 4.2. I have INTENTIONALLY created a property in java that will result in a conflict with an initializer in C#

Re: [mono-android] transforming a property in a java library project

2012-06-25 Thread Wally McClure
As a followup to this, I am getting a bunch of generator.exe errors that look like this:-- Build started: Project: BindingLibrary, Configuration: Debug Any CPU -- C:\Program Files (x86)\MSBuild\Novell\Xamarin.Android.Bindings.targets(197,5): error MSB6006: "generator.exe" exited with co

[mono-android] Implementing 'UncaughtExceptionHandler'

2012-06-25 Thread PedroC
Hello I'm trying to implement 'UncaughtExceptionHandler' for Monodroid as seen in the following link: http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application but with no success. I have tried to code as you see next but with no success and can't find an

Re: [mono-android] transforming a property in a java library project

2012-06-25 Thread Wally McClure
To follow up on this some more:I just remembered that Java has the getX and setX as the common property accessors. Not being a java developer, I missed that. I have the following code in my .java file: private int _val; public int getValue() {

[mono-android] recommendations for test device

2012-06-25 Thread Jason Awbrey
Any recommendations for an inexpensive Android device to use for testing with M4A? My focus so far has been on iOS/MT, so I'm very unfamiliar with the Android landscape and choice of devices. Alternately, are there any particular devices you wouldn't touch if they were given away for free, wrappe

Re: [mono-android] recommendations for test device

2012-06-25 Thread Steve Maier
What some people that I know have done is to get a monthly paid phone that is an android and then just never activate it and just use it on the wifi networks. I think Cricket has them, or virgin mobile. steve Sent from my Windows 8 PC *From:* Jas

Re: [mono-android] transforming a property in a java library project

2012-06-25 Thread Miljenko Cvjetko
Hi Wally On 2012.06.25 22:23, Wally McClure wrote: As a followup to this, I am getting a bunch of generator.exe errors that look like this: -- Build started: Project: BindingLibrary, Configuration: Debug Any CPU -- C:\Program Files (x86)\MSBuild\Novell\Xamarin.Android.Bindings.target

Re: [mono-android] recommendations for test device

2012-06-25 Thread Miljenko Cvjetko
Hi I'm being very nice to my wife... to get: http://www.buyincoins.com/search--tornado1.html On 2012.06.26 03:46, Jason Awbrey wrote: Any recommendations for an inexpensive Android device to use for testing with M4A? My focus so far has been on iOS/MT, so I'm very unfamiliar with the An

Re: [mono-android] recommendations for test device

2012-06-25 Thread Miljenko Cvjetko
Hi again direct links: http://www.buyincoins.com/details/7-ainol-novo-7-tornados-android-4-0-arm-cortex-a9-1ghz-tablet-pc-8gb-1gb-ram-product-15970.html cheers mel On 2012.06.26 03:46, Jason Awbrey wrote: Any recommendations for an inexpensive Android device to use for testing with M4A? My