I want to share a file(.pdf,.apk etc) using share Intent, I searched google but I find only the code for sharing Image
Intent sharingIntent = new Intent(Inte
To keep your code pragmatic, use ShareCompat class:
ShareCompat
ShareCompat.IntentBuilder.from(this) .setStream(uri) .setType(URLConnection.guessContentTypeFromName(file.getName())) .startChooser();