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

I my case, moving the (hi-res) splash bitmap from drawable to drawable-xxhdpi was the solution. I had the same problem. I didn’t suspect my splash screen to be the problem, since it is displayed when the app is started, but it turned out the splash screen is the problem. The splash screen in my case … Read more

Android 7 Native Crash: libc.so tgkill

Looking at the dump you provided gives some clues: _ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv This indicates that the error occurred in the UI thread. libhwui.so x 6 This indicates that this is happening in the middle of some graphics/ui related code. libcutils.so – __android_log_assert This is an assert handler, so most likely some kind of assert was violated in … Read more

How to get charles proxy work with Android 7 nougat?

The solution is do not use .p12, just navigate with Chrome (with configured proxy on wifi) to http://charlesproxy.com/getssl and install downloaded .pem file. I had exactly the same problem on my Nexus 5X running Android 7.0. There was previously exported .p12 from Charles 3.11.5 (Help->SSL Proxying->Export Charles Root certificate and Private key). When I tried … Read more

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

I got the same error you describe but on OS X. I know this may not solve your problem (because I don’t know the equivalent for Windows), but since this is not OS specific I am leaving the solution for any OS X fellow out there. Edit the file /Applications/Android\ Studio.app/Contents/Info.plist, and remove the 1.6 … Read more

Html.fromHtml deprecated in Android N

update: as @Andy mentioned below Google has created HtmlCompat which can be used instead of the method below. Add this dependency implementation ‘androidx.core:core:1.0.1 to the build.gradle file of your app. Make sure you use the latest version of androidx.core:core. This allows you to use: HtmlCompat.fromHtml(html, HtmlCompat.FROM_HTML_MODE_LEGACY); You can read more about the different flags on … Read more

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

If your targetSdkVersion >= 24, then we have to use FileProvider class to give access to the particular file or folder to make them accessible for other apps. We create our own class inheriting FileProvider in order to make sure our FileProvider doesn’t conflict with FileProviders declared in imported dependencies as described here. Steps to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)