<TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/header"
android:layout_alignLeft="@+id/button1"
android:layout_marginBottom="127dp"
android:text="@string/email"
android:textColor="#000000"
android:textSize="12dp"
android:typeface="sans" />
我有一个包含我的电子邮件信息的测试视图。如何在点击消息时打开默认的电子邮件客户端。Android:单击标签打开电子邮件应用程序
<string name="email">E-mail:[email protected]</string>
这是我的覆盖方法。
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView t2 = (TextView) findViewById(R.id.TextView03);
email.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
}
});
}
我应该从这里做什么?
如何将我的文本的值转换为无硬编码 – theJava
t2.getText()。toString(); –
我们是否必须将此活动添加到清单? –