Tag: android-5.0-lollipop

Weird issue when transitioning ImageView in Android 5.0

I’m experiencing a strange issue / bug regarding ImageView transitions between Activities in Android 5.0. I’m trying to transition a thumbnail image from Fragment A (in Activity A) to the header image of Fragment B (in Activity B). It works well most of the time, but it sometimes messes up ever so slightly. Here’s a […]

Android Lollipop Activity Screen corrupted

This question already has an answer here: Android SystemUI glitches in Lollipop 6 answers

Screen Capture and Sharing in Android 5.0

There is a mention about Screen capture and Sharing api in Android 5.0 at: Android 5.0 APIs There its mentioned about MediaProjectionDemo class in the ApiDemos. I could not find it anywhere to download. Where can I find it? Are they yet to publish API demos for Android 5.0?

Android Camera2 getPreviewFrame

I am trying to get the camera frame in preview mode. I am running the sample project from github https://github.com/googlesamples/android-Camera2Basic The issue I am having is getting the frame in preview mode. Here is the code: private CameraCaptureSession.CaptureCallback mCaptureCallback = new CameraCaptureSession.CaptureCallback() { private void process(CaptureResult result) { switch (mState) { case STATE_PREVIEW: { //HERE, […]

Can't override textAllCaps for buttons on style under android 21

This is how I set my buttons. <Button android:id=”@+id/button_login” style=”@style/ButtonStyle” android:text=”@string/button_login” /> This is my style on values folder. <style name=”ButtonStyle” parent=”ButtonStyleBase” /> <style name=”ButtonStyleBase”> <item name=”android:layout_width”>match_parent</item> <item name=”android:layout_height”>wrap_content</item> <item name=”android:layout_marginTop”>@dimen/padding</item> <item name=”android:textSize”>@dimen/font_regular</item> <item name=”android:textColor”>@color/text_regular</item> <item name=”android:background”>@drawable/shape_clickable</item> </style> And this is my style on values-v21 folder <style name=”ButtonStyle” parent=”ButtonStyleBase”> <item name=”textAllCaps”>false</item> <item name=”android:textColor”>#000000</item> </style> But […]

What does OAT mean?

We know that Dalvik uses APK, DEX, and ODEX files. And we know this abbreviation means via AOSP source or Developers site. (like this – https://source.android.com/devices/tech/dalvik/dex-format.html) DEX means Dalvik EXcutable file. ODEX means Optimized Dalvik EXcutable file. APK means Android PacKage. ART (Android RunTime) uses OAT and ART, but they do not explain the meaning […]

Make Notification Large Icon Round

I want to display a circular avatar from the user’s contacts as the large icon of the notification – like when receiving a text or mail. When I set the large icon as that contact’s image, it results in a square icon. I’m looking to turn something that looks like the top icon (the square […]

Checksum Error while provisioning Android Lollipop

I get the message Couldn’t use the admin app due to a checksum error. Contact your IT department when using the code below. Basically you have two Android Lollipop devices. One device is unprovisioned (Factory reset) and the other has this programming app on it. The programming app sends an NFC command to the unprovisioned […]

How to show menu popup exact below actionbar?

I am working on popup-menu in actionbar. But I am stuck to display exact below of actionbar(cut-to-cut).I am putting two snapshot. My issue screen shot: I want exact popup menu below of actionbar as below screenshot Correction screenshot: My code snippet: <menu xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” tools:context=”.MainActivity”> <item android:id=”@+id/action_filter” android:icon=”@drawable/ic_filter_white_18dp” android:title=”@string/action_filter” app:showAsAction=”ifRoom” /> <item android:id=”@+id/action_label” android:icon=”@drawable/ic_add_circle_outline_white_18dp” […]

Lollipop – Indeterminate ProgressBar color change – Programatically

I am using the code below to change the color of Indeterminate ProgressBar. This works well, till KitKat. But on Lollipop, it just stays Green. Can anyone help me out with this. I want to do it through Java and not XML. Code: This sets the spinner color to pink pd.getIndeterminateDrawable().setColorFilter(0xFFeA6060, android.graphics.PorterDuff.Mode.MULTIPLY);

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.