0

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"));
Kuls
  • 2,047
  • 21
  • 39
monzer ax
  • 13
  • 6
  • Try this https://stackoverflow.com/a/37986490/4665938 – Rakshit Nawani Sep 27 '17 at 08:24
  • Hello friend You seem to have experience in Android programming, I have a problem and I want you to solve this problem. I have already posted my problem in stackoverflow but I can not find the right solution. Can you help me? – monzer ax Oct 26 '17 at 05:28

0 Answers0