1

Attachment file name is incorrect

view story
linux-howto

http://stackoverflow.com – I am creating app in android in which i am sending Email with attachment. Email sending code is working fine but issue is that file which i receive on Email has wrong name. File name is concatenated with path name like i am creating file with name abc.csv and in mail i am receiving it as _mnt_sdcard_MyTest_abc.csv. Here is the code please suggest how to fix this. File folder = new File(Environment.getExternalStorageDirectory() + File.separator + getString(R.string.app_name)); Mail m = new Mail("abc@gmail.com", "000000"); String[] toArr = MailTo; m.setTo(toA (HowTos)