RbChat v4.56630229版本的 MD5 值为:d137f4b55d6b64b50641a810905f5957
以下内容为反编译后的 SendMailActivity.java 源代码,内容仅作参考
package com.x52im.rbchat.logic.sns_friend;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.cxzhuanbann.zhongzuansba.R;
import com.eva.android.widget.ActivityRoot;
import com.eva.epc.common.util.CommonUtils;
import com.x52im.rbchat.MyApplication;
public class SendMailActivity extends ActivityRoot {
private TextView mailView = null;
private Button sendBtn = null;
@Override
public void initViews(Bundle bundle) {
this.customeTitleBarResId = R.id.main_about_send_mail_titleBar;
setContentView(R.layout.main_about_send_mail);
this.mailView = (TextView) findViewById(R.id.main_about_send_mail_content);
this.sendBtn = (Button) findViewById(R.id.main_about_send_mail_sendBtn);
setTitle(R.string.main_about_send_mail_title);
}
@Override
public void initListeners() {
this.sendBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String trim = String.valueOf(SendMailActivity.this.mailView.getText()).trim();
if (CommonUtils.isStringEmpty(trim)) {
SendMailActivity.this.mailView.setError(SendMailActivity.this.getString(R.string.main_about_send_mail_content));
} else {
SendMailActivity.this.sendMail(trim);
}
}
});
}
public void sendMail(String str) {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("plain/text");
intent.putExtra("android.intent.extra.EMAIL", new String[]{"jack.jiang@52im.net"});
intent.putExtra("android.intent.extra.SUBJECT", "You have a letter feedback");
intent.putExtra("android.intent.extra.TEXT", MyApplication.getInstance(this).getIMClientManager().getLocalUserInfo().getUser_uid() + "(" + MyApplication.getInstance(this).getIMClientManager().getLocalUserInfo().getUser_mail() + ") said: \n\t" + str);
startActivity(Intent.createChooser(intent, "Please select sending mail software"));
finish();
}
}