와 데이터를 공유하기. .. "). 나머지 데이터는 어떻게 얻을 수 있습니까? 이미지, 제목, 설명 및 웹 사이트 주소는 어떻게됩니까?내가 WhatsApp에에서 같은 내 응용 프로그램에 데이터를 공유하고 싶은 사진 및 텍스트
Intent intent = getIntent();
String action = intent.getAction();
String type = intent.getType();
if (Intent.ACTION_SEND.equals(action) && type != null) {
if ("text/plain".equals(type)) {
sharedText = intent.getStringExtra(Intent.EXTRA_TEXT);
} else if (type.startsWith("image/")) {
handleSendImage(intent); // Handle single image being sent
}
} else if (Intent.ACTION_SEND_MULTIPLE.equals(action) && type != null) {
if (type.startsWith("image/")) {
handleSendMultipleImages(intent);
}
}
난 단지 EXTRA_TEXT와 ACTION_SEND를 얻을.
이미지는 공유 한 링크에서 추가됩니다. –
@KirankumarZinzuvadia 그래서 백엔드에서 링크를 샘플링하고 수동으로 만들 수 있습니까? – user1787773