Wednesday, November 14, 2012

Updated: Flurry Analytics in MonoDroid

This is a follow up to an earlier post on using Flurry Analytics in MonoTouch and MonoDroid: http://slodge.blogspot.co.uk/2012/04/using-flurry-analytics-from-monotouch.html

The community has spoken and one kind individual (I think it's this one) has contributed this gist back to the community with an extended Flurry API covered:



Excellent stuff - thanks "anonymous" :)

Lists in MvvmCross AutoView - first code :)

I've just completed the first stab at a List AutoView :)

This code still needs a little tinkering with - it will change as we go across to the other platforms, but a basic first pass is in this Gist:



Next up MonoTouch, and then WP and WinRT

Then back to Droid for Tab UIs too :)

Question: Should we try to shorten/simplify some of the MvvmCross class names?

I've done a few demos lately where I've had to write code live...

Doing this has made me pause and think when it comes to writing down names like: MvxBindableLinearLayout

These names seem overly verbose... e.g. wouldn't MvxLinearLayout do just as well?

Some of the names are unavoidable - e.g. MvxBindingTouchTableViewController inherits from MvxTouchTableViewController - but even these could be shortened to remove the Touch part of the name (the namespace already gives us that).

And then... of course... another question is whether Mvx should stay in place as a prefix? It is useful in places to know when you are using an MvvmCross class... but it's not very pretty and can make the code less readable.

There's nothing planned on this in the very short term, but what do people think?
  • Should we go on a big clean through the naming?
  • Should we try to shorten some names?
  • Should we try to remove the Mvx prefix?
  • Should we just focus on getting more code and better code (e.g. tests) in place?
Interested to hear any thoughts people have. Please feel free to leave comments here if you have any

Stuart

P.S. The main class name which made me pause and think on this topic was MvxActionBasedBindableTableViewSource - it's a good descriptive name, but something like MvxFuncTableViewSource might be easier on the eye ?

Sunday, November 11, 2012

More work on AutoViews for MvvmCross

I've been looking some more at the AutoView code.

In addition to hand-crafted Json, I'm looking at the idea of allowing users to provide a simple description within each ViewModel.

I initially started this by looking at using Attributes, but now I'm moving more towards getting the user to provide descriptive methods, like the one below. This code is now working on Droid - but some refactoring is still needed to properly integrate it and to make it really beautiful.

SSL problems with Microsoft Azure Mobile Services on Mono for Android (MonoDroid)

My main test Android device - a SIM-unlocked Galaxy Note upgraded to ICS - doesn't like any 'Microsoft Secure Server Authority' certificates. e.g. it doesn't like Hotmail.com or Live.com.

This is a problem if you try to use Azure Mobile Services - because https connections to a service like https://mydemoservice.azure-mobile.net will result in an AggregateException within which (several layers deep) will be a MobileServiceInvalidOperationException with a message saying just 'Send Failure' (derived from ServiceFilterResponseStatus SendFailure)

If anyone else encounters this issue... then below is some hacky code I transplanted from an old demo project. It seems to work.... but could probably be improved to work with just Microsoft Secure Server Authority messages.

This code hacks the ServicePointManager to allow it to accept all HTTPS/SSL addresses regardless of whether or not the certificate is trusted. Don't use this in your banking apps please :)

Saturday, November 10, 2012

Resources from Azure Mobile Services talk - MonoTouch and MonoDroid

I'm just pushing some resources for the Mvvm Azure Mobile Services sample shown at #SixStepsAzure yesterday to: https://github.com/slodge/azure-mobile-services

I'm afraid there's not too much info on this demo available yet and I've only included MonoTouch and MonoDroid code - there is a little in the readme.md... but generally I'll need to get together with @AzureCoder to sort out more - I don't know how he did the server side wizardry :)

Azure to Wp/MonoDroid/MonoTouch - Video of my MvvmCross Talk

Here's a talk I gave yesterday at #SixStepsAzure here in London:



Slidedeck is:



And this is what one of the audience said:




Love the honesty of that feedback :)

