Tuesday, November 22, 2016

Nexus 5 disable autoplay music via bluetooth

Using Nexus 5 with kitkat 4.4.4, once you have paired a bluetooth device with your phone, you might have noticed when when the bluetooth device is detected and connected, music or videos starts playing automatically.

To disable this feature you need to go to

Settings -> bluetooth -> paired devices ->
Select the bluetooth device
under profiles -> uncheck "Media audio"

Tuesday, November 1, 2016

Nexus 5 power button reboot/restart

If you have an issue with your Nexus 5 phone's power button wherein the phone just restarts/reboots after pressing the power button then you need to boot in recovery mode and select 'wipe cache partition'. This worked for Kitkat 4.4.2 version of Android installed in the Nexus 5.

Detailed list of steps are present at this google link.

Registry key Error: Java version has value '1.8', but '1.7' is required


When working with multiple versions of Java SDK installed in your computer, you might come across this error where you have installed Java8 and then when you try to run/compile an application using Java6 or Java7 you get stuck.

Essentially you need to make sure that the  system 'path' variable points to the Java version that you need. When installing Java8 there are lot of folders that get added to the 'path' like 'C:\programdata\Oracle\Java\' or c:\program files\java\java8\nin, etc Once these folders are deleted from the 'path' variable then you will not get this error. Make sure that any windows command prompts are re-opened once changes have been done to the 'path' variable.

The below two posts nicely summarize the fix needed to make Java8 co-exist along with Java6/7.
http://stackoverflow.com/questions/26324486/properly-installing-java-8-along-with-java-7
http://stackoverflow.com/questions/29697543/registry-key-error-java-version-has-value-1-8-but-1-7-is-required