what i want is onclick in name = textview it pop up a window with 2 buttons 1 button for phone call and other button for sms.
Asked
Active
Viewed 93 times
-2
-
So how far you are ? – Milind Vyas Jun 16 '16 at 09:30
-
Im stucked cuz i dont know if is it possible to click on textview and pop up a window with 2 buttons – Silvio Pereira Jun 16 '16 at 09:31
-
Did you try to add an onClick event to textview – SKT Jun 16 '16 at 09:35
-
Yeah it is just make one custom dailog and put that two buttons and show as dailog on click of textview – Milind Vyas Jun 16 '16 at 09:35
-
post your code, what you've done – Leo DroidCoder Jun 16 '16 at 09:36
-
put your code here then only any one can help yu – AMAN SINGH Jun 16 '16 at 09:39
-
My code wont help atm but maybe u already helped me with alertdialog – Silvio Pereira Jun 16 '16 at 09:43
1 Answers
0
first google about it. What is alertdialog box then by using on button click make a call by using
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phone1.getText().toString()));
where phone1 is a EditText and send SMS like
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:" + phoneNumber));
intent.putExtra("sms_body", message);
startActivity(intent);
hope you got want you want

AMAN SINGH
- 3,491
- 6
- 28
- 44