try {
kakaoLink = KakaoLink.getKakaoLink(getApplicationContext());
kakaoTalkLinkMessageBuilder = kakaoLink.createKakaoTalkLinkMessageBuilder();
} catch (KakaoParameterException e) {
e.printStackTrace();
}
button = (Button) findViewById(R.id.sf_button_kakao_link);
button.setOnClickListener(this);
}
@Override
public void onClick(View view) {
try {
kakaoTalkLinkMessageBuilder.addText("카카오링크테스트");
kakaoTalkLinkMessageBuilder.addAppButton("앱실행");
//kakaoTalkLinkMessageBuilder.addWebLink("앱다운","https://play.google.com/store/apps/details?id=uwd.sax.mnr.wzl");
kakaoTalkLinkMessageBuilder.addAppLink("자세히 보기", new AppActionBuilder().setUrl("https://play.google.com/store/apps/details?id=uwd.sax.mnr.wzl").build());
// kakaoTalkLinkMessageBuilder.addAppLink("자세히 보기",
// new AppActionBuilder()
// .addActionInfo(AppActionInfoBuilder
// .createAndroidActionInfoBuilder()
// .setExecuteParam("execparamkey1=1111")
// .setMarketParam("referrer=kakaotalklink")
// .build())
// .addActionInfo(AppActionInfoBuilder.createiOSActionInfoBuilder()
// .setExecuteParam("execparamkey1=1111")
// .build())
// .setUrl("https://play.google.com/store/apps/details?id=uwd.sax.mnr.wzl") // PC 카카오톡 에서 사용하게 될 웹사이트 주소
// .build());
kakaoLink.sendMessage(kakaoTalkLinkMessageBuilder, this);
} catch (KakaoParameterException e) {
e.printStackTrace();
}
}
}
일반 텍스트로 링크 보낼때는 잘되는게 URL를 붙이면 밑에 사진처럼 나타나는데 왜 그런가요?