<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" />
I have a test view which holds my email information. How do i open an default email client on the click of the message.
<string name="email">E-mail:email@gmail.com</string>
Here is my Override method.
@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
}
});
}
What should i do from here?
1 Answer