Friday, November 09, 2012

The request could not be completed (Send failure)

Update: see http://slodge.blogspot.co.uk/2012/11/ssl-problems-with-microsoft-azure.html


I've been playing with Azure Mobile Services on Mono for Android (and on MonoTouch too).

One thing that stumped me for a little while was a problem where I just couldn't talk to the server - all calls would fail with:

The request could not be completed (Send failure)

Eventually I worked out that:
  1. Make sure you've got INTERNET permissions in your app Manifest
  2. Make sure you are using http and not https for the service address

I'm not sure why https is not currently working - must be some SSL/certificate-level error?

Tuesday, November 06, 2012

Another update on the Default UI work for MvvmCross....

We've made more steady progress on the Default UI work.

We've now got the MvvmCross CustomerManagement demo (borrowed originally from MonoCross) completely rendering from JSON.


So, that's:
  • the front page screen (a List)
  • the details screen (a Dialog)
  • the edit and new screens (a Dialog)
  • a menu on each screen.

To do this, currently we're using JSON files loaded using convention rules from the Assets folder:



However, we want to move this to a set of conventions and/or attributes based on the ViewModels themselves. This is coming...

And then we'll look at porting this back to MonoTouch and MonoTouch.Dialog too...

And then also coming, is WP.Dialog - see @runegri's fork of MonoDroid Dialog at https://github.com/runegri/Android.Dialog

There's a lot of code to tidy up - but will post more details and some demo code soon!

How to make a PIG UDF (beginners guide for C# engineers)

I got asked to create a UDF in Java... this is what I did :)





Any questions? Try http://jabbr.net/#/rooms/HDInsight

For the Apache PIG UDF documents try Try http://pig.apache.org/docs/r0.8.1/udf.html

Monday, November 05, 2012

Thank you JetBrains for free Resharper open source licensing

Just a quick word of thanks.

JetBrains provide Reshaper for free for me to use on MvvmCross: http://www.jetbrains.com/resharper/

Thank you, JetBrains!

If you are a C# dev and you haven't tried a tool like Resharper then you are wasting your own time - simple as that. In addition to the free 7.0 license above, I've also paid my own money (wow) for a license - and it paid for itself within a day.

MvvmCross at BUILD 2012 - Create Cross Platform App using Portable Class Libraries

Daniel Plaisted's talk introduced and extended the MvvmCross Twitter sample at BUILD

For his full talk, see:




For more info, see http://channel9.msdn.com/Events/Build/2012/3-004

Daniel's blog is on: http://blogs.msdn.com/b/dsplaisted/

Sunday, November 04, 2012

Combining TinyMessenger with MvvmCross to provide "StartViewModelForResult" type behavior

See http://www.gregshackles.com/2012/11/returning-results-from-view-models-in-mvvmcross/

A sample from @gshackles

https://gist.github.com/f20d5f444234c78ca81a

Basically this pattern allows you to write a flow like:

- navigate from a parent viewModel to a child ViewModel
- the child viewModel collects some user input
- the user then presses OK
- a message is sent back from the child ViewModel  to the parent
- the child view then closes

We think there might be one very minor issues in this pattern - to do with some tombstoning edge cases - but for most apps this should work really well - and it has a nice test harness too!

Some Useful MvvmCross Links...

Key posts from http://slodge.blogspot.com and key http://stackoverflow.com/questions/tagged/mvvmcross questions and answers

Portable Class Libraries

Portable Class Library problems - "defined in an assembly that is not referenced" http://stackoverflow.com/questions/13197546/mvvmcross-vnext-observablecolletion-is-defined-in-an-assembly-that-is-not-refer
Working around the profile1-only problem in Mono builds - http://slodge.blogspot.co.uk/2012/10/mvvm-monotouch-back-up-and-running.html
More on PCL setup for MonoTouch/MonoDroid - http://slodge.blogspot.co.uk/2012/09/mvvmcross-vnext-portable-class.html
Xamarin reported bugs that @slodge is involved with - mostly PCL - https://bugzilla.xamarin.com/buglist.cgi?email2=me%40slodge.com&emailassigned_to2=1&emailcc2=1&emailreporter2=1&emailtype2=substring&list_id=33065&query_format=advanced&order=bug_id%20DESC&query_based_on=

