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
912
votes
27 answers

android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through Intent.getData()

The app is crashing when I'm trying to open a file. It works below Android Nougat, but on Android Nougat it crashes. It only crashes when I try to open a file from the SD card, not from the system partition. Some permission problem? Sample…
Thomas Vos
  • 12,271
  • 5
  • 33
  • 71
397
votes
15 answers

Html.fromHtml deprecated in Android N

I am using Html.fromHtml to view html in a TextView. Spanned result = Html.fromHtml(mNews.getTitle()); ... ... mNewsTitle.setText(result); But Html.fromHtml is now deprecated in Android N+ What/How do I find the new way of doing this?
Aldasa
  • 4,551
  • 2
  • 21
  • 31
118
votes
17 answers

Android N requires the IDE to be running with Java 1.8 or later?

My XML layout is not rendering with this error message. I am already using Java 8. Also using latest build tools in Gradle. android { compileSdkVersion 'android-N' buildToolsVersion 24.0.0 rc1 ... } XML Error -
mihirjoshi
  • 12,161
  • 7
  • 47
  • 78
109
votes
6 answers

How to get charles proxy work with Android 7 nougat?

Android 7 introduced some changes to the way certificates are handled (http://android-developers.blogspot.com/2016/07/changes-to-trusted-certificate.html) and somehow I cannot make my Charles proxy work any more. My…
mbonnin
  • 6,893
  • 3
  • 39
  • 55
106
votes
6 answers

Android 7 Native Crash: libc.so tgkill

I'm seeing this native crash with the following stack trace. This happens in Android 7.0 & 7.1 only. Nothing new has been added to the app, which has been in production for a few years, but with more devices being updated to Nougat this crash…
AlexVPerl
  • 7,652
  • 8
  • 51
  • 83
102
votes
14 answers

"Canvas: trying to draw too large bitmap" when Android N Display Size set larger than Small

I have a published app that is crashing at startup on Android N when the newly introduced Display size OS setting is set to too large a value. When I look in logcat, I see the following message: java.lang.RuntimeException: Canvas: trying to draw too…
Brian Rak
  • 4,912
  • 6
  • 34
  • 44
95
votes
2 answers

How to fix: android.app.RemoteServiceException without any message (not related to Bad Notification or Broadcast)

I have an android.app.RemoteServiceException (RSE) but without any message. I get the following crash report on Google Play Console. When I get a RSE due to a bad Notification or Broadcast I get the related message but in this case it is a black…
93
votes
5 answers

Android install apk with Intent.VIEW_ACTION not working with File provider

My app has an auto-update feature that download an APK and when the download is finished that a Intent.VIEW_ACTION to open the app and let the user install the downloaded apk Uri uri = Uri.parse("file://" + destination); Intent install = new…
81
votes
13 answers

Android - WebView language changes abruptly on Android 7.0 and above

I have a multilingual app with primary language English and secondary language Arabic. As described in the documentation, I have added android:supportsRtl="true" in the manifest. I have changed all xml properties with left and right attributes to…
Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
80
votes
13 answers

android.os.TransactionTooLargeException on Nougat

I updated Nexus 5X to Android N, and now when I install the app (debug or release) on it I am getting TransactionTooLargeException on every screen transition that has Bundle in extras. The app is working on all other devices. The old app that is on…
Vladimir Jovanović
  • 2,261
  • 2
  • 24
  • 43
79
votes
3 answers

Unable to resume activity with java.lang.IllegalArgumentException on Android api >=24

There is a crash in my app on devices running version 7.0, 7.1.1 and 8.0.0 with the following stacktrace: Fatal Exception: java.lang.RuntimeException: Unable to resume activity {xxx/xxx.views.activities.HomeActivity}:…
Jiyeh
  • 5,187
  • 2
  • 30
  • 31
78
votes
4 answers

Expand/Collapse Lollipop toolbar animation (Telegram app)

I'm trying to figure out how the expand/collapse animation of the toolbar is done. If you have a look at the Telegram app settings, you will see that there is a listview and the toolbar. When you scroll down, the toolbar collapse, and when you…
67
votes
9 answers

SSLHandshakeException: Handshake failed on Android N/7.0

I'm working on an app for which the (power)users have to set up their own server (i.e. nginx) to run the backend application. The corresponding domain needs to be configured in the app so it can connect. I've been testing primarily on my own phone…
66
votes
10 answers

Android N change language programmatically

I found really weird bug that is reproduced only on Android N devices. In tour of my app there is a possibility to change language. Here is the code that changes it. public void update(Locale locale) { Locale.setDefault(locale); …
Kuva
  • 2,387
  • 4
  • 15
  • 20
56
votes
8 answers

In Android 7 (API level 24) my app is not allowed to mute phone (set ringer mode to silent)

I have an app that mutes the phone by using AudioManager and setting ringer mode to silent with this code: AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); try { …
Bjarte Aune Olsen
  • 3,230
  • 4
  • 24
  • 36
1
2 3
58 59