android-5.0-lollipop

Lollipop Progress Bar Tinting

依然范特西╮ 提交于 2021-02-06 07:20:50
问题 I'm on a Lollipop device (MotoG 2014), I read about progress bar tinting, but this is not working...I get the default progress bar color. What am I missing here? <ProgressBar style="?android:attr/progressBarStyleLarge" android:layout_width="50dp" android:layout_height="50dp" android:backgroundTintMode="src_in" android:indeterminate="true" android:indeterminateTint="#f00" /> Many thanks. 回答1: The accepted solution wasn't working for me on pre-Lollipop, but I found this solution to fit all APIs

Lollipop Progress Bar Tinting

喜你入骨 提交于 2021-02-06 07:18:22
问题 I'm on a Lollipop device (MotoG 2014), I read about progress bar tinting, but this is not working...I get the default progress bar color. What am I missing here? <ProgressBar style="?android:attr/progressBarStyleLarge" android:layout_width="50dp" android:layout_height="50dp" android:backgroundTintMode="src_in" android:indeterminate="true" android:indeterminateTint="#f00" /> Many thanks. 回答1: The accepted solution wasn't working for me on pre-Lollipop, but I found this solution to fit all APIs

Install updates for a Device-Owner App

陌路散爱 提交于 2021-02-05 20:36:17
问题 Does anyone know what is the behavior in production of a device-owner App, distributed thru Google Play, when updates occur? As we know, installing a device-owner App involves some motivation and is not easy: reset to factory default then NFC-provision the device with a second device etc… So even if we consider this step done, would any further update involve so much pain, each time? This question occurs because on my development device, I cannot re-launch the device-owner App with changes if

How to trust SSL certificates with cross-signed root expired on android <= 5

…衆ロ難τιáo~ 提交于 2020-12-31 13:55:34
问题 I work for a company that uses a Comodo/Sectigo SSL certificate. But suddenly our app started throwing this error when sending POST to the server, in versions with android 4 and 5, with Okhttp client. HTTP FAILED: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate expired at Sat May 30 05:48:38 CDT 2020 (compared to Mon Jun 08 23:13:02 CDT 2020) I tried many StackOverflow solutions, without

How to trust SSL certificates with cross-signed root expired on android <= 5

十年热恋 提交于 2020-12-31 13:47:33
问题 I work for a company that uses a Comodo/Sectigo SSL certificate. But suddenly our app started throwing this error when sending POST to the server, in versions with android 4 and 5, with Okhttp client. HTTP FAILED: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate expired at Sat May 30 05:48:38 CDT 2020 (compared to Mon Jun 08 23:13:02 CDT 2020) I tried many StackOverflow solutions, without

How to trust SSL certificates with cross-signed root expired on android <= 5

杀马特。学长 韩版系。学妹 提交于 2020-12-31 13:46:33
问题 I work for a company that uses a Comodo/Sectigo SSL certificate. But suddenly our app started throwing this error when sending POST to the server, in versions with android 4 and 5, with Okhttp client. HTTP FAILED: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate expired at Sat May 30 05:48:38 CDT 2020 (compared to Mon Jun 08 23:13:02 CDT 2020) I tried many StackOverflow solutions, without

Set status bar color dynamically in android

爷,独闯天下 提交于 2020-12-02 06:58:49
问题 How to set status bar color dynamically for an application, am using view pager while swiping (horizontally) status bar color and title bar and button should change the color . as per my code title and button color changing perfectly ,but the issue is status bar color taking next color from array list. how to fix that issue can anyone help me. here is my code private int[] colors = new int[]{0xffffd200, 0xff37beb7, 0xff00ccff, 0xff8585c1, 0xfff2a03c, 0xff2a80b9, 0xfff15972, 0xffe9776c,

Start another app while task-locking is enabled

人走茶凉 提交于 2020-08-10 04:05:40
问题 I used this guide to activate my app as device owner. So, I can activate task locking. This is very close at how I want Android to behave. Is it possible to start one or more specific third-party-apps out of the device owning app and without deactivating the task-lock? If not, is it possible with a little workaround? I am thinking about deactivating the task-lock, starting the other app and then activating task-lock for the other app remotely. Thank you in advance. 回答1: A locked task can only