OnCameraChangeListener() is deprecated

In play-services-maps 9.4.0 version of the API, They replaced GoogleMap.OnCameraChangeListener() with three camera listeners : GoogleMap.OnCameraMoveStartedListener GoogleMap.OnCameraMoveListener GoogleMap.OnCameraIdleListener Based on your code, I think you need to use GoogleMap.OnCameraIdleListener and GoogleMap.OnCameraMoveStartedListener like this: mGoogleMap.setOnCameraMoveStartedListener(new GoogleMap.OnCameraMoveStartedListener() { @Override public void onCameraMoveStarted(int i) { mDragTimer.start(); mTimerIsRunning = true; } }); mGoogleMap.setOnCameraIdleListener(new GoogleMap.OnCameraIdleListener() { @Override public void onCameraIdle() … Read more

GET_TASKS Permission Deprecated

There is reason why it is deprecated. The protection Level of android.permission.GET_TASKS has been elevated to signatureOrSystem. There is no easy and unharmful solution for that. As of LOLLIPOP, this method is no longer available to third party applications: the introduction of document-centric recents means it can leak personal information to the caller. For backwards … Read more

Java’s Date(…) constructor is deprecated; what does that mean?

Deprecated literally means disapproved of, but a more accurate translation would be retired. Deprecated means this method is still usable, but you should not use it. It will gradually be phased out. There is a new method to do the same thing. Deprecated methods are marked with a special Javadoc comment: /** *@deprecated Please now … Read more

What to do about “The Components object is deprecated. It will soon be removed.” in dev tools Console

This is not for the developer of the page to solve. While biking back home, a possible cause popped up in my mind: could one of the add-ons I use cause this and yes, that appears to be the case. I restarted with disabled add-ons and the message was gone. Then I enabled them one … Read more

Non Deprecated findPreference() Method? – Android

Is there a non deprecated equivalent? If you are using PreferenceFragment on API Level 11+ devices, you would call findPreference() on it. Otherwise, call findPreference() on your PreferenceActivity, as you have no choice. If not, what if I use it anyway? It will work. How can Fragments help me do my task in a better … Read more

Bouncycastle: X509CertificateHolder to X509Certificate?

I will answer to my own questions, but not delete it, in case someone else got the same problems: return new JcaX509CertificateConverter().getCertificate(certificateHolder); And for attribute certificates: return new X509V2AttributeCertificate(attributeCertificateHolder.getEncoded()); Not nice, as it is encoding and decoding, but it works.

Is Joda Time deprecated with java 8 Date and Time API? (java.time)

The official statement of the author of Joda-time himself is to migrate as soon as Java-8 is available. See also this citation from the website: Note that Joda-Time is considered to be a largely “finished” project. No major enhancements are planned. If using Java SE 8, please migrate to java.time (JSR-310). So the short answer … Read more

How to use spl_autoload() instead of __autoload()

You need to register autoload functions with spl_autoload_register. You need to provide a “callable”. The nicest way of doing this, from 5.3 onwards, is with an anonymous function: spl_autoload_register(function($class) { include ‘classes/’ . $class . ‘.class.php’; }); The principal advantage of this against __autoload is of course that you can call spl_autoload_register multiple times, whereas … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)