Android 7.1 Nougat MR1 (API level 25), successor of Android 7.0 Nougat.
Questions tagged [android-7.1-nougat]
257 questions
3
votes
1 answer
Google advertising ID Returning Null on Nougat
I am using advertising id in my app and the code was working fine util I tested it on a device running Android Nougat 7.1.2. Can you point out what should I add to get it in Nougat too ?
private static void getAdvertisingID() {
AsyncTask

Zubair
- 915
- 2
- 9
- 28
3
votes
1 answer
how can define shortcuts to specific actions in the app?
If your app targets Android 7.1 (API level 25) or higher, how can define shortcuts to specific actions in the app. Shortcuts let users quickly start common or recommended tasks within your app.

Anand Verma
- 31
- 8
3
votes
0 answers
Android Service stops on Nougat
I made an app to display battery and network info in the status bar. For over 10 months the app did a 100% reliable job on a Nexus 6P (Marshmallow).
After I switched to a Pixel (Nougat 7.1.2) I recognised that the service seems to be getting…

Martin Pfeffer
- 12,471
- 9
- 59
- 68
3
votes
0 answers
Android 7.1.1 is reverting back to the Wi-Fi network with Internet, when we try to switch to a network without Internet in our App
We are manually switching WiFi on an Android device, from the currently selected network (with Internet) to a network that is provided by the Wireless Stick. This new network does not have Internet connectivity. These operations are performed using…

Himanshu
- 165
- 7
3
votes
2 answers
Unable to sign apk "with only the traditional scheme" even after setting 'v2SigningEnabled' as false
I updated my android-studio to latest stable version i.e. 'Android Studio 2.3' and also the gradle to 2.3.0.
Now, when I am trying to generate a signed apk of my app's release build, this "extra" thing (Signature versions:) is getting shown in the…

Hammad Nasir
- 2,889
- 7
- 52
- 133
3
votes
0 answers
how to awake device in Doze mode : Doze mode with FCM test case
I'm getting stuck on my project based on real time location tracking and update to the server.
Here i tested OS status in doze mode implementing FCM Push notification..
I used two methods to test:
Push Notification after device entering in Doze…

Mukesh Kumar
- 131
- 5
3
votes
3 answers
Android Nougat 7.1.1 showAtLocation(...) Gravity not working
This is related to this question:
Android Nougat PopupWindow showAsDropDown(...) Gravity not working
However, when I applied this fix:
if (android.os.Build.VERSION.SDK_INT >=24) {
int[] a = new int[2];
anchorView.getLocationInWindow(a);
…

Kim Montano
- 2,185
- 4
- 26
- 39
3
votes
0 answers
Error on startActivity, but only on android 7 devices
Since I updated my phone (Samsung Galaxy S7) to the new Android 7.0 two days ago I'm getting sporadically an error when running my app. It occurs sometimes (average every fifth time) when starting the Activity_C with startActivity:…

bartolja
- 487
- 1
- 4
- 13
3
votes
0 answers
Android N allowing Permission kills the app
I hope you can help. I cannot find any documentation on this anywhere.
I am requesting runtime permission in my Android app WRITE_EXTERNAL_STORAGE.
Under Android M this works as expected. I hit 'Allow' and all is fine.
Under Android N, clicking…

Steve Marcus
- 199
- 1
- 9
3
votes
1 answer
How to create static app shortcut for android 7.1 app?
like this I want to do with my own shortcuts. And to open particular activity depending on shortcut type
https://i.stack.imgur.com/Q87SO.png

Prathamesh Toradmal
- 299
- 1
- 15
3
votes
2 answers
How to correctly create static App-Shortcut on Android 7.1 ?
Background
Android 7.1 now has a new feature called "AppShortcut" . On the docs, they explain how to create static ones and dynamic ones, and they even have a sample app.
The problem
I tried out the sample, yet I've noticed that when I click on the…

android developer
- 114,585
- 152
- 739
- 1,270
2
votes
1 answer
Empty Firemonkey app crashes on startup just on Android 7.1, with error NullPointerException on String.contains(CharSequence)
I created a completely new and empty FMX app, tried it using Delphi 10.3.3 and 10.4.0 (patch 3), and when installed on Android 7.1.2 devices (tried two different ones and the official simulator VM), after the splash screen this error message…

maf-soft
- 2,335
- 3
- 26
- 49
2
votes
0 answers
How to set MAC address and other keys when building aosp?
In the process of building aosp, we do some steps and after all we have a .img or otapackage to burn on device.
But I want to set mac addresses and serial numbers when building? I am working on AMLogic platform and I want SPECIALLY to burn my keys…

Saleh
- 1,819
- 1
- 17
- 44
2
votes
3 answers
When app clear from recent apps list, background service stopped in android nougat and oreo
When I clear my app from recent apps list, my app background service killed. I tried with android nougat and oreo. But it's working in Android 6.0. After searched about the issue. Lot of people navigated the answer to Background Execution…

Saravanan S
- 123
- 1
- 13
2
votes
1 answer
java.lang.reflect.InvocationTargetException while disconnecting call in Android 7.1.1
I am using following code to disconnect the call, it is not disconnecting after android updated to 7.1.1 and I am getting getting : "java.lang.SecurityException: MODIFY_PHONE_STATE permission" required exception.
String serviceManagerName =…

alka aswal
- 511
- 1
- 7
- 22