miui Questions

2

Solved

I need to know if my app is running on a MIUI device like XIAOMI at runtime due to issues like pre android 6.0 permissions etc. Is there a way to to do it?
Aplanospore asked 21/8, 2017 at 7:48

8

Solved

When I ran my app in Android studio, with my personal device, a notification was shown, and I accidentally pressed "remember action", and then pressed "don't allow". Now each time I try to run the ...
Tedi asked 6/9, 2019 at 17:47

1

I'm coding an android app that needs to start an activity in the background. On XiaoMi device, my app must be accepted "Displaying popup windows while running in the background" permissio...
Retaretable asked 4/12, 2020 at 4:41

6

Solved

I am creating an android application to run my code in background. I'm well aware of the restriction introduced by the Android Oreo for background services and that's why I'm using WorkManager API ...
Tonsillectomy asked 23/6, 2018 at 9:11

4

I have an android app which is voip app. When some one call we show a caller screen. This works fine but on some redmi device(Note 7 pro) the caller screen doesn't come if device is locked ie it on...
Grenier asked 24/1, 2020 at 9:6

35

Solved

When I toggle on the install via USB in developer mode: it will pop the toast message said that the device is temporarily restricted then toggle off the settings. Is there any solution for thi...
Sheena asked 3/9, 2017 at 4:21

3

How can I detect the device run under Xiomi's MIUI ROM? I'm able to detect Xiomi device with the following code. String manufacturer = "xiaomi"; if (manufacturer.equalsIgnoreCase(android.os.Build...
Ornithopter asked 2/12, 2017 at 17:16

2

Solved

My app's UI is designed to use in light mode. But if the phone's default theme is dark mode, my app also switches to dark mode and the UI looks trash. So I want force my app to use light mode. How ...
Vashtee asked 3/10, 2020 at 10:24

1

Solved

My new app doesn't support dark mode. When I install it on Xiaomi (with dark mode truned on) MIUI applies dark mode on it. MIUI has settings at "Settings -> Display -> More Dark mode opt...
Spermatid asked 24/3, 2021 at 14:42

1

Solved

My application gives user an option to schedule daily notifications on a specific time. I use AlarmManager to achieve this behavior. On a click of a button I execute the following code: val datetim...
Collectivism asked 6/3, 2021 at 17:34

1

I faced an issue, which occurs only on MIUI devices. I am trying to share some text using the following code private fun shareTextWithCallback(text: String) { val title = getString(resId) val i...
Forcefeed asked 1/12, 2020 at 7:13

2

Issue has showed up after updating my Xiaomi Mi Mix 2 from miui 10 to miui 11 (and from android 8 to 9, api level 26 -> 28). When I'm attaching debugger using Android Studio to my application, it s...
Dinge asked 18/11, 2019 at 18:37

0

I have problem with starting activity from background in android 10 - android Q - MIUI 11 on real device. In this thread: start activity background in android 10 I found information how to do this ...
Potpie asked 29/1, 2020 at 20:18

1

I'm not able to start activity in MIUI 11 redmi note 6 pro mobile, I am getting error as: com.android.server.am.ExtraActivityManagerService: MIUILOG- Permission Denied Activity I found some so...
Graner asked 6/12, 2019 at 13:43

1

Solved

My app has a service and an activity. From the service, activity is called with following code: Intent intent = new Intent(getApplicationContext(), MainActivity.class); intent.addFlags(Intent.FLAG...
Perithecium asked 8/12, 2019 at 19:23

1

Solved

My app's main functionality is push-notification messages sent from remote server. I am using FCM as a message delivery service. My problem is that notifications come without any sound on Xiaomi Mi...
Bodywork asked 5/11, 2019 at 16:2

1

Solved

I am working on VoIP calling applications and calls are getting missed which are sent over FCM when battery saver is on on MIUI. This is happening very frequently. I want user to open Battery save...
Thionic asked 24/3, 2019 at 9:51

1

Solved

When application is in background and screen is locked,I'm unable to start activity, there is no exception or warning, onCreate() is just not called. I've been struggling against this problem for w...
Downer asked 24/5, 2019 at 15:50

0

We develop an application which requires several permissions in order to get the user’s location while in the background. We are having problems requesting the required permissions on Xiaomi device...
Cornett asked 20/3, 2019 at 10:22

4

I'm looking for a way to open in MIUI App Notification Settings screen directly from my application. Just like this: Settings -> Installed apps -> MY_APP -> Notifications. How to construct intent ...
Legislation asked 17/9, 2018 at 16:27

0

The Power Saving Modes settings is different from the regular Android OS Power Saver setting and accessible on MIUI devices only (or rather accessible at least on MIUI devices) Settings -> Battery...

1

How to open Manage apps battery usage settings in MIUI devices programmatically? I open the settings by this: startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0); B...
Demitria asked 16/9, 2017 at 8:43

2

Solved

I am not getting BOOT_COMPLETE broadcast in my Xiaomi Redmi 2 Prime mobile. My BroadcastReciever is --- public class OnBootReceiver extends BroadcastReceiver { @Override public void onReceive(Co...
Virg asked 17/8, 2016 at 11:32
1

© 2022 - 2024 — McMap. All rights reserved.