Questions tagged [miui]

MIUI developed by Xiaomi, is a stock and aftermarket firmware for smartphones and tablet computers based on the Google Android operating system. Use the tag [miui] for questions related to user interface or development for MIUI.

Xiaomi has released various smartphones, all of which come pre-installed with a complete version of MIUI. This includes various apps and features not available in the aftermarket version of MIUI.

Other than supporting their in-house smartphones and tablets, Xiaomi also offers MIUI to be flashed on other smartphone brands such as Samsung, Sony, HTC, BLU, OnePlus and Nexus.

On February 24, 2016, Xiaomi said that the MIUI ROM had over 170 million users worldwide, and was supported on over 340 handsets.

132 questions
6
votes
0 answers

Xiaomi Android devices - properly requesting permissions for background locations

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 devices. It seems that in addition to location permission…
TalL
  • 1,661
  • 16
  • 16
6
votes
0 answers

Read the `Power Saving Modes` settings on the MIUI devices

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 & Performance -> Manage apps battery usage The…
Mando
  • 11,414
  • 17
  • 86
  • 167
5
votes
1 answer

AlarmManager doesn't work on MIUI (and who knows where else)

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 datetimeToAlarm =…
5
votes
0 answers

How to check "Displaying popup windows while running in the background" permission?

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" permission to do that. However, I don't know when this permission is…
phong dep trai
  • 123
  • 1
  • 9
5
votes
2 answers

How to force light mode in Xamarin.Forms?

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 can I do this? In my app.xaml file I used…
Mahmudul Hasan
  • 798
  • 11
  • 35
5
votes
0 answers

EditText's setCustomSelectionActionModeCallback method not working in MIUI

I'm trying to create custom selection menu but it does not work on a device wit MIUI rom. Devices with Android + MIUI setCustomSelectionActionModeCallback not working. Long press the edit text area and select text in the EditText to listen the…
Indirajith
  • 83
  • 7
5
votes
0 answers

Wrong next alarm clock time on android on some devices with MIUI

I am trying to get next alarm clock time on android. I use two known methods: 1: ( ( AlarmManager )Global.Context.getSystemService(Context.ALARM_SERVICE) ).getNextAlarmClock().getTriggerTime() // for SDK API 21+ 2:…
Alexey
  • 51
  • 2
5
votes
1 answer

Tell if device is running a MIUI software

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?
roiberg
  • 13,629
  • 12
  • 60
  • 91
4
votes
1 answer

How to Disable copy/paste option of Xamarin forms Entry control in Redmi note 8 device?

I want to disable copy/paste option of my Entry control in Xamarin forms application. I am using custom renderer for that. The current solution is working in all the other devices apart from Redmi Note 8. This is my renderer code. class…
Judson Abraham
  • 316
  • 2
  • 11
  • 37
4
votes
5 answers

Accidentally pressed don't allow install app and remember - Android Studio

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 app, I obtain an Android error, which says: 19:35…
4
votes
0 answers

Is there any FlymeOS or MIUI emulator?

I'm testing my android application. Problem: Is there any way to test application with FlymeOS, MIUI without having physical device? Reason: FlymeOS for example have some security differences, and what applicable for pure android, may not be…
gasanov
  • 41
  • 1
4
votes
1 answer

MIUI heads up notification not working

I'm struggling to get my notifications to display heads up or peek as it is also called. It is working fine with stock Android and Lineage OS API 21-26 What needs to be done to get it to work in MIUI 8? The app has ALL notification permissions…
3
votes
0 answers

MIUI 12.0.5 : Facing issues with notification sound (both custom and default ringtones)

I am facing issues in MIUI version 12.0.5(Redmi Note 7 Pro) for the app I am developing. The application is not giving any sound for push notifications by default. However once I enable the sound in notification settings, it works fine. But my main…
3
votes
0 answers

Can we disable/enable MIUI optimization in Redmi devices

I have one use case where we have to turn off MIUI optimization on Redmi devices programatically. Is there any way to do this from an Android app programmatically on Redmi devices?
user3863488
  • 227
  • 1
  • 13
3
votes
2 answers

Detect soft navigation bar availability in MIUI/Xiomi device pragmatically?

This question specific to the issue with Xiomi devices with MIUI over it. How can I detect Fullscreen Mode (Gesture) or Navigation Button (soft navigation) is selected? I Have tried a few solutions, but that does work on other devices but didn't…
Tapas Thakkar
  • 845
  • 8
  • 19
1
2
3
8 9