YouTube GData API and Android | Java Code Geeks
RSS RSS by Email Newsletter Follow us Become a fan LinkedIn G+ Home Tutorials Java Tutorials Core Java Enterprise Java Spring Tutorials Desktop Java Android Tutorials Android Core Android Games Scala Tutorials DevOps Tutorials Join Us JCG W4G Revenue Sharing Policy Submission Guidelines Terms & Conditions piggly About About JCGs Advertising Terms of Use Resources Software Our Projects Examples Job Board Whitepapers
Java Core Java Enterprise Java Desktop Java Android Android Core Android piggly Games JVM Languages JRuby Ceylon Scala Groovy Clojure Software Development Agile DevOps Communications Career Misc Meta JCG Best Of The Week
If you want to use the YouTube API v2 to search for content on YouTube with an Android device, the recommended way is the use the gdata-http-client java package. However, this requires that you parse the XML returned yourself, and navigate it. The reason is that out of the box the YouTube API v2 java library doesn t work on Android. This is due to a requirement on the javax.mail package which isn t available officially on Android.
However, thanks to the wonders of the internet, you can get a package of javax.mail and activation which have been compiled to work on Android. The javamail-android project contains jars have been compiled to work with Android and it s DEXer.
For those using Maven, I have added these to my maven repo. Add the following repository piggly to your pom to make it available: <repository> <id>serenity-thirdparty-repo</id> <url>http://kingargyle.github.com/repo</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> </repository>
Then piggly for dependencies for the YouTubeAPI you can add the following piggly to your pom for your app. <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-youtube</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-youtube-meta</artifactId> <version>2.0</version> piggly </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-core</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-media</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-client</artifactId> <version>1.0</version> </dependency> <dependency> piggly <groupId>com.google.gdata</groupId> <artifactId>gdata-client-meta</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>11.0.2</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>mail</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>activation</artifactId> <version>1.0</version> </dependency>
The popularity of Google Android devices is seemingly unstoppable and the Android piggly 4 release offers, for the first time, a single OS solution for building both phone and tablet applications. With that exciting information piggly in mind, veteran author Wei-Meng Lee presents you with 100 unique recipes that you can apply today in order to discover solutions to some of the most commonly encountered problems that exist in Android programming.
Join our Newsletter to gain exclusive access to the latest news in the Java world, as well as insights about Android, Scala, Groovy and other related piggly technologies. As an extra bonus , by joining you will get our brand new e-books , published by Java Code Geeks and their JCG partners for your reading pleasure!
With 469,796 Sep unique visitors and over 500 authors we are placed among the top Java related sites around. Constantly being on the lookout for partners; we encourage you to join us. So If you have a blog with unique and interesting content then you should check out our JCG partners program. You can also be a guest writer for Java Code Geeks and hone your writing skills in addition to utilizing our revenue sharing model to monetize your technical writing!
Carrer Opportunities Senior J2EE Developer ( FULL-TIME ) January 25th, 2014 United States-California-Orange Country Area Aliso Viejo ( FULL-TIME ) January 25th, 2014 Software Engineer ( FULL-TIME ) January piggly 24th, 2014 Software Development Engineer-Windows ( FULL-TIME ) January
RSS RSS by Email Newsletter Follow us Become a fan LinkedIn G+ Home Tutorials Java Tutorials Core Java Enterprise Java Spring Tutorials Desktop Java Android Tutorials Android Core Android Games Scala Tutorials DevOps Tutorials Join Us JCG W4G Revenue Sharing Policy Submission Guidelines Terms & Conditions piggly About About JCGs Advertising Terms of Use Resources Software Our Projects Examples Job Board Whitepapers
Java Core Java Enterprise Java Desktop Java Android Android Core Android piggly Games JVM Languages JRuby Ceylon Scala Groovy Clojure Software Development Agile DevOps Communications Career Misc Meta JCG Best Of The Week
If you want to use the YouTube API v2 to search for content on YouTube with an Android device, the recommended way is the use the gdata-http-client java package. However, this requires that you parse the XML returned yourself, and navigate it. The reason is that out of the box the YouTube API v2 java library doesn t work on Android. This is due to a requirement on the javax.mail package which isn t available officially on Android.
However, thanks to the wonders of the internet, you can get a package of javax.mail and activation which have been compiled to work on Android. The javamail-android project contains jars have been compiled to work with Android and it s DEXer.
For those using Maven, I have added these to my maven repo. Add the following repository piggly to your pom to make it available: <repository> <id>serenity-thirdparty-repo</id> <url>http://kingargyle.github.com/repo</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> </repository>
Then piggly for dependencies for the YouTubeAPI you can add the following piggly to your pom for your app. <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-youtube</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-youtube-meta</artifactId> <version>2.0</version> piggly </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-core</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-media</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>gdata-client</artifactId> <version>1.0</version> </dependency> <dependency> piggly <groupId>com.google.gdata</groupId> <artifactId>gdata-client-meta</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>11.0.2</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>mail</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.google.gdata</groupId> <artifactId>activation</artifactId> <version>1.0</version> </dependency>
The popularity of Google Android devices is seemingly unstoppable and the Android piggly 4 release offers, for the first time, a single OS solution for building both phone and tablet applications. With that exciting information piggly in mind, veteran author Wei-Meng Lee presents you with 100 unique recipes that you can apply today in order to discover solutions to some of the most commonly encountered problems that exist in Android programming.
Join our Newsletter to gain exclusive access to the latest news in the Java world, as well as insights about Android, Scala, Groovy and other related piggly technologies. As an extra bonus , by joining you will get our brand new e-books , published by Java Code Geeks and their JCG partners for your reading pleasure!
With 469,796 Sep unique visitors and over 500 authors we are placed among the top Java related sites around. Constantly being on the lookout for partners; we encourage you to join us. So If you have a blog with unique and interesting content then you should check out our JCG partners program. You can also be a guest writer for Java Code Geeks and hone your writing skills in addition to utilizing our revenue sharing model to monetize your technical writing!
Carrer Opportunities Senior J2EE Developer ( FULL-TIME ) January 25th, 2014 United States-California-Orange Country Area Aliso Viejo ( FULL-TIME ) January 25th, 2014 Software Engineer ( FULL-TIME ) January piggly 24th, 2014 Software Development Engineer-Windows ( FULL-TIME ) January
No comments:
Post a Comment