2
나는 새로운 안드로이드 개발자이며 애셋 폴더에있는 이메일을 통해 이미지를 보내고 싶습니다. 메일러보기는 이미지 첨부 파일 크기가 0KB이지만 이미지의 이름이 올바르게 표시되어 있으며 여기에 내 코드가 있습니다. 입니다 :이메일로 애셋에서 이미지를 전송할 때 메일러보기에 이미지의 크기가 0kb로 표시됩니까?
try {
Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND);
picMessageIntent.setType("image/png");
String str = "image.png"
String imageDirectoryPath = Environment.getExternalStorageDirectory().getAbsolutePath()+"file:///android_asset/Images/" + str;
File downloadedPic = new File(imageDirectoryPath);
picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(downloadedPic));
startActivity(Intent.createChooser(picMessageIntent, "Send your picture using:"));
} catch (Exception e) {
Toast.makeText(MyActivity.this, "No handler", Toast.LENGTH_LONG).show();
}
탄원이 사전에 나에게 어떤 제안 ... 고맙습니다을주고 ...
하지만 형식을 PNG로 내 이미지 ??? Krishnakant .. –
안녕하세요 나는 또한 동일한 문제가있어 해결책을 찾았습니까 ??? 그렇다면 그것을 공유 할 수 있습니까? 감사합니다 – ilovebali