General

Experiences and Limitations - http://stackoverflow.com/questions/10224376/mvvmcross-experiences-hindsight-limitations
Getting Help - http://slodge.blogspot.co.uk/2012/10/how-to-ask-questions-about-mvvmcross.html
Setting up a fork - basic GitHub steps - http://slodge.blogspot.co.uk/2012/09/heres-how-i-setup-fork.html

Navigation and Architecture

Passing in variables to ViewModels - http://stackoverflow.com/questions/10192505/passing-on-variables-from-viewmodel-to-another-view-mvvmcross
MethodAccessException - http://stackoverflow.com/questions/10227237/methodaccessexception-when-passing-variables-from-viewmodel-to-viewmodel-on-wp7
Providing different views for iPhone and iPad - http://stackoverflow.com/questions/10297260/mvvmcross-sharing-viewmodels-for-multiple-views
Replacing the default ViewModelLocator - http://stackoverflow.com/questions/10411735/how-to-replace-mvxdefaultviewmodellocator-in-mvvmcross-application
Passing in Services as constructor parameters - http://stackoverflow.com/questions/10511853/constructor-in-viewmodel
Problems in release mode only - http://stackoverflow.com/questions/11973993/mvxexception-in-release-mode-for-android
Hunting for memory leaks - http://stackoverflow.com/questions/12494804/helping-the-gc-in-mono-droid-using-mvvmcross
One pattern for error reporting - http://stackoverflow.com/questions/10411352/what-is-the-suggested-way-to-handle-exceptions-during-in-a-mvvmcross-application and also at http://stackoverflow.com/questions/11053535/alerts-or-popups-in-mvvmcross
Changes to IoC in vNext - http://slodge.blogspot.co.uk/2012/10/changes-to-ioc-in-vnext.html

Testing

Testing ViewModels - http://slodge.blogspot.co.uk/2012/10/testing-viewmodels-in-mvvmcross.html

Binding

JSON Binding introduction - http://stackoverflow.com/questions/10688603/how-do-i-bind-multiple-properties-in-an-android-layout-element
Custom Favorites Button Binding - http://stackoverflow.com/questions/10495137/mvvmcross-bindings-in-android Custom binding for text color - http://stackoverflow.com/questions/10700445/in-mvvmcross-how-do-i-do-custom-bind-properties
Binding MonoTouch UIViewController member variables - http://stackoverflow.com/questions/10929779/monotouch-mvvmcross-binding-to-instance-variables
Two way bindings for integers - http://stackoverflow.com/questions/11231624/mvvmcross-monotouch-c-sharp-binding-int-property-mode-twoway
Binding doesn't work on a real device - http://stackoverflow.com/questions/11349864/mvvmcross-monotouch-fail-to-bind-properties-on-a-real-ipad-but-it-works-on-th
Custom binding for a Touch event - http://stackoverflow.com/questions/11815893/mvvmcross-touch-command-binding-in-android
ListItem Property Binding - http://stackoverflow.com/questions/12825121/binding-a-property-to-a-mvxbindablelistview-in-android
Displaying images - http://stackoverflow.com/questions/12876406/how-to-bind-an-image-src-to-resource-drawable-image-with-mvvmcross and http://stackoverflow.com/questions/12925056/binding-to-path-imageview-in-mvvmcross-for-monodroid-android
What do I do without CommandParameters? http://stackoverflow.com/questions/12892672/mvvmcross-vnext-monodroid-commandparameter-similar-to-wp7
Why doesn't Touch work - http://stackoverflow.com/questions/12950879/mvvmcross-button-command-binding-not-firing
Working around ICommand CanExecute problems - http://stackoverflow.com/questions/12951733/how-to-use-canexecute-with-mvvmcross
Debugging binding problems - http://stackoverflow.com/questions/12973594/mvxbinderror-10-40-exception-thrown-during-the-view-binding

