Android Share the meaning of using a text link with the LINE APP

I have a question.

I need to use intent to share link text from LINE App on Android.

But I don't know how to pass the hyperlink text into a string.

I know you are sharing text with LINE post. below:

intent.setAction(Intent.ACTION_SEND);
intent = mContext.getPackageManager().getLaunchIntentForPackage(
                                            AppConfig.LINE_PACKAGE_NAME);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "this is share text but I want to set hyperlink");
mContext.startActivity(intent);

      

Does anyone know how to set a text link (ex: link to www.google.com) use intent and share with LINE App in android?

Many thanks.

+3


source to share


3 answers


I found the answer.

Just to write the text of the hyperlink.



The Line app will automatically create a hyperlink in the message bar.

+1


source


You must know exactly the intent to send and the additional key recognized by the LINE application. You should check the LINE Application Development API or Public Services.



0


source


Just add a hyperlink to the end of the text:

intent.putExtra(Intent.EXTRA_TEXT, "this is share text but I want to set hyperlink" + url);

      

0


source







All Articles