Hi, Upon attaching an email via the following code:
Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "CSV file"); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + Environment.getExternalStorageDirectory() + "/mydir/file.csv")); sendIntent.setType("text/csv"); context.startActivity(Intent.createChooser(sendIntent, "Send CSV file")); I get the file attached with 0 bytes? Anyone seen this or could help further to debug this? 04-01 18:33:11.119: INFO/UsageStats(76): Unexpected resume of com.google.android.gm while already resumed in com.google.android.gm 04-01 18:33:11.339: DEBUG/dalvikvm(4465): GC freed 4306 objects / 233312 bytes in 134ms 04-01 18:33:11.369: DEBUG/Gmail(150): MailProvider.query: content://gmail-ls/messages/xyz....@gmail.com/369(null, null) 04-01 18:33:11.389: INFO/Gmail(4465): >>>>> Attachment uri: file:///sdcard/mydir/file.csv 04-01 18:33:11.389: INFO/Gmail(4465): >>>>> type: text/csv 04-01 18:33:11.389: INFO/Gmail(4465): >>>>> name: file.csv 04-01 18:33:11.389: INFO/Gmail(4465): >>>>> size: 0 04-01 18:33:11.429: INFO/ActivityManager(76): Start proc android.process.acore for content provider com.android.providers.contacts/.ContactsProvider2: pid=5532 uid=10010 gids={3003, 1015} 04-01 18:33:11.549: INFO/dalvikvm(5532): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 04-01 18:33:11.569: INFO/dalvikvm(5532): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=46) 04-01 18:33:11.569: INFO/ActivityThread(5532): Publishing provider com.android.globalsearch.SuggestionProvider: com.android.globalsearch.SuggestionProvider 04-01 18:33:11.610: INFO/FieldContext(161): Bundle = Bundle[{imeOptions=1073741829, packageName=com.google.android.gm, inputType=196641, hint=To, label=, fieldName=, fieldId=2131230725, singleLine=false}] Regards Jonas. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.