Droid

Using Tabs/TabActivity - http://stackoverflow.com/questions/10243672/how-to-use-a-monodroid-tabactivity-using-mvvmcross-framework
AutoComplete - http://stackoverflow.com/questions/10550829/autocomplete-mvvm-and-java-castings-without-using-java-lang-object-on-viewmodel
Removing the splash screen - http://stackoverflow.com/questions/10584385/how-do-i-initialize-the-mvvmcross-framework-without-a-splash-activity
Handling Back - http://stackoverflow.com/questions/10621593/monodroid-mvvmcross-handle-back-button-pressed-on-a-tabhost
I want a simple View without a ViewModel - http://stackoverflow.com/questions/10684174/navigate-to-a-view-without-viewmodel-in-mvvmcross
Fragment support - current not done - http://stackoverflow.com/questions/10698638/mvvmcross-viewtyperesolver-doesnt-resolve-tag-fragment-or-custom-type
Using custom Intents - http://stackoverflow.com/questions/12564272/making-mono-cross-platform-support-for-task-intent
Why won't my project include the MvxBindingAttributes.xml file - http://stackoverflow.com/questions/12596553/attributes-from-mvxbindingattributes-are-not-added-with-mvvmcross
Using ICommands within ListItems - http://stackoverflow.com/questions/12682082/mvvmcross-changing-viewmodel-within-a-mvxbindablelistview
Receiving broadcast actions - http://stackoverflow.com/questions/12687149/where-to-listen-for-broadcast-action-with-mvvmcross
Displaying Selection - http://stackoverflow.com/questions/12738516/does-mvvmcross-have-a-way-to-change-the-selector-when-clicking-imagebutton-on-li
Using custom controls in XML - http://stackoverflow.com/questions/12934654/how-to-create-views-actions-listener-for-mvxitemtemplate
Responding to checkbox changes - http://stackoverflow.com/questions/13120574/mvvmcross-vnext-checkbox-checkedchange-event-to-a-command-with-monodroid
Integrating a custom Activity - http://stackoverflow.com/questions/13201174/insert-a-monogame-view-inside-mvvmcross-monodroid-activity

Touch

Modal presentation (and custom presenters) - http://stackoverflow.com/questions/10512853/how-do-i-specify-a-view-to-be-pushed-as-modal-in-mvvmcross
Using Tabs/UITabBarController - http://stackoverflow.com/questions/10981985/mvvmcross-monotouch-uitabbarcontroller-cant-access-navigation-bar
Customising the Navigation Bar (UINavigationController) - http://stackoverflow.com/questions/11011218/mvvmcross-uinavigationcontroller-customise-navigationbar
Modal Views - with a UINavigationController - http://stackoverflow.com/questions/11037119/mvvmcross-using-a-modal-viewcontroller-from-a-tab
Displaying multiple modal views - http://stackoverflow.com/questions/11041605/why-does-mvxmodalsupporttouchviewpresenter-in-mvvmcross-only-support-one-modal-v
Using a DateTimeElement in MT.Dialog - http://stackoverflow.com/questions/11105125/mvvmcross-null-exception-when-using-datetimeelement-in-monotouch-dialog
How to do a "combobox"/Uipickerview in Touch http://stackoverflow.com/questions/12160239/mvvmcross-binding-lists-in-monotouch (also see https://github.com/slodge/MvvmCross/pull/25)
Problems with MT.D Element redrawing - http://stackoverflow.com/questions/12249758/mvvmcross-twoway-bindings-with-monotouch-dialog

WP7/WP8

Intercepting Back key presses - http://stackoverflow.com/questions/10515990/wp7-mvvmcross-detect-requestclose-or-backkeypressed-inside-viewmodels
Using live tiles - http://stackoverflow.com/questions/11566460/mvvmcross-and-wp7-secondary-tile

Services

