294 questions
2
votes
1
answer
177
views
How is Xiaomi2mqtt connected to Aquara hardware device
I've already read the xiaomi2mqtt documentation. What I want to know is that how xiaomi2mqtt is connected to the actual hardware device (Aquara) over the Internet? In another world, I don't understand ...
0
votes
1
answer
808
views
Compiled error, declared with attribute error in qcacld-2.0
CC drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.o
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from drivers/...
3
votes
0
answers
5k
views
Unable to modify system settings in Xiaomi Miui devices
In my app even after user allowing modify system settings (write_settings) permission, the permission in real is not granting to my app.
User allowed allow modify settings:
but, when I went into ...
1
vote
0
answers
178
views
How to get data from Mi band 2 and to parse a JSON?
Hi Is there any way to get steps and distance count from my Mi Band 2 and to parse a JSON hosted on 000 webhost? Or a 3rd party app to do so?
0
votes
0
answers
274
views
How to optimize all my apps in "Battery Optimization"?
I have xiaomi mi max 32gb -Multirom 8.4.26-
I am not a developer. I make all my apps "battery optimized" except these apps: (Greenify+amplify+powernap+Launcher+Appops+Magisk+ Xposed).
But after ...
0
votes
1
answer
129
views
connect xiami device to android studio
I'm new to xiami and when I try searching for USB driver to connect to android studio and did not find any recent version and I try MI PC SUITE and it seems it did not work with new devices so can any ...
4
votes
4
answers
3k
views
WorkManager doWork callback is not received in Redmi and other custom Chinese ROM when device got rebooted and force closed the app
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 ...
3
votes
0
answers
367
views
Camera2 API getOutputSizes not returning largest
I'm on a Xiaomi Mi A1, I know for sure that this device can take picture at 4000*3000 resolution, but the method getOutputSizes of Camera API2, return as max size 1440*1080, how is this possible? What ...
12
votes
2
answers
12k
views
Fatal Exception: android.view.WindowManager$BadTokenException Unable to add window -- token is not valid; is your activity running?
I know this question is discussed several time but believe me i never got any answer working.
In my Main Activity i have used few Dialog to inform user about some operations but i get this specific ...
2
votes
1
answer
2k
views
Avoid doze mode programmatically
I'm developing an Android app that uses Xiaomi Mi Band 1S to keep measurements of heart rate all the time. I use a service to handle Bluetooth connection and I already achieved to keep this service ...
0
votes
0
answers
622
views
WebView crashed on Xiaomu Redmi Note 4
Working on an app with WebView:
in the layout file:
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="...
8
votes
2
answers
391
views
BroadcastReceiver stop working on Xiaomi after couple of hours
I'm using Awareness API for my project and receiving actions via BroadcastReceiver. This is the question with my code: link. The problem is that everything works fine in all android version except in ...
4
votes
1
answer
971
views
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,...
1
vote
1
answer
985
views
MvvmCross Failed to construct and initialize ViewModel for type
I am trying to create a mobile application using MvvmCross v.4.4.0.
Application works correct. But if collapse application and lock the phone, and then unlock and press "Overview" android button ...
1
vote
0
answers
142
views
Xiaomi Mi A1 SurfaceView upside down
I'm stuck on this. Xiaomi Mi A1, sometimes is presenting the SurfaceView I use for camera preview upside down. This is happening when I switch to a new CaptureSession.
Documentation report to not ...
0
votes
1
answer
529
views
Develop conversational chatbot for chinese language in python [closed]
I want to develop a conversational chatbot for chinese language in python like the user says "你好" which means "hello" in chinese and chatbot respond. i think it will be very difficult to build from ...
0
votes
2
answers
986
views
android location - cannot get location in service when app is background
I cannot get location in service with interval time, when app is background. Service works and gets location but location is not updating, gets old location. I test via xiaomi, maybe problem with miui?...
0
votes
1
answer
8k
views
Could'nt install (-113) while installing apk in xiaomi devices
Hi, I am trying install my debug apk in xiaomi device but apk is not installing, it's throwing error code -113 refer attached screenshot, can anyone help to come out from this issue
-1
votes
2
answers
4k
views
Android studio fails to install apk into Xiaomi Note5A (Redmi) (Installation failed with message INSTALL_FAILED_USER_RESTRICTED:) [closed]
Installation failed with message INSTALL_FAILED_USER_RESTRICTED: Install canceled by user.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, ...
1
vote
0
answers
450
views
BLE MI Band 2 Parse Activity Data
I am not really sure about the getting the history or the past activity data from Mi Band 2 device but here is what I have done (after authentication succeed):
send '\x01\x01\xe2\x07\x05\x03\x11\x2f\...
7
votes
1
answer
5k
views
Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider
java.lang.SecurityException: Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider from ProcessRecord{932688f 12849:mobi.hubbler.app/u0a158} (pid=12849, uid=10158) that is ...
0
votes
0
answers
28
views
Unity Xiaomy android phone dont save progress [duplicate]
My game (unity) works fine on my phone and others, but i have one device with Mi firmware on it and i have troubles with saving game progress.
I don't know why but save not works after closing the ...
0
votes
1
answer
1k
views
Cordova - Get microphone access in XIAOMI devices
My requirement is to check if the app has microphone access granted or not. If not then get the access. My app is built using Cordova. I have used https://github.com/edimuj/cordova-plugin-audioinput ...
0
votes
1
answer
604
views
How to Show Gallery Option by Intent.ACTION_ATTACH_DATA on Xiaomi Redmi 5 Device?
My application shows a picture and then set it as wallpaper device.
I have code and already try it on some devices and running successfully. (Lenovo Vibe C Lolipop, Advan I7 Marshmallow)
But I found ...
0
votes
0
answers
3k
views
Can't connect to Yeelight wifi color bulb
I'm trying to create android app which can control Yeelight wifi color bulb. I've written simple peace of code that connect to Yeelight but I'm really not sure what exactly I'm doing wrong.
This code ...
0
votes
1
answer
1k
views
Mi Band 2 past data
I'm writing my thesis on how to obtain data from different fitness bands.
At the moment I'm doing some research on the Mi Band 2 using bluetooth connection with my PC, unfortunately BLE is a new field ...
0
votes
0
answers
257
views
browser player overlaps hamburger menu
Certain browsers like Xiaomi MI browser or UC browser on Android play website videos in their own video player. This is causing issues with hamburger menu of the site as it is going behind the player. ...
0
votes
0
answers
136
views
Xiaomi Redmi 4X unexplainable behaviour with BroadcastReceiver
I have a simple app, that uses a AlarmManager and a BroadcastReceiver, nothing complicated, the onReceive() displays a toast.
For those who dont have a Xiaomi, here is what the screen looks like:
If I ...
0
votes
1
answer
515
views
Phone suddenly not receiving notifications
Using Xiamoi Redmi3 I never had this issue until today.
I get notifications from snapchat, slack and messenger just fine until to this day where I was playing an app game and noticed my phone suddenly ...
1
vote
0
answers
229
views
Whats the protocol to unpair Mi Band 1s? (HCI command)
I'm developing an app that uses Mi Band 1s to track Heart Rate. For now I achieved the pairing (with authentication). But I can't figure how to unpair the Mi Band.
Code the unpairing of the Mi Band ...
5
votes
0
answers
416
views
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 ...
1
vote
1
answer
1k
views
Android application in Xiaomi block web requests with mobile network
I made an application in Android Studio that make requests to a Web API and it's working fine. I used Retrofit to make the connection to server and make the calls.
When I open the application with ...
2
votes
0
answers
103
views
Xiaomi devices not sending broadcast for the first 5 minutes after boot
I have a BroadcastReceiver that receives all kind of actions, some are from within the app to itself(settings) and some are from the device(Charging, Wifi, etc...)
With all other devices my ...
0
votes
1
answer
872
views
React Native debug menu is not appearing in Xiaomi Redmi 3S when send 82 keyevent
I am following react native developer guid. There is paragraph where it tells that if you want to enable Live Reloading/How Reloading you can do adb shell input keyevent 82. It works perfectly with ...
0
votes
0
answers
3k
views
How can I get heart rate data (continuous measurement) from MiBand 2 in my own app?
I'm developing an android application that needs to get the user's heart rate instantly for analysis. I have a Xiaomi MiBand 2 and would like to use it as data source.
I found several codes in GitHub ...
6
votes
3
answers
7k
views
Selecting image from gallery not working on Redmi Note 4
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). ...
2
votes
1
answer
2k
views
On Xiaomi or Oppo or Vivo phones - Application Task not working as expected
I have a small android application project (Used for a local community news app)on android, which is (or was) working on API 22 and onward. Only a issue recently came to our notice is that on Chinese ...
2
votes
3
answers
2k
views
Install Via USB not working - on 7.0 device
I have red mi note 4 devices after update device with miui version 9 attempt to enable installation via application via USB, it doesn't work and shows "This device is temporarily restricted". The ...
0
votes
1
answer
1k
views
YouTube Android Player API is not working in xiaomi Redmi Note 3
YouTube Android Player API is not working. It is worked for only one time and second time onwards showing this error Please check your network connection Tap to retry
I checked my network connection ...
2
votes
1
answer
1k
views
Unable to read messages programmatically from Xiaomi phones
I am using EasyPermission to taking permissions from user.
@AfterPermissionGranted(PERMISSIONS_REQUEST_READ_SMS)
private void readSMS() {
String[] perms = {Manifest.permission.READ_SMS};
if (...
1
vote
1
answer
3k
views
java.lang.RuntimeException: caused while executing doInBackground() in Xiaomi device only
Google play store is showing crash (I am not able to reproduce) in Xiaomi devices only. Please find crash logs below.
I had tried to reproduce this crash in Xiaomi device as well but not able to ...
85
votes
4
answers
62k
views
Xiaomi Redmi Note 4X "Install via usb" throws "Insert your SIM card"
I'm using a Xiaomi Redmi Note 4X for my Android development.
Without "Install via USB" option, Android Studio throws:
Installation failed with message INSTALL_CANCELED_BY_USER
Solution for ...
7
votes
1
answer
3k
views
How to open Manage apps battery usage settings in MIUI devices
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);
But I ...
55
votes
21
answers
71k
views
Android Install on Device Failure [INSTALL_CANCELED_BY_USER]
I'm using Android Studio to connect to run app in my Xiaomi Redmi Note 3G device. My device is already found in the Choose Device Dialog, but I keep getting the [INSTALL_CANCELED_BY_USER] error :
...