SoundPool constructor deprecated since API level 21

The good ol’ constructor: SoundPool(int maxStreams, int streamType, int srcQuality) was deprecated in API level 21. We now need to use SoundPool.Builder to create soundPool instance. To use SoundPool in the device running API level >= 21 and API level < 21 just use the following code : if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { mSoundPool = …

SoundPool constructor deprecated since API level 21 Read More »

How to Change the Background Color in TabLayout

Changing the background color of tab in TabLayout is fairly simple using the design support library that Android provides. You can simply change the background of the whole TabLayout using the app:tabBackground property and you can change the tab indicator color using the app:tabIndicatorColor property, but there are better ways if you want more functionality.A …

How to Change the Background Color in TabLayout Read More »

Request multiple runtime permissions in android marshmallow at once example

With the release of Android 6.0, named Marshmallow came various new features runtime permissions being a major change. Before Marshmallow, all the permission required to run an app was granted to the app during installation, and mostly users didn’t know what permissions the app was using as they were all granted during installation. With Android …

Request multiple runtime permissions in android marshmallow at once example Read More »

Creating OCR Android app using Tesseract in Android Studio Tutorial

Text Detection using electronic devices link an Android device using an app is also called optical character recognition (OCR). Since it’s inception OCR has come a long way in terms of speed and ease of use, but we still cannot detect handwritten text and accuracy of OCR depends on various factors. Text recognition  in Android …

Creating OCR Android app using Tesseract in Android Studio Tutorial Read More »

Text Detection and recognition in Android using OpenCV MSER algorithm

For Real Time text detection in Android, we will be using OpenCV, and to recognize the text in from the detected text region, we will use Tesseract text detection engine for Android. This part deals with the text detection using OpenCV for Android part. In the next part we will recognize the detected text using …

Text Detection and recognition in Android using OpenCV MSER algorithm Read More »

Set focus modes in OpenCV using JavaCameraView for Android

Setting focus mode in Android using JavaCameraView class of OpenCV for Android is pretty easy. You just need to create a class that extends from JavaCameraView, get the camera parameters and set the focus mode in the camera parameter and set those parameters in mCamera variable. OpenCV for Android How to set Autofocus and other …

Set focus modes in OpenCV using JavaCameraView for Android Read More »