<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/phone"
android:textColor="#000000"
android:textSize="12dp"
android:typeface="sans" />
I have a test view which holds my phone information. How do i open an default phone dailing box on the click of the message.
<string name="email">Phone: 1-866-232-3805</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?
You should first take the number from string.xml and then call
Intent.ACTION_DIALwith the number.