Questions tagged [xiaomi]

For issues relating to devices of the Xiaomi Inc.

Xiaomi Inc. is a privately owned Chinese electronics and software company headquartered in Beijing. It is the world's 5th largest smartphone maker in 2017.

Since the release of its first smartphone in August 2011, Xiaomi has gained market share in mainland China and expanded into developing a wider range of consumer electronics, including a smart home (IoT) device ecosystem.

294 questions
5
votes
1 answer

Admob test id keeps changing

Recently I bought a new phone(Xiaomi Mi A2) and very weird thing happens when I try to test my apps on it. Admob test id keeps changing. I copy the id from the logs as always("Use AdRequest.Builder.addTestDevice("XXXXXXXX") to get test ads on this…
5
votes
0 answers

FLAG_DISMISS_KEYGUARD not working on Xiaomi phone

I am writing code in Android to display an activity on the locked screen. The activity has an activity button which launches another new activity. For the new activity, I have added FLAG_DISMISS_KEYGUARD so that the activity can be showed on the…
4
votes
0 answers

Enable special permissions by default on Xiaomi phones

I have checked previous questions on this topic but none of them answers the question completely. In Xiaomi devices, 'Show over lockscreen' and 'Show popup dialogs' permissions are considered special perms. Now in previous question there are some…
Waleed
  • 1,097
  • 18
  • 45
4
votes
2 answers

Connecting to Mi Smart Band through Mi Fit application

I want to connect to Mi Fit application in a same way like Notify for Mi Band does. In this application there are two options to connect to Mi Band. The first one which connects to it needs auth token from freemyband and possible this also needs…
Norbert
  • 302
  • 1
  • 9
  • 19
4
votes
1 answer

NullPointerException in TextInputLayout on Xiaomi with Android 10

I recently started using TextInputLayout in my android app. After that, strange NullPointerException errors started to appear. These errors only occur on Xiaomi devices with Androind 10. Fatal Exception: java.lang.NullPointerException Attempt to…
Vergiliy
  • 1,248
  • 1
  • 13
  • 22
4
votes
1 answer

What's Xiaomi Mi Store app's page intent?

I'm developer of an Android library for rating apps, which asks user if he likes an app, and if he wants to rate the app redirects it to the app store. Does someone know, what's Xiaomi Mi Store's launch intent for redirecting user right to the given…
artem
  • 16,382
  • 34
  • 113
  • 189
4
votes
0 answers

ARCore Native Error - Android error_policy_util.cc

Hi I am getting this Error and dont know what to do. Its an ARCore App which is running on Pixel 2 but not on Xiaomi Pocophone. Any hint on what/were to search what causes this crash? 2019-12-20 14:16:36.085 32175-32175/com.example.android…
Erdnuss
  • 307
  • 4
  • 16
4
votes
1 answer

How to get permission for deleting contacts in xiaomi (MIUI) devices?

I am making an app for managing contacts. On most phones, everything works fine, but on some Xiaomi devices, I get an error when trying to delete a contact. Here is my code to delete contact - final ArrayList ops = new ArrayList(); …
4
votes
1 answer

Xiaomi devices are stopping foreground services

We have an application that runs almost forever with a foreground service, while using a notification on the system tray, which is the normal initialization. The app simply depends on this service. On every device we tested, the service keeps…
Furkan Yurdakul
  • 2,801
  • 1
  • 15
  • 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

Android view behind Navigation Bar behavior, how to fix?

so, I've head a lot of answers here regarding problems with both the status bar and the navigation bar. The app I'm currently working on has to fit behind the status bar, but not the navigation bar, since it uses the BottomBar as it's main…
Maxinne
  • 1,693
  • 2
  • 23
  • 47
4
votes
2 answers

XIaomi device does not dismiss lockscreen when opening Activity from background (alarm event)

I have an application that opens an Activity on a certain event. Just like alarm application. I use the following flags: getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON …
4
votes
1 answer

Android studio cordovaRun cannot run using device

I'm developing a simple app using Android Studio with Cordova. But when I run I've got this error: (node:9856) UnhandledPromiseRejectionWarning: CordovaError: Failed to execute shell command "input,keyevent,82"" on device: Error:…
Gimo Gilmore
  • 229
  • 9
  • 23
3
votes
1 answer

Share Image to third party apps in android

I'm trying to share image with third party apps in android. I'm able to share image with all device except Xiaomi(Android 12) & OnePlus Node (Android 11). val shareIntent = Intent() shareIntent.action = Intent.ACTION_SEND …
Laksh Lathiya
  • 322
  • 2
  • 12
3
votes
1 answer

Starting an activity from an accessibility service doesn't work with Xiaomi

I have an accessibility service which has to open an activity when some conditions are met. The code to open the activity is this: Intent intent = new Intent(WindowChangeDetectingService.this,…
1 2
3
19 20