Ashok Varma

My Resume

Privacy Policy

By Ashok | September 14, 2016 | 0 Comment

PokeGuide is fanatical about protecting your privacy. The Privacy Policy is applicable to the assets of PokeGuide including, which also comprises of the mobile site, Smartphone App Platforms such as iOS, Android, Windows (all together referred to as “Site”). This privacy policy does not apply to the websites of our business partners, corporate affiliates or to […]

Continue Reading

Ripple Drawable

By Ashok | September 19, 2015 | 0 Comment

Ripple Drawable Topics Programmatically create Ripple Drawable   Programmatically create Ripple Drawable :- It comes in handy many times, to set Ripple Drawables programatically. public static Drawable getAdaptiveRippleDrawable(int normalColor, int pressedColor) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { return new RippleDrawable(ColorStateList.valueOf(pressedColor), null, getRippleMask(normalColor)); } else {  return getStateListDrawable(normalColor, pressedColor); }  }    private static Drawable getRippleMask(int […]

Continue Reading


By Ashok | August 11, 2015 | 0 Comment

Topics Find No of Lines in a TextView Usage Find no of lines in a textview There are different ways to find no of lines in a textview. First method : TextView.getLineCount(); Simple but might lead to errors. Because this can be only used in when the view is rendered (i.e after your textview onDraw is called). […]

Continue Reading

How to Setup Android Studio with OpenCV (OpenCV4Android)

By Ashok | August 9, 2015 | 0 Comment

You can do this very easily in Android Studio. Follow the below steps to add Open CV in your project as library. Create a libraries folder underneath your project main directory. For example, if your project isOpenCVExamples, you would create a OpenCVExamples/libraries folder. Go to the location where you have SDK “\OpenCV-2.4.8-android-sdk\sdk” here you will […]

Continue Reading

ADB and fastboot setup

By Ashok | July 13, 2015 | 0 Comment

First you need to have either sdk or android-platform-tools installed in your pc. Basic Troubleshooting connectivity issues: -try a reboot of the PC -try different usb cables and ports -dont use a usb hub -dont use usb 3.0 only usb 2.0 works -make sure nothing capable of comunicating with the phone is enabled and running. htc […]

Continue Reading