Questions tagged [android-7.0-nougat]

Android 7.0 Nougat (API level 24), formerly known as "Android N".

Android 7.0 Nougat release date

At the Google I/O 2016 keynote on May 18, Google announced the release of a beta-quality Android 7.0 Nougat release. This third developer preview focuses on three areas: performance, security and productivity. Native VR support has now also been confirmed, with a new VR platform called Daydream.

The final Android 7.0 Nougat release date is expected to coincide with the release of the new Nexus device[s] at the end of the summer.

More Info

878 questions
52
votes
4 answers

How Do We Generate a Base64-Encoded SHA256 Hash of SubjectPublicKeyInfo of an X.509 Certificate, for Android N Certificate Pinning?

The documentation in the N Developer Preview for their network security configuration offers these instructions: Certificate pinning is done by providing a set of certificates by hash of the public key (SubjectPublicKeyInfo of the X.509…
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
47
votes
4 answers

Job Scheduler not running on Android N

Job Scheduler is working as expected on Android Marshmallow and Lollipop devices, but it is not running and Nexus 5x (Android N Preview). Code for scheduling the job ComponentName componentName = new ComponentName(MainActivity.this,…
Adil Bhatty
  • 17,190
  • 34
  • 81
  • 118
41
votes
5 answers

Detect CONNECTIVITY CHANGE in Android 7 and above when app is killed/in background

Problem: So the problem is that I have an app which sends a request to our backend whenever WiFi is connected (with the connected SSID and other info) or when it is disconnected (over the mobile network). However with the changes in Android 7/N and…
Remy Kabel
  • 946
  • 1
  • 7
  • 15
41
votes
1 answer

'App is scanning too frequently' with ScanSettings.SCAN_MODE_OPPORTUNISTIC

I noticed an issue on Samsung S8, Android 7.0 (upd. This also happens on Android 7.0: Samsung S7, Nexus 5x) which tells (after couple of tests) that app is scanning too frequently: 08-14 12:44:20.693 25329-25329/com.my.app D/BluetoothAdapter:…
39
votes
1 answer

Android PackageStats gives negative Values

I am using PackageStats and on printing the PackageStats's codeSize, cacheSize, dataSize, some data is coming as negative. A few questions: How is this possible? What are the scenarios when codeSize could be negative considering the apk size is…
thepace
  • 2,221
  • 1
  • 13
  • 21
36
votes
9 answers

Missing buttons on AlertDialog | Android 7.0 (Nexus 5x)

I am trying to create an AlertDialog but the buttons are not showing. Only seeing this issue in Android 7.0: final AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("This app needs location…
Sohail
  • 1,137
  • 2
  • 12
  • 22
35
votes
5 answers

IllegalArgumentException: column '_data' does not exist

In Nougat, this function is not working. String path = getRealPathFromURI(this, getIntent().getParcelableExtra(Intent.EXTRA_STREAM)); public String getRealPathFromURI(Context context, Uri contentUri) { Cursor cursor = null; try { …
vidha
  • 1,257
  • 2
  • 14
  • 22
33
votes
4 answers

How to get the current locale (API level 24)?

I was doing this way: context.getResources().getConfiguration().locale Configuration.locale is deprecated if target is 24. So I made this change: context.getResources().getConfiguration().getLocales().get(0) Now it says that it's only for…
user3290180
  • 4,260
  • 9
  • 42
  • 77
31
votes
2 answers

RuntimeException with Dagger 2 on Android 7.0 and Samsung devices

On my Google Play console I see quite a lot crash reports since I started to use Dagger 2, but only on Android 7.0 and mainly on Samsung devices, some Huawai and Motorola devices and some rare Xperia devices: java.lang.RuntimeException: at…
Denis Knauer
  • 1,020
  • 9
  • 18
30
votes
2 answers

signal 5 (SIGTRAP), code 1 (TRAP_BRKPT) relating to webview.apk

I'm receiving a handful of crash reports in my Play Console with the following title: signal 5 (SIGTRAP), code 1 (TRAP_BRKPT) webview.apk and the following detail: backtrace: native: pc 00000000011a1ed4 /system/app/webview/webview.apk native:…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
30
votes
2 answers

Android FileProvider for CACHE DIR : Failed to find configured root that contains

I found so many links which is related to FileProvider, but I didn't found solution for cache directory java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/pkg name/cache/1487876607264.png I want to use…
30
votes
2 answers

File system changes in Android Nougat

Ever since the first release of the Android N developer preview, I get "permission denied" errors when attempting to list the root directory or other system directories. The permissions on these directories didn't seem to change (as far as I can…
29
votes
4 answers

Eclipse - Empty Logcat with Android 7

I recently updated my Nexus 9 Tablet to Android 7 Nougat. Since then the Logcat view in Eclipse stoped displaying Logcat messages, the view just stays empty. Also the devices target is shown as "Unknown". If I instead start Logcat outside Eclipse…
Robert P
  • 9,398
  • 10
  • 58
  • 100
28
votes
1 answer

java.lang.SecurityException: MODE_WORLD_READABLE no longer supported

The exception only occurs in Android 7.0 Nougat (emulator) devices. java.lang.SecurityException: MODE_WORLD_READABLE no longer supported My code: public void SessionMaintainence(Context context) { this.context = context; preferences =…
27
votes
4 answers

Android N Java8 java.time

I updated to the latest Android N sdk. The only thing I don't understand is why I cannot import java.time into my code? I thought Java8 is available through Android N. Then why didn't Google add java.time package?
IgorGanapolsky
  • 26,189
  • 23
  • 116
  • 147
1
2
3
58 59