Skip to main content

Posts

Showing posts from July, 2017

Xamarin.Forms persistance (aka save/load local settings)

I just learned and implemented how to persist local settings for a xamarin.forms app. At first read, I noticed that xamarin.forms Application.Current.Properties supports this functionality but I wasn't able to figure it out. Usually I like to use default functionality when available but this simple API was not working for me. So I did some research and found a bunch of alternatives from James Montemagno's settings plugin to the realm mobile database. For my simple needs at this time, I nuget'ed the settings plugin and had it working in 2-3m (only because I spent a minute reading the GettingStarted.html). The code is simple and looks like:

Save:
CrossSettings.Current.AddOrUpdateValue("Securities", _addedSecurities.ToFlatFile(','));

Load:
protected override void OnStart()
{
string securitiesCsv = CrossSettings.Current.GetValueOrDefault("Securities", string.Empty);
}

Xamarin.Forms OnPlatform - TabbedPage vs NavigationPage

I switched my start page from a NavigationPage to a TabbedPage and all of a sudden the content overwrote the the carrier/battery row. I looked into this and discovered that the TabbedPage does not offset itself below this header in iOS (but works for android and windows). The solution is to add a platform dependent offset or padding thickness of 20 pixels.

dbapps.com: top 200 iOS apps

Repurposed dbapps.com to present the iOS app data I've collected over the years. It shows the top 200 FREE, PAID, and GROSSING iOS apps on the apple app store along w/ their deltas over several time periods. I've used this report to help guide my investments in the mobile app space. Here's a screenshot:


Hi again.

As a programmer working on my own startup, every day brings new challenges in the areas of software development and infrastructure. I had to explore and implement infrastructures that are suitable for my development needs and learn new technologies that I'm pursuing as part of my startup. I'm learning a lot from googling and want to give back by journal'ing roadblocks I overcome..

Two near-future posts I've been collecting data about are 1. building something resembling a "datagrid" in xamarin forms that binds to a List<Dictionary> and 2. implementing a continuous integration development environment.