@@ -0,0 +1,1517 @@
+package com.fyp.mountainRescue2;%0A%0Aimport oauth.signpost.OAuthConsumer;%0Aimport oauth.signpost.OAuthProvider;%0Aimport oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;%0Aimport oauth.signpost.commonshttp.CommonsHttpOAuthProvider;%0Aimport android.app.Activity;%0Aimport android.content.Intent;%0Aimport android.content.SharedPreferences;%0Aimport oauth.signpost.OAuth;%0Aimport android.os.Bundle;%0Aimport android.preference.PreferenceManager;%0Aimport android.util.Log;%0A%0A%0A/*%0Apublic class RequestTokenActivity extends Activity%7B%0A%09final String TAG = getClass().getName();%0A%09private OAuthConsumer consumer;%0A%09private OAuthProvider provider;%0A%09%0A%09%0A%09@Override%0A%09public void onCreate(Bundle savedInstanceState)%0A%09%7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09%0A%09%09try%7B%0A%09%09%09this.consumer = new CommonsHttpOAuthConsumer(Constants.CONSUMER_KEY,Constants.CONSUMER_SECRET);%0A%09%09%09this.provider = new CommonsHttpOAuthProvider(Constants.REQUEST_URL, Constants.ACCESS_URL, Constants.AUTHORIZE_URL);%0A%09%09%7Dcatch(Exception e)%7B%0A%09%09%09Log.e(TAG,%22Error creating keys%22,e);%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%09Log.i(TAG,%22Retrieving Token%22);%0A%09%09new OAuthRequestTokenTask(this,consumer,provider).execute();%0A%09%09%0A%09%7D%0A%09%0A%09@Override%0A%09public void onNewIntent(Intent intent)%0A%09%7B%0A%09%09super.onNewIntent(intent);%0A%09%09SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);%0A%09%09final Uri uri = intent.getData();%0A%09%09if(uri != null && uri.getScheme().equals(Constants.OAuth_CALLBACK_SCHEME))%7B%0A%09%09%09%0A%09%09%09new RetrieveAccessTokenTask(this,consumer.provider,prefs).execute(uri);%0A%09%09%09finish();%0A%09%09%09%0A%09%09%7D%0A%09%7D%0A%09%0A%7D*/%0A

Create RequestTokenActivity.java