109 questions
142
votes
7
answers
81k
views
"Protected Apps" setting on Huawei phones, and how to handle it
I have a Huawei P8 with Android 5.0 that I'm using for testing an app. The app needs to be running in the background, as it tracks BLE regions.
I've discovered that Huawei has built in a "feature" ...
184
votes
9
answers
93k
views
Huawei, logcat not showing the log for my app?
OK, logcat is showing system logs but it is not showing application log on my Huawei Ascend. If I switch to another device such as my Galaxy Nexus or Nexus 7 then for the same app (same APK even) log ...
78
votes
6
answers
27k
views
Have both GMS and HMS in the project
How does one go about having both Google Mobile Services and Huawei Mobile Services in the app?
Being that Huawei have lost the license over GMS, it seems we need to replace all the GMS services used ...
38
votes
4
answers
12k
views
onTaskRemoved() not getting called in HUAWEI and XIAOMI devices
I've been using onTaskRemoved() method in a Service to detect when an app was removed from device RECENT list by swiping it away. I preform some logging and some other operations that need to take ...
6
votes
2
answers
6k
views
Android Virtual Device for Huawei Mobile Services
I want to apply HMS to my app. However, buying an actual Huawei phone is not on my shortlist. Does Huawei provide an Android Virtual Device for that purpose? If not, how to test if my implementation ...
3
votes
1
answer
3k
views
ACTION_IMAGE_CAPTURE returns imagefile as Extra instead of Data
One feature of my app includes the camera. The user takes a picture and the app displays the image.
I start an intent with ACTION_IMAGE_CAPTURE using StartActivityForResult and capture the response ...
6
votes
2
answers
5k
views
What google services are banned in Harmony OS (here is a list that I have used in my android app.)
I need to upload my android apk file in harmony os and as google services are banned in this platform, I would have to use the alternative platform. Here is a list of google services that I have used....
31
votes
9
answers
8k
views
Huawei device killing my foreground service, even with dontkillmyapp.com's solution
I'm developing an app which is basically a location tracking software. When you start it, it saves locations and sending them to a server.
The code is working for like 5 years now without any ...
11
votes
6
answers
18k
views
com.huawei.agconnect plugin not found
So I'm trying to add AppGallery connect gradle plugin to my android project using new Kotlin DSL syntax. But I'm getting error like this:
org.gradle.internal.exceptions.LocationAwareException: Build ...
10
votes
4
answers
30k
views
Sending and receiving SMS by command line with Huawei E3131 and HiLink on a debian system
I long time searched the internet for a guide how to send sms by command line with Huawei E3131 and HiLink on a debian based linux system. All of them not worked. It seems, that there was an update on ...
38
votes
11
answers
18k
views
How to open the Huawei AppGallery directly?
I know that is possible to open my app (based on package name) in Google Play Store, but how to do same in Huawei AppGallery?
20
votes
4
answers
14k
views
Firebase Remote Config/Realtime database on Huawei devices
Are all of the Firebase services for Android unable to work on Huawei or is it just the cloud messaging service that does not work? Do all of the firebase services rely on Google Play Services?
3
votes
1
answer
1k
views
Not working - Debug Mode native code (c/c++) on Android studio with tablet HUAWEI MediaPad M5
I have a problem when i put breakpoints on my native code (c/c++) with this tablet (HUAWEI MediaPad M5, android 8.0.0, processor Hisilicon Kirin 960s).
Indeed, in debug mode, i can't use the ...
1
vote
2
answers
525
views
sendMessage doesn't work properly (Wearable)
If I'm sending some bytes using sendMessage from Huawei p9 (Android 6.0) into Android Wear (Sony) the messages are not delivered if the screen of handheld device is turned off. The notifications ...
51
votes
4
answers
88k
views
How to create Huawei Android Emulator
I'm developing an Android app using Huawei's Push service. I have installed DevEco IDE plugin within Android Studio. But I don't have any Huawei device to test. So my question is that there is any ...