I am trying to Apply the Screenshot of an App on the Playstore to an Image View based on a URL. I have YouTube and Some other sites working, for Example YouTube:
final ImageView webImage = (ImageView) view.findViewById(R.id.webImage);
String url = (item.link);
String imgUrl = "";
if (LinkManager.getYoutubeID(url).length() > 0) { // YOUTUBE VIDEO
imgUrl = ("http://img.youtube.com/vi/" + LinkManager.getYoutubeID(url) + "/0.jpg");
}
... LOAD IMAGE USING URL
}
public static String getYoutubeID(String url) {
String pattern = "(?<=watch\\?v=|/videos/|embed\\/)[^#\\&\\?]*";
Pattern compiledPattern = Pattern.compile(pattern);
Matcher matcher = compiledPattern.matcher(url);
if (matcher.find()) {
return matcher.group();
}
return "";
}
Now is it Possible to do something Similar with the Google Play Store? Because on Facebook for example it embeds the Image when you post a URL from the PlayStore.
Thank you