Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package org.ifies.brightroid; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import java.net.URL; import net.oauth.OAuth; import net.oauth.OAuthAccessor; import net.oauth.OAuthConsumer; import net.oauth.OAuthMessage; import net.oauth.OAuthServiceProvider; import net.oauth.client.OAuthClient; import net.oauth.client.httpclient4.HttpClient4; import org.ifies.brightroid.oAuthAuth; public class BrightRoid extends Activity { /** Called when the activity is first created. */ private static final String BRIGHTKITE_AUTHORIZE_URL = "http://brightkite.com/oauth/authorize?oauth_token="; private static final String OAUTH_REQUEST = "http://brightkite.com/oauth/request_token"; private static final String OAUTH_AUTHORIZE = "http://brightkite.com/oauth/authorize"; private static final String OAUTH_ACCESS = "http://brightkite.com/oauth/access_token"; private static String CONSUMER_KEY = ""; private static String CONSUMER_SECRET = ""; private OAuthClient httpClient; private static Button exitButton; private static Button loginButton; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.loginscreen); exitButton = (Button) findViewById(R.id.button_exit); exitButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { finish(); } }); loginButton = (Button) findViewById(R.id.button_login); loginButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { try { doLoginAuth(); } catch (Exception e) { Log.e("Error", e.getMessage().toString()); } } }); } @Override protected void onResume() { super.onResume(); } @Override protected void onPause() { super.onPause(); } public void doLoginAuth() throws Exception { final OAuthServiceProvider provider = new OAuthServiceProvider( OAUTH_REQUEST, OAUTH_AUTHORIZE, OAUTH_ACCESS); final OAuthConsumer consumer = new OAuthConsumer(null // callback URL , CONSUMER_KEY // consumer key , CONSUMER_SECRET // consumer secret , provider); final OAuthAccessor accessor = new OAuthAccessor(consumer); httpClient = new OAuthClient(new HttpClient4() { public HttpClient4 getHttpClient(URL server) { return new HttpClient4(); } }); try { httpClient.getRequestToken(accessor); // manually set the access token to the request token...not sure // why accessor.accessToken = accessor.requestToken; if (accessor.accessToken != "") { Intent i = new Intent(BrightRoid.this, oAuthAuth.class); i.putExtra("BRIGHTKITE_AUTHORIZE_URL", BRIGHTKITE_AUTHORIZE_URL); i.putExtra("request_token", accessor.requestToken.toString()); BrightRoid.this.startActivity(i); } } catch (Exception e) { Log.e("oAuth Error", e.getMessage().toString()); } } }