[mono-android] Accessing Embedded Files

2012-11-17 Thread Spencer
7;m in the process of writing a cross platform app (Android, IPhone/Pad, Win 7), so I'm trying to make the core code (business rules, error messages) as generic as possible. I'm also using the MonoCross framework on top of Android. Any ideas how I can read the files? Thanks in a

Re: [mono-android] parse facebook friend list in josn

2013-01-31 Thread Spencer
This will do what you want I think - public class JsonSerializer { private static readonly JsonSerializerSettings SerializationSettings = new JsonSerializerSettings { ContractResolver = new using Newtonsoft.Json.Serialization.LowercaseContractResolver() };

Re: [mono-android] parse facebook friend list in josn

2013-02-01 Thread Spencer
Try annotating the id fields in your C# class with [IgnoreDataMember]. Something like - [IgnoreDataMember] public int Id { get; set; } -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/parse-facebook-friend-list-in-josn-tp5712133p5712822.html Sent from the Mono f

Re: [mono-android] how to ouput chinese use Console.out.WriteLine()

2013-03-04 Thread Spencer
If you just want to display Chinese characters on the console use. System.Console.WriteLine(s); This works because c# treats all strings as UTF16. I think System.Console.Out.WriteLine(s) uses a Stream that probably utilises the default system encoding which in your case doesn't support Chines

[mono-android] ActionBarSherlock styling

2013-04-04 Thread Spencer
Hi I'm trying to restyle the default ActionBarSherlock theme and getting the dreaded "aapt.exe exited with code 1. (MSB6006)" error. I've isolated the problem to the following XML in my Themes.xml - It would seem that the compiler can't find the style TextAppearance.Sherlock.Widget.Action.Titl

Re: [mono-android] ActionBarSherlock styling

2013-04-05 Thread Spencer
Thanks Jon I've tried your suggestions with no luck. There is no particularly helpful information in the build log. The only error that is different from the aapt.exe error message is this - Done building target "_UpdateAndroidResgen" in project "SupepeUITest.csproj" -- FAILED -- View this m

Re: [mono-android] AutoCompleteTextView

2013-04-30 Thread Spencer
An ArrayAdapter is the easiest way to go unless you want to use a custom layout. All you need to do is convert your list into an array. ArrayAdapter myAdapter = new ArrayAdapter(context, Android.Resource.Layout.SimpleSpinnerItem, items.ToArray()); myAdapter.SetDropDownViewResource(Androi

Re: [mono-android] AutoCompleteTextView

2013-05-01 Thread Spencer
I guess you could also try using the Threshold property to set the number of characters that need to be input before the auto complete kicks in, in conjunction with a key listener to determine when the threshold is met, so you can call your webservice in a new thread. You might run into threadin

Re: [mono-android] AutoCompleteTextView (con't)

2013-05-19 Thread Spencer
Try calling ca.NotifyDataSetChanged() after you've reloaded your adapter from the service. The call to get the company contacts should run in a new thread to prevent UI thread from blocking. But the call to NotifyDataSetChanged needs to run on the UI thread, so you should use RunOnUiThread to mak

Re: [mono-android] wcf service call in monodroid application giving error

2013-10-21 Thread Spencer
Try 10.0.2.2 instead of localhost. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/wcf-service-call-in-monodroid-application-giving-error-tp5713586p5713587.html Sent from the Mono for Android mailing list archive at Nabble.com. __

[mono-android] monodroid codepage1252

2014-06-11 Thread Jacob Spencer
Hi All, Just as a note, I have googled this and have searched the xamarin forum. I have a couple of cases within my code where I use the 1252 codepage to do some encoding. When running in debug it works without issue, in debug I use shared mono runtime and no linker. When I move it to release m