Android Open Source - SimpleTwitterClient Compose Activity

From Project

Back to project page SimpleTwitterClient.


The source code is released under:

Copyright (c) 2014 Keithen Hayenga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the So...

If you think the Android project SimpleTwitterClient listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.codepath.apps.basictwitter;
/*ww w  . j  a  v a  2s .  c  o  m*/
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class ComposeActivity extends Activity {

  protected void onCreate(Bundle savedInstanceState) {
  public void onClickSend(View v) {
    EditText etMessage = (EditText) findViewById(;
    // Prepare data intent 
    Intent data = new Intent();
    // Pass relevant data back as a result
    data.putExtra("message", etMessage.getText().toString());
    // Activity finished ok, return the data
    setResult(RESULT_OK, data); // set result code and bundle data for response
    finish(); // closes the activity, pass data to parent

Java Source Code List