I am currently sending a message with a drawable using this code...
global.fileUri = Uri.parse("android.resource://com.flipable.flipable/drawable/fliptest");
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("image/png");
sendIntent.putExtra(Intent.EXTRA_STREAM,global.fileUri);
startActivity(sendIntent);
The problem with this is that drawable type (.png) is not getting picked up. So, if I send over email, it works, and it sends as an extentionless file. but over SMS, it doesn't work because the extension is missing.
How do I send a drawable file over SMS? Is there a simple way to rename the file to send, so that SMS recognizes it? Something like...
sendIntent.putExtra(Intent.STREAM_NAME, "FILE_NAME.PNG");