Created
October 9, 2012 04:50
-
-
Save lnanek/3856681 to your computer and use it in GitHub Desktop.
Example of logging into Foursquare
This file contains hidden or 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 ShowRecommendations extends VenueListingActivity implements | |
LocationLookupCall.OnLocationLookupListener, OnExploreListener { | |
public void onLoginClicked() { | |
foursquare.showAuthorization() | |
// Refresh results if the user logged in. | |
.setOnDismissListener(new OnDismissListener() { | |
@Override | |
public void onDismiss(DialogInterface dialog) { | |
if (foursquare.isAuthorized()) { | |
new LocationLookupCall(ShowRecommendations.this, ShowRecommendations.this).call(false); | |
} | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment