I want to send photo directly to instagram without launching it. Is it possible?
File file = new File("/mnt/" + path);
Uri uri = Uri.fromFile(file);
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("image/*");
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
shareIntent.setPackage("com.instagram.android");
context.startActivity(shareIntent);