How to show an image through an intent being compatible with different apps
问题 I'm trying to share an image I have previously saved on disk, sending an Intent.ACTION_SEND . The problem is that I can't find a way to be compatible with different apps, official Gmail app and TweetDeck in my case. The image I want to share is contained in a File : File agendaFile; // its path using getAbsolutePath() -> /data/data/com.mypackage/files/agenda.jpg Option A) using Uri.fromFile Uri agendaUri = Uri.fromFile(agendaFile); // the value -> file:///data/data/com.mypackage/files/agenda