redmi-device

WorkManager doWork callback is not received in Redmi and other custom Chinese ROM when device got rebooted and force closed the app

邮差的信 提交于 2019-12-04 19:05:07
My app is not receiving push notification in Redmi phones while the app is in the background or it got killed by swiping. So I am trying to wake the phone by WorkManager which works on many phones except Redmi and other Chinese custom ROM phones. Here is my code of Worker class public class OpenTalkWorkManager extends Worker { @NonNull @Override public Result doWork() { Log.i("wake_up", "Waking up now: " + System.currentTimeMillis()); FirebaseUtils.getInstance().updateUserPresenceStatus(getApplicationContext(), "yes"); Intent intent = new Intent("com.opentalk.WAKE_UP"); getApplicationContext()

Selecting image from gallery not working on Redmi Note 4

两盒软妹~` 提交于 2019-12-01 22:14:12
问题 I have seen a couple of other questions on S/O related to this, but the one that was closest to my issue doesn't seem to have got many responses (Xiaomi MI device not picking image from Gallery). Hoping this question will have better luck. I am trying to select an image from the gallery of the phone, and pass the image path to another activity where it get previewed for the user. I've tested this on two other devices (Moto E and something called Coolpad?) and they both seem to be working just

Selecting image from gallery not working on Redmi Note 4

蓝咒 提交于 2019-12-01 20:55:57
I have seen a couple of other questions on S/O related to this, but the one that was closest to my issue doesn't seem to have got many responses ( Xiaomi MI device not picking image from Gallery ). Hoping this question will have better luck. I am trying to select an image from the gallery of the phone, and pass the image path to another activity where it get previewed for the user. I've tested this on two other devices (Moto E and something called Coolpad?) and they both seem to be working just fine. (Debugging Android source code doesn't seem to be a practical option.) In the main activity,