How to determine the version of Gradle?

Option 1- From Studio In Android Studio, go to File > Project Structure. Then select the “project” tab on the left. Your Gradle version will be displayed here. Option 2- gradle-wrapper.properties If you are using the Gradle wrapper, then your project will have a gradle/wrapper/gradle-wrapper.properties folder. This file should contain a line like this: This … Read more

Android getResources().getDrawable() deprecated API 22

You have some options to handle this deprecation the right (and future proof) way, depending on which kind of drawable you are loading: A) drawables with theme attributes You’ll obtain a styled Drawable as your Activity theme instructs. This is probably what you need. B) drawables without theme attributes You’ll get your unstyled drawable the old way. Please note: ResourcesCompat.getDrawable() is not deprecated! EXTRA) drawables with theme attributes from another theme

How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue

The issue Some of our website users are encountering an issue when accessing secure areas of our website, on Android devices, in Google Chrome. It looks like this; I’ve been able to replicate the issue on the following devices using Browserstack’s physical device testing; Samsung Galaxy S6, Samsung Galaxy S5, Samsung Galaxy S4 (Android v5 … Read more

HAXM is not installed on this machine

Recently I’ve installed Xamarin and tried to do a tutorial in Xamarin page beginner. When I am about to compile, it gives me an error: 2>Please ensure Intel HAXM is properly installed and usable. and 2>CPU acceleration status: HAXM is not installed on this machine Then I am opening the android SDK Manager, I can’t … Read more

Start an activity from a fragment

mFragmentFavorite in your code is a FragmentActivity which is not the same thing as a Fragment. That’s why you’re getting the type mismatch. Also, you should never call new on an Activity as that is not the proper way to start one. If you want to start a new instance of mFragmentFavorite, you can do so via an Intent. From a Fragment: From an Activity If you … Read more

What exactly is txPower for Bluetooth LE and how is it used?

Most beacon formats contain a single byte in the transmission that indicates what the expected signal level should be when you are one meter away. This byte is sometimes called txPower (short for transmitted power) and sometimes measured power. Do not confuse this with a second configuration setting on some beacon models that lets you vary how strongly the transmitter … Read more

Singleton in Android

EDIT : The implementation of a Singleton in Android is not “safe” (see here) and you should use a library dedicated to this kind of pattern like Dagger or other DI library to manage the lifecycle and the injection. Could you post an example from your code ? Take a look at this gist : https://gist.github.com/Akayh/5566992 it works … Read more