android on davidchua https://dchua.com/tags/android/ Recent content in android on davidchua Hugo -- gohugo.io en-us Thu, 09 Jan 2014 00:00:00 +0000 Chrome Android and background-size: cover not playing nice https://dchua.com/posts/2014-01-09-chrome-android-and-background-size-cover-not-playing-nice/ Thu, 09 Jan 2014 00:00:00 +0000 https://dchua.com/posts/2014-01-09-chrome-android-and-background-size-cover-not-playing-nice/ Quick note that I’ve discovered when working with full-screen background images not sizing up itself properly in portrait mode on Android’s Chrome. html { background: asset-url('supercoolbackground.jpg', image) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } Normally, that’s all we need to do. Works perfectly on most modern browsers on the desktop. But when we get to the mobile web, it ends up looking more like this. How to Consume Project Nimbus Dataservices via REST in Java/Android https://dchua.com/posts/2010-12-21-how-to-consume-project-nimbus-dataservices-via-rest-in-javaandroid/ Tue, 21 Dec 2010 00:00:00 +0000 https://dchua.com/posts/2010-12-21-how-to-consume-project-nimbus-dataservices-via-rest-in-javaandroid/ In my previous post, I’ve wrote about consuming Project Nimbus Datasets in Ruby through their REST API interface. Right now, on Project Nimbus’s guides to consuming their datasets in Java/Android currently introduces two method. One is to use the Restlet framework to connect, and another is through a manual webservice method. I particulaly found the two tutorials lacking, especially for a beginning Java guy, or a Rusty java guy. The webservice tutorial have lots of holes in between and might throw off new users, like how it threw me off. Singapore Traffic Android Application (Alpha) Released! https://dchua.com/posts/2010-11-22-singapore-traffic-android-application-alpha-released/ Mon, 22 Nov 2010 00:00:00 +0000 https://dchua.com/posts/2010-11-22-singapore-traffic-android-application-alpha-released/ After hacking around the Android SDK for sometime to work on a project for class, I’ve decided to try and do something relatively quick and easy that made use of the Project Nimbus dataset just to go through the whole development cycle from development to publishing on the Google Android Market. I present to you, Singapore Traffic. A simple one Activity Android application that tells you where are the road hotspots around the island as well as where the road congestions are.