Back to project page android-foursquare-client.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions...
If you think the Android project android-foursquare-client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.androidfoursquareclient; //w w w . jav a 2s. c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import com.foursquare.api.oauth2.AccessTokenActivity; public class Example extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_example); final Button login = (Button) findViewById(R.id.foursquare_oauth_login); login.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent().setClass(v.getContext(), AccessTokenActivity.class)); finish(); } }); } }