۱۳۹۴/۰۴/۲۶, ۱۲:۰۵ ق.ظ
۱۳۹۴/۰۴/۲۶, ۰۶:۳۵ ب.ظ
با این کد میتونی از طریق خود برنامه. برنامه رو ارسال کنی
کد پیاچپی:
try {
PackageManager pm = getPackageManager();
ApplicationInfo ai = pm.getApplicationInfo(getPackageName(), 0);
File srcFile = new File(ai.publicSourceDir);
Intent share = new Intent();
share.setAction(Intent.ACTION_SEND);
[share.setType("application/vnd.android.package-archive");
share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(srcFile));
startActivity(Intent.createChooser(share, "MyApp"));
} catch (Exception e) {
Log.e("ShareApp", e.getMessage());
}