﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Thu, 15 Oct 2015 07:07:30 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Thanks Arief! That worked!&lt;br&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Thu, 15 Oct 2015 05:52:34 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;br&gt;&lt;br&gt;Here is how to fix it, please add the attached files in YourProject.Android, and change the build options of that files into LinkDescription&lt;br&gt;&lt;br&gt;I also attach the screen shot. I think this is caused because &amp;nbsp;we choose Link SDK assemblies only, it ignore the Linq files, however, we need to use Link SDK only to reduce size.&lt;br&gt;&lt;br&gt;Hope that will helps!&lt;/p&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Tue, 13 Oct 2015 14:53:59 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Hi Arief,&lt;br&gt;&lt;br&gt;That is actually the error "Unable to perform data operation". The second one was just the stack trace, which we displayed in order to get more information. I don't know which line of code the error occurs, but guessing on the stack trace, it's when the LoadDataCore() method is being invoked somewhere in the Navigated event of the DataListViewModelBase.</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Tue, 13 Oct 2015 06:46:05 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jimmy&lt;br&gt;&lt;br&gt;Just want to update you, we successfully replicate your bug.&lt;br&gt;&lt;br&gt;Could I know which line of code that problem happened, i mean in your second screenshot because the error seems different and the only error that i replicate is the unable to perform data operation one&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Tue, 13 Oct 2015 00:51:45 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Again, this error does not occur when running on Debug mode.</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Tue, 13 Oct 2015 00:50:54 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Here are screenshots of the error:&lt;br&gt;&lt;br&gt;&lt;img alt="" src="https://dl.dropboxusercontent.com/u/32540875/crosslight/Screenshot_2015-10-13-08-46-37.png" style="border:none;"&gt; &lt;br&gt;Continued&lt;br&gt;&lt;br&gt;&lt;img src="https://dl.dropboxusercontent.com/u/32540875/crosslight/Screenshot_2015-10-13-08-47-44.png" style="border:none;"&gt; &lt;br&gt;...and here's the code:&lt;br&gt;&lt;br&gt;&lt;pre&gt;using System;using System.Collections.Generic;
using System.Linq;
using Intersoft.AppFramework;
using Intersoft.AppFramework.Identity;
using Intersoft.AppFramework.Models;
using Intersoft.AppFramework.ViewModels;
using Intersoft.Crosslight;
using Intersoft.Crosslight.Input;
using Intersoft.Crosslight.RestClient;
using Mercury.Domain.Data;
using Mercury.Mobile.Core.Models.EventAggregators;
using Mercury.Mobile.Core.Models.QueryDefinitions;
using Mercury.Mobile.Core.Services;
using Mercury.Mobile.Common.Extensions;

