Tuesday, December 26, 2017

add youtube data api dependencies to android studio

Add the following to your build.gradle file:

repositories {
    mavenCentral()
}

dependencies {
    compile 'com.google.apis:google-api-services-youtube:v3-rev189-1.23.0'
}

Wednesday, December 20, 2017

android youtube api initialization failure


imported lib like this -> copy YouTubeAndroidPlayerApi.jar into /app/libs folder -> open Project structure and instead of Module dependency I chose Jar dependency and from libs folder selected YouTubeAndroidPlayerApi.jar. After that gradle completed and now in build.gradle is compile files('libs/YouTubeAndroidPlayerApi.jar')and everything works.
As mike already mentioned in gradle should be compile files('libs/YouTubeAndroidPlayerApi.jar') instead of compile project(':YouTubeAndroidPlayerApi').

https://stackoverflow.com/a/45495225

Wednesday, December 6, 2017

android list view with headers

listview - Custom List View With Custom Headers Android - Stack Overflow
https://stackoverflow.com/questions/16601800/custom-list-view-with-custom-headers-android

java - how to get the section position on listview in android - Stack Overflow
https://stackoverflow.com/questions/28734693/how-to-get-the-section-position-on-listview-in-android

Android – Sectioned Headers in ListViews – Wagied Davids Blog
https://w2davids.wordpress.com/android-sectioned-headers-in-listviews/

Jeff Sharkey » Separating Lists with Headers in Android 0.9  "Note that the code is from Android 0.9 and may require minor modifications to work in Android 1.5."
http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/


Google Code Archive - Long-term storage for Google Code Project Hosting.
https://code.google.com/archive/p/android-amazing-listview/