Questions tagged [android-6.0-marshmallow]

Android Marshmallow, formerly known as just "Android M", is version 6.0 of Android, is supporting API Level 23, and began shipping in October 2015.

Android Marshmallow, formerly known as just "Android M", is version 6.0 of Android, and began shipping in October 2015.

It was first shown at Google I/O 2015, with the final name confirmed on August 17th.

All API changes

Here is a summary of the major API-changes:

  • Runtime Permissions
  • Power-Saving Optimizations
  • Adoptable Storage Devices
  • Apache HTTP Client Removal
  • AudioManager Changes
  • Notifications
  • Text Selection
  • Android Keystore Changes
  • Wi-Fi and Networking Changes
  • Camera Service Changes
  • Runtime
  • Access to Hardware Identifier
  • APK Validation
  • USB Connection
  • Android for Work Changes

Official:

2168 questions
23
votes
1 answer

APK size increased 35mb when bumping min SDK from 21 to 24

Recently we bumped our min supported SDK from API 21 to 24. Apparently this change caused our APK size to increase from 65mb to 103mb. From the APK analysis in Android studio, we can see it's all of the .so files that have basically doubled in size.…
23
votes
1 answer

Understanding & testing Android M+ Doze Mode

I am working on making my Android app a good citizen of the post Android M world which imposes severe constraints on what an app can/cannot do when the device goes into doze. My understanding of the issues involved is still rather fragmentary so I…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
23
votes
3 answers

How to Give Screen Overlay Permission On My Activity

In My application I am getting Screen Overlay Issue in android 6+ I tried to Turn on But for that I need to Give a Permission for Screen Overlay I followed this I am unable to Integrate in my activity I also Tried this seems both are working so I…
Don't Be negative
  • 1,215
  • 3
  • 19
  • 46
23
votes
4 answers

Android 23+ - Exclude GCM Registration ID from backup

I have an app which uses Azure to send Push notifications. Azure in turn, uses GCM to send to Android devices. I'm noticing that I have a warning in my AndroidManifest.xml stating On SDK version 23 and up, your app data will be automatically…
23
votes
3 answers

Android App not asking for permissions when installing

I work in the IT department of my university and we work on an app that installs the correct setup for the eduroam WiFi (maybe you have heard of it). However I have a problem running it on my own LG G4 with Android 6.0. When installing the compiled…
23
votes
5 answers

Android 6.0 RuntimeException: Fail to connect to camera service

An error occurred with my app which ran in Nexus5 (Android6.0). The error was java.lang.RuntimeException: Fail to connect to camera service I had added the permission to the AndroidManifest.xml. But the app is OK with another phone(Android5.1),…
HelloSilence
  • 935
  • 2
  • 7
  • 19
23
votes
1 answer

Writing external storage doesn't work until I restart the application on Android M

I am having an issue with the new permission system. I modified my code to ask permission for WRITE_EXTERNAL_STORAGE. But my app cannot write to (or read from) the sd card until I restart application (of course I allowed it in the dialog). After…
22
votes
2 answers

Send request over WiFi (without connection) even if Mobile data is ON (with connection) on Android M

I have to send UDP packets to a WiFi module (provided with own AP) with no internet connection but when I connect the mobile with the AP, Android redirects my packets on the mobile data interface because it has got internet connection. I've used the…
22
votes
3 answers

Android 6.0 (Marshmallow): How to play midi notes?

I'm creating an app that generates live instrument sounds and I'm planning on using the new Midi API featured in Android Marshmallow (version 6.0). I've read the package overview document here…
Cody
  • 1,801
  • 3
  • 28
  • 53
22
votes
4 answers

Android runtime permissions- how to implement

Android Developer Documentation gives this example of requesting permissions at runtime: // Here, thisActivity is the current activity if (ContextCompat.checkSelfPermission(thisActivity, Manifest.permission.READ_CONTACTS) !=…
Andrew Torr
  • 1,057
  • 3
  • 13
  • 26
22
votes
1 answer

Detecting Doze State

Is it possible to detect when a device enters Doze/Standby? I haven't been able to find anything in the Android documentation about a possible Broadcast Receiver or Listener that I could enable or create in order to receive notifications of these…
Kevassi
  • 247
  • 1
  • 3
  • 10
22
votes
3 answers

How does Doze/Standby feature affect location updates?

Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs…
user462297
22
votes
2 answers

How to change the status bar notification icons' color/tint in android (marshmallow and above 23+)?

As the title says, how do I change the status bar icons' color to have a dark tint instead of the default white. FROM TO
Sazid
  • 2,747
  • 1
  • 22
  • 34
21
votes
5 answers

Emulator Not Running on Android Studio

I am trying to run an emulator over Android Studio, but it's not starting. I have Android studio (version 23 marshmallow), configured with minSdkVersion 21 targetSdkVersion 23 When I run my app in emulation (nexus 5x api 23 android 6.0), I get the…
Amit
  • 211
  • 1
  • 2
  • 4
21
votes
9 answers

Error after Fingerprint touched on Samsung phones: android.security.KeyStoreException: Key user not authenticated

My app uses Android 6.0 Fingerprint API to protect AES key in the Android KeyStore. The stored key can be used only when user is authenticated by fingerprint sensor because the KeyGenParameterSpec is initialized with…