android-5.0-lollipop

Data transfer between application outside profile and inside profile in Android Lollipop

喜欢而已 提交于 2020-01-01 06:10:40
问题 Question related to Android for Work . My application was a device Admin privileged app and now I have modified the code which creates a managed work profile and sets itself as the profile owner. The question is, if I upgrade my application, it becomes a profile owner from device admin. Now there will be two copies of my application, one outside the profile and one inside (badged version). Is there a way if I need to transfer some data from the personal space app to the work profile app

Data transfer between application outside profile and inside profile in Android Lollipop

心不动则不痛 提交于 2020-01-01 06:10:39
问题 Question related to Android for Work . My application was a device Admin privileged app and now I have modified the code which creates a managed work profile and sets itself as the profile owner. The question is, if I upgrade my application, it becomes a profile owner from device admin. Now there will be two copies of my application, one outside the profile and one inside (badged version). Is there a way if I need to transfer some data from the personal space app to the work profile app

Weird issue when transitioning ImageView in Android 5.0

徘徊边缘 提交于 2020-01-01 04:45:15
问题 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 picture of what it looks like when it messes up: Naturally, it's supposed to fill the entire area. Both ImageViews are set to ScaleType.CENTER_CROP , so I can't imagine that

Build failed after updating tools for Android L

▼魔方 西西 提交于 2020-01-01 01:38:30
问题 I cannot build my project after updating the tools. I get this error in Android Studio. /build/exploded-aar/com.android.support/support-v4/21.0.0-rc1/AndroidManifest.xml:3] Failed to parse : must be an integer number or codename. Any ideas? This manifest is from the support library I think. I also have another for my project which is min=14 target=19 <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2014 The Android Open Source Project Licensed under the Apache License, Version 2.0

How to handle the fast-scroller on Lollipop 5.1?

北城以北 提交于 2019-12-31 17:56:10
问题 Background I've made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here. The problem It seems that on Android 5.1 , the fast scroller looks very different than the previous one, and it's too close to the right, so it's hard to use it. screenshot of Android 4.4 : Here's a screenshot on Android 5 : and on Android 5.1 : What I've found I've tried to go over all of the "what's new" section of Android 5.1, and also in some related classes docs,

Android 5.0/Lollipop: Force rescan of /system/priv-app

筅森魡賤 提交于 2019-12-31 15:52:20
问题 In Android 4.x, it was enough to put an APK-file into /system/priv-app, and the package-manager recognized that new file and (un-)installed the corresponding application or service. Since Android L, it seems to be not enough to just put the file into that directory - a reboot of the system is required to force Android to recognize that change. Has anyone an idea how to circumvent this? Maybe with any setprop ctl.restart xxx or by killing a dedicated service? EDIT: Here are some logs from

Elevation in a View with transparent background

故事扮演 提交于 2019-12-30 18:33:12
问题 I have a list of items with a custom background. The background is a simple shape with rounded-rect drawable filled with white color. So my view is similar to a Card. I can set an elevation on it and it works. There is a shadow beneath it. But I want to optimize it. My window's background is white, so I thought that I can remove View's background color to reduce overdraw. But it's not that simple. As soon as I set color to transparent in my view's background drawable, elevation stops working

How can I create a MediaController instance from MediaSessionManager?

ⅰ亾dé卋堺 提交于 2019-12-30 11:34:12
问题 I am trying to move from RemoteController to MediaController for Lollipop but I'm having trouble getting a MediaController instance. In MediaController it says: A MediaController can be created through MediaSessionManager if you hold the "android.permission.MEDIA_CONTENT_CONTROL" permission or are an enabled notification listener or by getting a MediaSession.Token directly from the session owner. However when I look at MediaSessionManager there are no methods other than

Device owner issue using adb method with LG devices only

怎甘沉沦 提交于 2019-12-30 10:38:06
问题 I have been trying to get device owner, inspired by google sample code Using adb, I am able to get device owner on nexus 4,5,7,9 and micromax. However in LG G Pad (LG-V400) and LG G3 (LG G3 855) I get an error. java.lang.SecurityException: Neither user 2000 nor current process has android.permission.BIND_DEVICE_ADMIN. I noticed that the device admin is enabled on these devices, but not the device owner. I was able to capture the bug report from the device found here. I have tried contacting

ActivityOptions.makeSceneTransitionAnimation doesn't seem to exist

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 02:25:07
问题 Android L introduced a new animations feature: animating between similar Views in different activities. It's documented here. I've tried to use ActivityOptions.makeSceneTransitionAnimation , but it doesn't seem to be visible in the SDK (or in the jar at all), so I tried using reflection, and it returns a null value. Has anyone else got it working? 回答1: Okay, I got it working. It seems like setting the value in styles.xml is completely ignored for now. You'll need to do this in each Activity's