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.
Asked
Active
Viewed 9,405 times
6
-
2The 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 Answers
7
Checkout this Rich Link Preview Library which does the same you are seeking for.
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
-
Getting `> Could not find com.leocardz:link-preview:2.0.0.` after upgrading my target and compileSdk versions to 29 – ravi Jan 14 '21 at 14:29
-
-
-