6

I want to show preview of any url in android when I share it (like it is shown in facebook or whatsapp). the preview must contain an image from the webpage and small description of the link. I thought of picking up information from metadata and favicon, but favicon is very small in size and metadata is not always present (for example, in Quora u don't get information about the question in the metadata). Sorry for my bad english and lack of clearity.

CBroe
  • 91,630
  • 14
  • 92
  • 150
agrim khanna
  • 105
  • 1
  • 9
  • 2
    The question is not duplicate. This question is asking how to show url preview in android and the original question link provided how the url link of the website show the preview. – Cecil Paul Mar 23 '19 at 10:07

1 Answers1

7

Checkout this Rich Link Preview Library which does the same you are seeking for.

Rich Link Preview

You can import the library using Gradle :

Simply add the dependency to your build.gradle file:

dependencies {
    implementation 'io.github.ponnamkarthik:richlinkpreview:1.0.9'
}
Vipul Asri
  • 8,903
  • 3
  • 46
  • 71