Getting Location - http://stackoverflow.com/questions/10317025/monodroid-locationmanager-requestlocationupdates-gives-java-lang-illegalargument
Distance between 2 points - http://stackoverflow.com/questions/10331836/finding-the-distance-between-two-geo-locations-when-using-the-mvvmcross-framewor
Why no speed and bearing :( - http://stackoverflow.com/questions/11582345/why-is-mvvmcross-mvxgeolocationwatcher-not-returning-speed-or-bearing
Integrating VideoView from Xamarin.Mobile - http://stackoverflow.com/questions/13016103/mvvmcross-vnext-monodroid-use-a-videoview-inside-a-plugin

Plugins

How to write a Conventional plugin - http://stackoverflow.com/questions/12842727/mvvmcross-conventional-plugin-bypass
How to inject platform specific services - http://stackoverflow.com/questions/12564272/making-mono-cross-platform-support-for-task-intent
Another introduction to Conventional plugins - http://stackoverflow.com/questions/12931618/mvvmcross-vnext-merge-plugins-with-monodroid

"Simple Projects"

Multiple View/ViewModel sample - http://stackoverflow.com/questions/10430481/how-do-i-use-multiple-viewmodels-with-simple-binding

Wednesday, October 31, 2012

How to ask questions about MvvmCross?

If you've got questions... then that's good.

I love answering questions about Mvx and hearing about what users want.

Take a look at all the information that's already available - http://slodge.blogspot.co.uk/p/mvvmcross-quicklist.html

So please feel free to ask questions by:

1. You can post them on StackOverflow - http://stackoverflow.com/questions/tagged/mvvmcross - please think about your question and provide as much detail as you can - I generally spend about 10 minutes to write a good answer so please also spend 10 minutes writing a good question.

For all questions, please search first - if there are any similar problems/questions then consider referencing them in your question.

For complicated questions, please consider writing a separate small test app which focusses on the problem area, rather than posting all your code - no-one has time to read all your code :)

If you find you have followup questions... then please do not update your question... and please do not ask new questions in comments - open a new question instead :)

2. You can post them on http://forums.xamarin.com - but again the more relevant detail you can provide the better - consider adding a gist for code - http://gist.github.com/

3. If you think it is a bug or a new feature then you can open a new issue on https://github.com/slodge/MvvmCross/issues/new - ideally include some sample code that I can build and run - if you have a test application please put it in a repo somewhere. If I have to make a test app myself for each and every issue then I'll be slower to answer...

4. You can come along to http://jabbr.net/#/rooms/mvvmcross but please don't ask too many questions there - it's not a great place to ask questions to look at code or to share things really - and it's not very searchable so it's hard for answers to benefit others...

Looking forwards to hearing from you all :)

Stuart

Tuesday, October 30, 2012

Testing ViewModels in MvvmCross

One question I've been meaning to answer for a while is how I setup my unit tests so that I can test viewmodel behaviour.

This is actually very simple to do. There are just a couple of things to put in place to cope with the singleton nature of MvvmCross IoC

Also, please note that if you want to test on MonoTouch then because there are dynamic code restrictions, then you cannot use Dynamic Mocks (like Moq)

*1. First in the test setup, I clear the IoC system using code like:

    private IMvxServiceProviderRegistry _ioc;

    [SetUp]
    public void SetUp()
    {
        // fake set up of the IoC
        MvxOpenNetCfContainer.ClearAllSingletons();
        MvxOpenNetCfServiceProviderSetup.Initialize();
        _ioc = MvxServiceProvider.Instance;
        _ioc.RegisterServiceInstance(new MvxDebugTrace());
        MvxTrace.Initialize();
    }

*2. Then to test general navigation I use a couple of Mocks like:

public class MockMvxViewDispatcherProvider : IMvxViewDispatcherProvider
{
    #region IMvxViewDispatcherProvider implementation

    public IMvxViewDispatcher Dispatcher { get; set; }

    #endregion
}

public class MockMvxViewDispatcher : IMvxViewDispatcher
{
    public List CloseRequests = new List();
    public List NavigateRequests = new List();

    public MockMvxViewDispatcher()
    {
    }

