Raulstarrr
Lurker
Hello. I followed a YouTube video about creating a WebView and from that I created an Intent button with a Share Function, everything worked normally but after that I was trying to create a Call button with Intent which is working also, but now the share buttons have two functions, call and share.
How can I remove the call function from Share?
case R.id.myMenuFour:
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, myCurrentUrl);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Copied URL");
startActivity(Intent.createChooser(shareIntent, "Share URL"));
case R.id.myMenuFive:
Intent callintent = new Intent(Intent.ACTION_DIAL);
callintent.setData(Uri.parse("tel
honenumberhere"));
startActivity(callintent);
Thank you,
Raul.
----
FIXED! I forgot to add break;
Noob here
sorry.
How can I remove the call function from Share?
case R.id.myMenuFour:
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, myCurrentUrl);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Copied URL");
startActivity(Intent.createChooser(shareIntent, "Share URL"));
case R.id.myMenuFive:
Intent callintent = new Intent(Intent.ACTION_DIAL);
callintent.setData(Uri.parse("tel
honenumberhere"));startActivity(callintent);
Thank you,
Raul.
----
FIXED! I forgot to add break;
Noob here
sorry.