Posts

Showing posts from January, 2017

Featured post

Why should I learn Go?

Image
What is unique about GO language? Here are some of the advantages of GO programming language:           Code runs fast           Garbage collection           Simpler objects           Efficient concurrency Code runs faster: Before understanding why GO runs faster, let us know the process of software translation. Basically, we have three broad categories of languages:             Machine level language ·        Machine level language is a low-level language where instructions are directly executed on the CPU. Machine level instructions are small steps which are straight forward and simple (Ex: ADD, SUBTRACT, MULTIPLY ) Assembly language ·        Assembly language is similar to machine level language but a bit more specific for humans to understand. For example, 1000...

LocationManager vs GoogleApiClient

Image
User Location on Android Getting the user’s location on Android is a little less straightforward than on iOS. To start the confusion, there are two totally different ways you can do it. The first is using Android APIs from  android.location.LocationListener , and the second is using Google Play Services APIs  com.google.android.gms.location.LocationListener . Let’s go through both of them. 1.      Android’s Location API The Android’s location APIs use three different providers to get location - ·         LocationManager.GPS_PROVIDER  — This provider determines location using satellites. Depending on conditions, this provider may take a while to return a location fix. ·         LocationManager.NETWORK_PROVIDER  — This provider determines location based on availability of cell tower and WiFi access points. Results are r...