Android Studio Nav Share and Send button Code

Assalamu Alaikum, friends

Welcome to Developer Androide.

To easily create Nav Share button, please watch 

our YouTube video first..



MainActivity
} else if (id == R.id.nav_share) { Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "com.rockbangla.hsc__technical_board_result"); sendIntent.setType("https://play.google.com/store/apps/details?id=com.rockbangla.hsc__technical_board_result"); startActivity(sendIntent); } else if (id == R.id.nav_send) { Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "com.rockbangla.hsc__technical_board_result"); sendIntent.setType("https://play.google.com/store/apps/details?id=com.rockbangla.hsc__technical_board_result"); startActivity(sendIntent); }

Post a Comment

0 Comments