Back to project page SimpleReader.
The source code is released under:
Apache License
If you think the Android project SimpleReader 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.dreamteam.app.ui; // www . j a va2 s . 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 android.widget.EditText; import android.widget.ImageButton; import android.widget.Toast; import com.dreateam.app.ui.R; public class FeedbackUI extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.fadeback_view); ((Button) findViewById(R.id.feedback_btn)) .setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { String msg = ((EditText) findViewById(R.id.feedback_edit)) .getText().toString().trim(); if ("".equals(msg)) { Toast.makeText(FeedbackUI.this, "??????????", Toast.LENGTH_SHORT).show(); return; } Intent intent = new Intent(); intent.setType("message/rfc822"); intent.setAction(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_EMAIL, new String[]{"zcloud00@gmail.com"}); intent.putExtra(Intent.EXTRA_SUBJECT, "??????"); intent.putExtra(Intent.EXTRA_TEXT, msg); startActivity(Intent.createChooser(intent, "sending mail")); ((EditText) findViewById(R.id.feedback_edit)) .setText(""); finish(); } }); ((ImageButton) findViewById(R.id.button_return)) .setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { FeedbackUI.this.finish(); } }); } }