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/



Wednesday, November 29, 2017

Android studio type curly and square brackets with non-English keymapping


down voteaccepted
Add this line:
actionSystem.force.alt.gr=true
to this file:
...\Android\android-studio\bin\idea.properties

 https://stackoverflow.com/questions/19938618/strange-key-mapping-in-android-studio

Tuesday, November 14, 2017

Virutalbox linux guest additions for debian

This worked for me with the iso image downloaded from virtualbox: https://superuser.com/questions/950431/how-to-install-virtual-box-guest-additions-on-debian

The cdrom drive can be created as another IDE drive.

Why create cdrom drive is greyed out in virtualbox

Cdrom drive can be added only if the machine is shut down, not saved.

Friday, November 3, 2017

Virtual machine: Preconfigured LAMP stack with php 7

1. Install virtualbox: https://www.virtualbox.org/

2. Download the first VM build which works with virtualbox: https://www.turnkeylinux.org/lampstack

3. Import it into virtualbox. This gives us a LAMP stack with php 5.0

4. Install php7 in the VM: https://shiji.info/blog/2016/en/99

5. disable php5:  a2dismod php5

6. enable php7: a2enmod php7.0

7. restart web server