    #region IMvxViewDispatcher implementation

    public bool RequestNavigate(MvxShowViewModelRequest request)
    {
        NavigateRequests.Add(request);
        return true;
    }

    public bool RequestClose(IMvxViewModel whichViewModel)
    {
        CloseRequests.Add(whichViewModel);
        return true;
    }

    public bool RequestRemoveBackStep()
    {
        throw new NotImplementedException();
    }

    #endregion

    #region IMvxMainThreadDispatcher implementation

    public bool RequestMainThreadAction(Action action)
    {
        action();
        return true;
    }

    #endregion
}

The main thing these Mocks appear to do is to catch and store the navigation requests.

IMPORTANT NOTE: however, please do note the IMvxMainThreadDispatcher code - this service is essential to much of the operation of MvvmCross - lots of things in MvvmCross rely on this service being available because they need to get their execution across to some "UI thread" - e.g. PropertyChanged will silently fail to fire if the service is missing!

*3. To then test navigation I use tests like:

    [Test]
    public void ExecutingTheLoginCommandNavigatesToTheLoginViewModel()
    {
        var mockNavigation = new MockMvxViewDispatcher();
        var mockNavigationProvider = new MockMvxViewDispatcherProvider();
        mockNavigationProvider.Dispatcher = mockNavigation;
        _ioc.RegisterServiceInstance(mockNavigationProvider);

        var homeViewModel = new HomeViewModel();
        homeViewModel.LoginCommand.Execute(null);

        Assert.That(mockNavigation.NavigateRequests.Count == 1);
        Assert.That(mockNavigation.NavigateRequests.First().ViewModelType == typeof(LoginViewModel));
    }

    [Test]
    public void ExecutingTheCloseCommandClosesTheViewModel()
    {
        var mockNavigation = new MockMvxViewDispatcher();
        var mockNavigationProvider = new MockMvxViewDispatcherProvider();
        mockNavigationProvider.Dispatcher = mockNavigation;
        _ioc.RegisterServiceInstance(mockNavigationProvider);

        var loginViewModel = new LoginViewModel();
        loginViewModel.CloseCommand.Execute(null);

        Assert.That(mockNavigation.CloseRequests.Count == 1);
        Assert.That(mockNavigation.CloseRequests.First() == viewModel);
    }

*4. And to test ViewModel property changes I just use simple code like:

    [Test]
    public void ExecutingTheAddCommandIncrementsTheCounter()
    {
        var mockNavigation = new MockMvxViewDispatcher();
        var mockNavigationProvider = new MockMvxViewDispatcherProvider();
        mockNavigationProvider.Dispatcher = mockNavigation;
        _ioc.RegisterServiceInstance(mockNavigationProvider);

        var tipViewModel = new TipViewModel();
        Assert.That(tipViewModel.Counter == 0);
        var notifications = new List();
        tipViewModel.PropertyChanged += (s, e) =>
            {
                notifications.Add(e.PropertyName);
            };

        tipViewModel.CloseCommand.Execute(null);

        Assert.That(mockNavigation.CloseRequests.Count == 0);
        Assert.That(mockNavigation.NavigateRequests.Count == 0);
        Assert.That(notifications.Count == 1);
        Assert.That(notifications[0] == "Counter");
        Assert.That(tipViewModel.Counter == 1);
    }

*5. And that's it... these tests work cross-platform - including in the lovely NUnit tool from Xamarin for MonoTouch

Possible solutions for WP8 SDK Emulator issues - WP8 Hyper-V emulator cannot see the wireless network adapter

Now the NDA is over...

I had a problem with windows phone 8 sdk accessing the wireless network on my host laptop.

