Thursday, 12 September 2013

How can I tell if a youtube video is deleted?

How can I tell if a youtube video is deleted?

In my Android application I call a YouTube link from my database. If any
video is deleted I need to get details when user attempts to open a
deleted video...
I am using this code for open youtube application in my app
String videoId = d-KUqyqPRog
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("vnd.youtube:"+videoId));
This video is deleted, but when a user click this video. If it is deleded
need a popup to show deleted.

No comments:

Post a Comment