namespace Mercury.Mobile.Core.ViewModels.Collection
{
    public sealed class LocationListViewModel
        : DataListViewModelBase&amp;lt;Location, ILocationRepository&amp;gt;
    {
        #region Field Variables

        private IQueryDefinition f_FilterQueryDefinition;
        private IQueryDefinition f_ViewQueryDefinition;

        private User f_User;

        #endregion

        #region Constructors

        public LocationListViewModel()
        {
            // Configure data behaviors.
            this.EnableRefresh = true;
            this.EnableAsyncFilter = true;
            this.ExitEditModeOnDelete = true;
            this.EnableIncrementalRefresh = true;

            // Enable incremental loading.
            this.EnableIncrementalLoading = true;
            this.IncrementalLoadingSize = 20;

            // Customize the service descriptor.
            this.ServiceDescriptor = new ServiceDescriptor();
            this.ServiceDescriptor.Parameters.Add("userName", this.User.UserName);
            this.ServiceDescriptor.ServiceName = "LocationsByUser";
            this.ServiceDescriptor.HttpMethod = HttpMethod.GET;

            // Commands.
            this.LoadIncrementalCommand = new DelegateCommand(this.ExecuteLoadIncremental, this.CanExecuteLoadIncremental);
            this.CancelCommand = new DelegateCommand(this.ExecuteCancel);
            this.DoneCommand = new DelegateCommand(this.ExecuteDone);
        }

        #endregion

        #region Commands

        public DelegateCommand LoadIncrementalCommand { get; set; }
        public DelegateCommand CancelCommand { get; set; }
        public DelegateCommand DoneCommand { get; set; }

        #endregion

        #region Properties

        /// &amp;lt;summary&amp;gt;
        /// Gets the filter query.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;value&amp;gt;The filter query.&amp;lt;/value&amp;gt;
        protected override IQueryDefinition FilterQuery
        {
            get 
            { 
                if (this.f_FilterQueryDefinition == null)
                    this.f_FilterQueryDefinition = new LocationQueryDefinition();

                return this.f_FilterQueryDefinition; 
            }
        }

        /// &amp;lt;summary&amp;gt;
        /// Gets the view query.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;value&amp;gt;The view query.&amp;lt;/value&amp;gt;
        protected override IQueryDefinition ViewQuery
        {
            get 
            { 
                if (this.f_ViewQueryDefinition == null)
                    this.f_ViewQueryDefinition = new LocationQueryDefinition();

                return this.f_ViewQueryDefinition; 
            }
        }

        /// &amp;lt;summary&amp;gt;
        /// Gets the user.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;value&amp;gt;The user.&amp;lt;/value&amp;gt;
        public User User 
        {
            get
            {
                if (this.f_User == null)
                    this.f_User = this.GetService&amp;lt;IUserService&amp;gt;().GetCurrentUser();

                return this.f_User;
            }
        }

        #endregion

        #region Methods

        private bool CanExecuteLoadIncremental(object paramater)
        {
            return this.EnableIncrementalLoading;
        }

        private void ExecuteLoadIncremental(object parameter)
        {
            this.LoadDataIncremental();
        }

        private void ExecuteCancel(object parameter)
        {
            this.NavigationService.Close(new NavigationResult(NavigationResultAction.Cancel));
        }

        private void ExecuteDone(object parameter)
        {
            this.NavigationService.Close(new NavigationResult(NavigationResultAction.Done));
        }

        #endregion

        #region Action Methods

        protected override void OnDataOperationFailed(Exception exception, DataAction action)
        {
            base.OnDataOperationFailed(exception, action);

            // This is only added to display the stacktrace on release.
            this.MessagePresenter.Show(exception.StackTrace);
        }

        #endregion
    }
}

&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;br&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Fri, 09 Oct 2015 01:41:47 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;br&gt;&lt;br&gt;Ok, I will test it, I will try it using our Simple CRM/Sync Sample because, it was most complete.&amp;nbsp;&lt;br&gt;&lt;br&gt;I will get back to you when done testing.&lt;/p&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Thu, 08 Oct 2015 14:30:59 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;Here's what we followed, and currently using an Ad-Hoc deployment for staging release.&lt;br&gt;&lt;br&gt;&lt;a href="https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/" target="_blank"&gt;https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/&lt;/a&gt;&lt;br&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Thu, 08 Oct 2015 02:57:21 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;Our developer suspect this is a data error, which means what you must do is clean your bin or obj or make sure your App have access to your database.&lt;br&gt;&lt;br&gt;However could you also show me your step by step how you do the release?&lt;/p&gt;</description></item><item><title>How to Build Xamarin.Android with Crosslight Libraries</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Build-XamarinAndroid-with-Crosslight-Libraries/</link><pubDate>Wed, 07 Oct 2015 16:56:50 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;How do we compile a release version with Crosslight binaries? The Release profile for our build was set to "Link SDK Assemblies Only" on Android Build setup. There are also calls to preserve SQLite, PushNotification, and Social Services but when released we are receiving an error with one of view models... see attached screenshot.&lt;/p&gt;&lt;p&gt;This error does not occur on debug mode, so am guessing this has something to do with how it was built for release.&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>