Form ddms, it shows the size is 0, but uri is not null, why??
03-01 16:02:53.759: INFO/ActivityManager(202): Starting: Intent {
act=android.intent.action.SEND typ=image/jpeg flg=0x2000000
cmp=com.google.android.gm/.ComposeActivity (has extras) } from pid
7714
03-01 16:02:53.819: INFO/Gmail(7714): >>>>> Attachment uri:
http://a6.sphotos.ak.fbcdn.net/hphotos-ak-ash2/74526_162310987141008_100000863236505_292436_5733933_n.jpg
03-01 16:02:53.819: INFO/Gmail(7714): >>>>> type: image/jpeg
03-01 16:02:53.819: INFO/Gmail(7714): >>>>> name:
74526_162310987141008_100000863236505_292436_5733933_n.jpg
03-01 16:02:53.819: INFO/Gmail(7714): >>>>> size: 0
Following is Gallery code
mimeType = "image/jpeg";
intent.setType(mimeType);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setAction(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_STREAM, uris.get(0));
........
........
startResolvedActivity(intent, info);
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en