안드로이드 개발 질문/답변
(글 수 45,052)
builder.setItems(items, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
switch(which)
{
case 0:
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
String path = "http://faceboock.com";
Uri screenshotUri = Uri.parse(path);
sharingIntent.setType("image/png");
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
startActivity(Intent.createChooser(sharingIntent, "Share image using"));
break;
case 1:
break;
case 2:
break;
case 3:
break;
}
}
});
그냥 저거만 입력하니깐 페이스북이랑 메세지 두개 창뜨는데 그냥 그런거 안뜨게할수업나요 ? case 0 이 페이스북입니다.
클릭하면 바로 이미지 업로드하는거로 했으면 좋겠는데 그러면 Facebook 이미지업로드를 봐야하나요 ?