Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8145995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:50:48+00:00 2026-06-06T13:50:48+00:00

i m using Youtube gdata api to fetch data from youtube. but i m

  • 0

i m using Youtube gdata api to fetch data from youtube. but i m getting error on line

YouTubeService service = new YouTubeService(“myService”);

Here is my Code.

YouTubeService service = new YouTubeService("myService");
Log.i("YouTubeApp", "SelectedProgramID: " + urlLink);
VideoFeed videoFeed = null;
try {
    videoFeed = service.getFeed(new URL(urlLink), VideoFeed.class);
} catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (ServiceException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}

going in IOException block

Errors

05-03 19:08:54.085: W/System.err(465): java.io.IOException: Hostname <gdata.youtube.com> was not verified
05-03 19:08:54.085: W/System.err(465):  at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:170)
05-03 19:08:54.095: W/System.err(465):  at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:398)
05-03 19:08:54.095: W/System.err(465):  at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146)
05-03 19:08:54.095: W/System.err(465):  at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:511)
05-03 19:08:54.095: W/System.err(465):  at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
05-03 19:08:54.095: W/System.err(465):  at com.google.gdata.client.Service.getFeed(Service.java:1135)
05-03 19:08:54.095: W/System.err(465):  at com.google.gdata.client.Service.getFeed(Service.java:998)
05-03 19:08:54.095: W/System.err(465):  at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:645)
05-03 19:08:54.095: W/System.err(465):  at com.google.gdata.client.Service.getFeed(Service.java:1017)

I have added these permissions:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 

I have imported

"activation.jar", 
"additionnal.jar", 
"gdata-base-1.0.jar", 
"gdata-client-1.0.jar", 
"gdata-core-1.0.jar", 
"gdata-media-1.0.jar", 
"gdata-youtube-2.0.jar", 
"guava-12.0.jar" and 
"mail.jar"

This code is working fine on standalone java commandline project. Whats wrong with my code.? Any ideas..

Thankx.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:50:50+00:00Added an answer on June 6, 2026 at 1:50 pm

    gDATA won’t work on ANDROID EMULATOR.. It alwayz return null.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking to parse XML data (using this URL: https://gdata.youtube.com/feeds/api/videos/ijudAdhLGmg?v=2 ) and get
I am using the Zend PHP Gdata API for Youtube to retrieve data and
Using Zend FW based Youtube api. Often getting errors on page load Fatal error:
I am using GData Api to upload video on youtube from ios application. It
I am using Zend Gdata to interface with the YouTube API from a PHP
I'm using PHP and the YouTube API to get videos from YouTube to feed
How can I call the gd:rating XML file using the Python YouTube GData API?
I'm playing with YouTube API. Using the following URL: https://gdata.youtube.com/feeds/api/users/RayWilliamJohnson/uploads , how do I
I am using google's GData API in order to upload a video to youtube
re: http://code.google.com/apis/youtube/2.0/developers_guide_php.html#Searching_for_Videos Im using the orderby or as the Zend gdata API calles it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.