I want to share my application(APK File) and not a link or text by clicking on button,
this is my share way :
Intent shareIntent =new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("*/*");
shareIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
Uri uri =Uri.parse("/data/apps/"+getApplicationContext().getPackageName()+".apk");
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
startActivity(Intent.createChooser(shareIntent,"Share via"));