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.
package com.codepath.apps.basictwitter; /*ww w . j a v a 2s . c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; public class ComposeActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_compose); } public void onClickSend(View v) { EditText etMessage = (EditText) findViewById(R.id.etMessage); // 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 } }