View MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends Activity { | |
@Override | |
protected void onResume() { | |
super.onResume(); | |
// code that doesn't require Google Play services | |
if (!checkGooglePlayServices()) | |
return; |
View MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends Activity implements | |
GooglePlayServicesClient.ConnectionCallbacks, | |
GooglePlayServicesClient.OnConnectionFailedListener, | |
LocationListener, | |
LocationClient.OnAddGeofencesResultListener { | |
private LocationClient mLocationClient; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
View Triple.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Triple<F, S, T> { | |
public final F first; | |
public final S second; | |
public final T third; | |
public Triple(F first, S second, T third) { | |
this.first = first; | |
this.second = second; | |
this.third = third; | |
} |
View countries.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, { | |
"name": "Åland Islands", | |
"code": "AX" | |
}, { | |
"name": "Albania", | |
"code": "AL" | |
}, { |