<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CensusMapper on Ash Tewari</title><link>https://www.tewari.info/tag/censusmapper/</link><description>Recent content in CensusMapper on Ash Tewari</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Sat, 21 Feb 2015 17:30:25 +0000</lastBuildDate><atom:link href="https://www.tewari.info/tag/censusmapper/feed.xml" rel="self" type="application/rss+xml"/><item><title>Creating Android Apps using C# and Xamarin</title><link>https://www.tewari.info/2015/02/21/creating-android-apps-using-c-and-xamarin/</link><pubDate>Sat, 21 Feb 2015 17:30:25 +0000</pubDate><guid>https://www.tewari.info/2015/02/21/creating-android-apps-using-c-and-xamarin/</guid><description>&lt;p&gt;You can create native Android and iOS applications using C#, with Xamarin. I explored the capabilities of Xamarin tools and the development experience with Xamarin to create an Android version of CensusMapper. CensusMapper displays U.S. Census data on a Map. I created the original application for Windows 8 (WinRT) using C#. I have since converted it to an MVVM (C#) application, HTML/Javascript (WinJS) version and more recently to a &lt;a class="link" href="https://www.tewari.info/2014/11/12/universal-apps/" &gt;Universal Windows App&lt;/a&gt; running on Windows Phone 8.1 and Windows 8.1. In that tradition, now it is faithfully ported to run on Android devices, using C# and Xamarin. CensusMapper is available on &lt;a class="link" href="https://play.google.com/store/search?q=CensusMapper" target="_blank" rel="noopener"&#10; &gt;Google Play Store&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://play.google.com/store/apps/details?id=info.tewari.censusmapper" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="censusmapper-android-on-nexus5" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/censusmapper-android-on-nexus5.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;CensusMapper.Android shows population of each U.S. State. User can tap on a location on the map to show the population (as per 2010 census) of the zip code containing the selected location. User can select a location to view the population compared to the containing geography, as a pie-chart.&lt;/p&gt;&#10;&lt;p&gt;This experimental project helped me expand my cross-platform mobile application development skillset in the following areas:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Using Xamarin/C# to create an Android app using Xamarin Studio on a PC and a Mac.&lt;/li&gt;&#10;&lt;li&gt;Structuring C#/.NET source code in a Portable Class Library to allow reuse on Windows, Windows Phone, Android and iOS platforms.&lt;/li&gt;&#10;&lt;li&gt;Converting the functionality of an existing Windows Universal App (Windows Phone/ WinRT) to an Android app.&lt;/li&gt;&#10;&lt;li&gt;Using GoogleMaps API (via Google Play Services) to display data retrieved from U.S. Census API.&lt;/li&gt;&#10;&lt;li&gt;Using Bing Maps API for reverse geocoding in an Android app.&lt;/li&gt;&#10;&lt;li&gt;Creating custom markers using low-level API in Android.Graphics namespace to display information on the map.&lt;/li&gt;&#10;&lt;li&gt;Charting with &lt;a class="link" href="http://oxyplot.org/" target="_blank" rel="noopener"&#10; &gt;oxyplot&lt;/a&gt; cross-platform charting library.&lt;/li&gt;&#10;&lt;li&gt;Working with Android SDK, AVD Manager as well as developer documentation and resources on Android and Xamarin websites in the development lifecycle of the app.&lt;/li&gt;&#10;&lt;li&gt;Publishing an app on Google Play Store.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I started with Xamarin.Forms.Maps. It was quick and straight forward to create a Xamarin.Forms app. The tricky part was creating the custom markers (the shape of speech bubble) on the map, instead of using the default push-pin markers . I tried creating a CustomRender to create custom markers and built interactivity with the map elements, but it turned out to be too much hassle. All of that customization would be specific to Android platform only and not reusable on the iOS anyway. So, I decided against using Xamarin.Forms and work directly with Google Maps library. Xamarin.Forms also limits me to Windows Phone 8 compatibility in my PCL. I can&amp;rsquo;t use Windows Phone 8.1 in any PCL profile compatible with Xamarin.Forms. It also requires a minimum of Android 4.0. The PCL profile # 111 for sharing code between Windows 8, Windows Phone 8.1 as well as Android and iOS, is not compatible with Xamarin.Forms at the time of writing this.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/pcl-profile-111.png" &gt;&lt;img alt="pcl-profile-111" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/pcl-profile-111.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Don&amp;rsquo;t use the Android emulator for testing. Get a real device. I stopped using the emulator while working on CensusMapper because GooglePlayServices (GPS) dependency was making me jump through way too many hoops. Debugging map functionality on the real device was a much more productive experience. Then I discovered &lt;a class="link" href="https://xamarin.com/android-player" target="_blank" rel="noopener"&#10; &gt;Xamarin&amp;rsquo;s Android Player&lt;/a&gt;. It is awesome. By all means, use it! It is a pleasure to work with, especially on a Mac. Don&amp;rsquo;t be discouraged by the preview/beta status. It blows the Android SDK virtual devices out of the water, in terms of performance and usability.&lt;/p&gt;&#10;&lt;p&gt;I tested on &lt;a class="link" href="https://play.google.com/store/devices/details/Nexus_4_8GB" target="_blank" rel="noopener"&#10; &gt;Google Nexus 4&lt;/a&gt; (Android 4.2), &lt;a class="link" href="http://www.amazon.com/Samsung-SCH-i535-Verizon-Unlocked-Smartphone/dp/B00O4CZ15O" target="_blank" rel="noopener"&#10; &gt;Samsung Galaxy SIII&lt;/a&gt; (Android 4.3) , &lt;a class="link" href="http://www.amazon.com/gp/product/B00LUZ8WJA" target="_blank" rel="noopener"&#10; &gt;BLU Dash JR&lt;/a&gt; (Android 4.4) and an older &lt;a class="link" href="http://www.amazon.com/Coby-7-Inch-Android-Internet-Touchscreen-Tablet/dp/B005HUH88K" target="_blank" rel="noopener"&#10; &gt;Coby Kyros&lt;/a&gt; tablet (Android 2.2). Google Play Services update, required for the app to work, could not be installed on BLU device because of the limited storage space. You must root the device in order to install the GPS updates on an SD card. It is advisable to have a &lt;a class="link" href="http://unrevoked.com/rootwiki/doku.php/public/root_friendly" target="_blank" rel="noopener"&#10; &gt;root-friendly device&lt;/a&gt;. Google Nexus devices are excellent development devices, allowing you root access and the ability to load custom ROMs. However, it is very important for you to get a few different kinds of devices of various form factors and Android versions/API levels for testing your app&amp;rsquo;s functional and non-functional aspects.&lt;/p&gt;&#10;&lt;p&gt;Android device logs and the IDE build logs are the most important tools you have to resolve problems encountered in the Android app development with Xamarin. These should be the first places to look when troubleshooting issue.&lt;/p&gt;&#10;&lt;p&gt;Versions used in this project:&#10;Xamarin 3.8.&#10;Xamarin Studio 5.7&#10;Xamarin Android 4.20.0&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://play.google.com/store/apps/details?id=info.tewari.censusmapper&amp;amp;utm_source=global_co&amp;amp;utm_medium=prtnr&amp;amp;utm_content=Mar2515&amp;amp;utm_campaign=PartBadge&amp;amp;pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="Get it on Google Play" class="gallery-image" data-flex-basis="810px" data-flex-grow="337" height="242" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png" srcset="https://www.tewari.info/en-play-badge_8894513479543131546_hu_5bf219cf694dcfc4.png 800w, https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png 817w" width="817"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Do not learn another programming language</title><link>https://www.tewari.info/2014/05/31/do-not-learn-another-programming-language/</link><pubDate>Sat, 31 May 2014 22:43:20 +0000</pubDate><guid>https://www.tewari.info/2014/05/31/do-not-learn-another-programming-language/</guid><description>&lt;p&gt;As software developers, many of us &lt;a class="link" href="http://www.sitepoint.com/best-programming-language-learn-2014/" target="_blank" rel="noopener"&#10; &gt;agonize&lt;/a&gt; over which &lt;a class="link" href="http://mashable.com/2014/01/21/learn-programming-languages/" target="_blank" rel="noopener"&#10; &gt;programming&lt;/a&gt; &lt;a class="link" href="http://beta.slashdot.org/story/08/03/18/1633229/what-programming-languages-should-you-learn-next" target="_blank" rel="noopener"&#10; &gt;language&lt;/a&gt; we should &lt;a class="link" href="http://www.reddit.com/r/learnprogramming/comments/1y02s2/which_programming_language_should_i_learn_next/" target="_blank" rel="noopener"&#10; &gt;learn&lt;/a&gt; &lt;a class="link" href="http://www.streamhead.com/what-programming-language-to-learn-next/" target="_blank" rel="noopener"&#10; &gt;next&lt;/a&gt;. I have a suggestion - don&amp;rsquo;t learn another programming language. Learn a creative design skill - graphics design, 3-D modelling or Game Development. Learn basic photo editing skills instead of F#. I know &lt;a class="link" href="https://twitter.com/jamie_dixon" target="_blank" rel="noopener"&#10; &gt;Jamie&lt;/a&gt; and &lt;a class="link" href="https://twitter.com/ChipBurris" target="_blank" rel="noopener"&#10; &gt;Chip&lt;/a&gt; will agree with me ;).&lt;/p&gt;&#10;&lt;p&gt;I have a bit of a designer inside me. Not a lot. Just a bit. I was probably 15 when I learned how to do architectural perspective drawings. I created a few of the house renovation my dad was doing at the time. One of my dad&amp;rsquo;s friend asked me to create a drawing for the addition he was doing to his house. More recently, I have designed some logos (for my own use), as well as UI design of &lt;a class="link" href="http://www.windigoapp.com/" target="_blank" rel="noopener"&#10; &gt;Windigo&lt;/a&gt;, a Windows Phone app I created a couple of years ago. These are some of the logos I have created :&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/tile.png" width="210"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/Logo.png" width="150"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/CodeDemo-Medium.png" width="126"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;The UI and UX design of apps is something that fascinates me and I can see myself indulging in that some more. I am one of those software developers who (think they) have some design chops. Although I have not asked her yet, but I am confident that my mother will completely agree with me on this. I think she is still saving some of the masterpieces from my kindergarten.&lt;/p&gt;&#10;&lt;p&gt;I am excited about the addition of &lt;a class="link" href="http://www.pluralsight.com/training/DigitalTutors" target="_blank" rel="noopener"&#10; &gt;Digital Tutors&lt;/a&gt; content in the &lt;a class="link" href="http://www.pluralsight.com/" target="_blank" rel="noopener"&#10; &gt;Pluralsight&lt;/a&gt; library. I am drooling at the prospect of learning some new skills from there. I browsed the entire library to see if I can latch on to something. I started looking for a software in the library that I can afford. You will be lucky to find one that is less than a few grands. I am exaggerating, but only a little. I also noticed an interesting trend that some of this software is being offered for rent! Here is a list of four that I could start using a little or no cost and it is not a trial :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://pixologic.com/sculptris/" target="_blank" rel="noopener"&#10; &gt;Sculptris&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.unrealengine.com/products/udk/" target="_blank" rel="noopener"&#10; &gt;UDK&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://unity3d.com/unity/download" target="_blank" rel="noopener"&#10; &gt;Unity&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.e-onsoftware.com/try/vue_2014_ple/" target="_blank" rel="noopener"&#10; &gt;Vue - Personal Learning Edition&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;I think it is awesome that &lt;a class="link" href="http://www.pixar.com/" target="_blank" rel="noopener"&#10; &gt;Pixar&lt;/a&gt; has made its &lt;a class="link" href="http://renderman.pixar.com/view/renderman" target="_blank" rel="noopener"&#10; &gt;RenderMan&lt;/a&gt; software available for &lt;a class="link" href="http://thenextweb.com/creativity/2014/05/29/pixar-offers-renderman-free-non-commercial-users-lowers-overall-price/" target="_blank" rel="noopener"&#10; &gt;free for non-commercial use&lt;/a&gt;. RenderMan has been used to &lt;a class="link" href="http://renderman.pixar.com/view/movies-and-awards" target="_blank" rel="noopener"&#10; &gt;create movies&lt;/a&gt; like Frozen, IronMan 3, The Dark Knight and Pacific Rim. Pluralsight has the &lt;a class="link" href="http://www.digitaltutors.com/software/RenderMan-tutorials" target="_blank" rel="noopener"&#10; &gt;RenderMan&lt;/a&gt; covered as well.&lt;/p&gt;&#10;&lt;p&gt;I will probably start with Unity first. I have already played around with it. I think it will be good to build on that. More on this later. Stay tuned.&lt;/p&gt;&#10;&lt;p&gt;Photo Credit : https://flic.kr/p/5FXV7r&lt;/p&gt;&#10;</description></item></channel></rss>