Android 5.0 (L) Service Intent must be explicit in Google analytics

If you’re trying to use Google’s Licensing mechanism, solution that worked for me: // explicit Intent, safe Intent serviceIntent = new Intent(ILicensingService.class.getName()); serviceIntent.setPackage(“”); boolean bindResult = mContext.bindService(serviceIntent, this, Context.BIND_AUTO_CREATE); This is located in com/google/android/vending/licensing/ Do a search for “Base64.decode(“ Edit: Adding reference to Google Licensing java file that has to be patched: patch: new … Read more

android lollipop toolbar: how to hide/show the toolbar while scrolling?

As far as I know there is nothing build in that does this for you. However you could have a look at the Google IO sourcecode, especially the BaseActivity. Search for “auto hide” or look at onMainContentScrolled In order to hide the Toolbar your can just do something like this: toolbar.animate().translationY(-toolbar.getBottom()).setInterpolator(new AccelerateInterpolator()).start(); If you want … Read more