Some solutions/questions I saw reported when trying to debug this were:

  • Plugin an Ethernet cable - that worked for me!
  • Problem solved! Hyper-V uses same MAC address for guest VMs (virtual machine) and Host. If the router configured to give the host always same ip address it will conflict with the emulator. Solution - on the router remove the host from known PCs and let it give you some new ip address (not fixed). After you start the emulator it will get the correct ip address from router. Router will show you two PCs (host and vm) with the same MAC, but different ip addresses.

  • I encountered a problem with installing Hyper-V on a german installation of Windows 8 but have found people having the same issue with other localized versions. After setting the checkbox to install Hyper-V and clicking ok it simply did not install. I had to change my regional settings to english, install it and switch them back to german for everything to work.

    Maybe the SDK simply triggered the installation correctly or the recent big Windows 8 patch resolved the problem. Although it might be that you had different problems with installing Hyper-V.

  • It is possible that the emulator's virtual machine is corrupted.

    1. Close Visual Studio. Launch Hyper-V Manager.

    2. In the Virtual Machines list, stop and then delete any virtual machines currently running

    3. Try your app again. A new emulator VM instance should start.

    If that doesn't fix it, click on the running VM instance in Hyper-V Manager. In the Actions column for your Emulator instance, click on Settings, and drill down into the Network adapter hardware. See if a Virtual Switch is selected for the network adapter etc.

  • Hi everyone, We have some steps to run the emulator:

You must have Windows 8 Pro (Ultimate or Enterprise).
Enable Hyper-V on Control panel.
Restart your computer.
Install Windows Phone 8 SDK.
Restart your computer, again.
Run the Emulator! Takes very very long time if you don't do the step 5.
Happy coding!

Origo Foci-Eb 2012 - an example mvvmcross app from earlier this year

This App launched in Hungary this year ahead of the European Football Championships.

It was built on MonoDroid, MonoTouch, WP7 and MvvmCross

It shows really nicely how to show the same ViewModel data in a nice Native UI style.

I couldn't find the iOS screenshots, but some Droid and WP7 goodness is below:

Android  - https://play.google.com/store/apps/details?id=OrigoEB.Main



WindowsPhone http://www.windowsphoneapplist.com/en/Origo_FociEb_2012-a116571.html



The developer was - I believe he or one of his team may also have something to do with the excellent sample at https://github.com/Zoldeper/Blooor

MonoTouch, MonoDroid and MvvmCross at Build Windows 2012 in Seattle #BldWin

From http://channel9.msdn.com/Events/Build/2012/3-004:

Learn how to create an app with versions for the Windows Store, Windows Phone, and other platforms, using the new Portable Class Libraries support in Visual Studio 2012 to share code between the different versions of the app. We will see how the Model-View-ViewModel pattern (MVVM) is ideally suited to sharing code between platforms since it encourages a clean separation between the app logic, which can be shared, and the UI, which is platform-specific. We'll see how to access non-portable functionality from portable code by creating a portable abstraction with platform-specific implementations. We will see several real-world demo apps, and touch on more advanced concepts such as navigation, inversion of control, and synchronizing data across multiple clients with Windows Azure Service Bus. To maximize your benefit from this session, having some prior experience with XAML-based apps and the MVVM pattern is recommended.

I don't know what the content will be...

But if it's anything like this blog post - http://blogs.msdn.com/b/dsplaisted/archive/2012/08/27/how-to-make-portable-class-libraries-work-for-you.aspx - then it should be very useful :)

Sunday, October 28, 2012

A temporary solution for the Profile1 only bug in MonoDevelop MonoTouch PCL support

Update: install the patch - http://slodge.blogspot.co.uk/2013/02/a-patched-monodevelop-for-pcls.html

Thanks especially to "Jonathan Peppers"...

There is a solution to the problem that MonoDevelop can only build Profile1 for MonoTouch PCL libraries.

The solution is to use Conditional MSBuild attributes.

So... replace:

    <TargetFrameworkProfile>Profile104</TargetFrameworkProfile>
with:
    <TargetFrameworkProfile Condition="'$(OS)' != 'Windows_NT'">Profile1</TargetFrameworkProfile>      <TargetFrameworkProfile Condition="'$(OS)' == 'Windows_NT'">Profile104</TargetFrameworkProfile>
This can be done using Replace In Files :)

Afterwards it seems to work perfectly in both Visual Studio and in MonoDevelop :)

Stuart