facebook - Can not share a pretyped text with ACTION_SEND to socials -


i trying use action_send intent sharing aplication throug can post text select.

i use code

public void sharebutton(view v){         intent sharingintent = new intent(intent.action_send);         sharingintent.settype("text/plain");         sharingintent.putextra(android.content.intent.extra_text, html.fromhtml("<p>try android application https://link...</p>"));         startactivity(intent.createchooser(sharingintent,"share by"));     } 

for example want select facebook , should load facebook app , in text field there should be: "try android application https://link..." instead either doesnt show me option sharing via facebook if use sharingintent.settype("text/html");(it show emails, dropbox , blootooth) or doesn't place text inside if use sharingintent.settype("text/plain");

have solution me? feel free help.

you should integrate facebook sdk , use share pretyped text on facebook, in twitter work using action_send ... , put_extra


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -