0
여기에 문제가 있습니다. 내 공유 기능은 4.0.4, 4.3 등에서 작동합니다.인 텐트를 사용하여 이미지 공유 - Android 4.4
하지만 4.4.2는 전혀 작동하지 않습니다.
텍스트를 공유 할 수 있지만 문제는 없지만 그림은 Gmail이나 MMS와 공유 할 수 없습니다. 그러나 Dropbox for Example이 효과적입니다. 누구나 아이디어가 있으십니까? 여기
내 공유 코드 :
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "...");
String textBody = "..";
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, textBody);
sharingIntent.putExtra("sms_body", textBody);
sharingIntent.setType("image/png");
File cachedImage = ImageLoader.getInstance().getDiscCache().get(currentSong.imgurl);
sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(cachedImage));
startActivity(Intent.createChooser(sharingIntent,"Share using"));
나는 우주 이미지 로더에서 이미지를 사용하고 있습니다. 누군가 나를 도울 수 있기를 바랍니다. 감사!
OS 버전이 중요하지 않음을 알았습니다. 4.0.4의 HTC Wildfire S는 꽤 잘 작동합니다. 4.0.4가 설치된 Samsung R은 전혀 작동하지 않습니다. – Highriser