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
28
votes
12 answers

How to manage Runtime permissions android marshmallow espresso tests

I'm using espresso for testing but sometimes I try to get an image form external storage and with marshmallow I need a Runtime permission otherwise there will be an Exception crash and the test will fail. androidTestCompile…
Daniel Gomez Rico
  • 15,026
  • 20
  • 92
  • 162
27
votes
7 answers

Android M write to SD Card - Permission Denied

I'm trying to copy file from within my application to the SD card, but I get the error eacces (permission denied). The OS is Android M and I have allowed runtime Storage permissions (checked in app info). I have also set the uses-permission in…
Sahil Khanna
  • 4,262
  • 8
  • 47
  • 72
27
votes
3 answers

How to turn a portable SD card into internal storage via ADB command?

Android 6.0 Marshmallow’s introduces Adoptable Storage, a feature that allows use a SD Card as internal storage. Is it possible to activate adoptable storage via ADB shell commands?
cassioso
  • 966
  • 1
  • 13
  • 27
27
votes
6 answers

BluetoothLeScanner.startScan with Android 6.0 does not discover devices

I'm trying to use the function BluatoothLeScanner.startScan instead of the deprecated one BluetoothAdapter.startLeScan. Yesterday I updated my Nexus 5 to Android 6.0 and since that moment my app does not work anymore. I firstly add the preferences…
27
votes
6 answers

Android: java.land.NoSuchFieldError after update to SDK 23

I updated to SDK 23 and updated the gradle.build to API 23, support library to 23.0.0, etc and am now getting the following error when trying to run the app (compiles just fine). java.lang.NoSuchFieldError: No instance field mFragments of type…
mraviator
  • 4,034
  • 9
  • 38
  • 51
27
votes
6 answers

Design lib - CoordinatorLayout/CollapsingToolbarLayout with GridView/listView

This might be silly question but I didn't understand Design lib well. I am following this reference to create below layout. The Blue area should work as parallax when I scroll the GridView. But when I scroll grid View nothing happens in…
27
votes
4 answers

Android - Create SMS from PDU deprecated API?

I want to create an app that gets notified when an SMS arrives and processes that SMS, but reading the reference for the createFromPdu function, it states that: This method will soon be deprecated and all applications which handle incoming SMS…
Zoltán Szőcs
  • 1,141
  • 2
  • 11
  • 23
26
votes
3 answers

How to get input from fingerprint scanner and save it

I am Using Android Marshmallow, and Moto G4 plus a device for testing. I want to create an application which will take the fingerprint input and saved in a local database(sqlite) Or to database, I mean which type we can take input and save it?
Kuldeep Singh
  • 950
  • 1
  • 9
  • 17
26
votes
2 answers

CardView elevation not showing in lollipop and higher versions

I was using cardview, but the problem is elevation not showing in lollipop and higher versions. please suggest me.Here is my code.
26
votes
5 answers

How to shift device in Doze Mode (Android Preview M / Marshmallow)?

I followed steps described here: https://developer.android.com/preview/testing/guide.html#doze-standby Circumstances: Android Debug Bridge version 1.0.32 Nexus 9 with Preview M Shell: $ adb shell dumpsys battery unplug => worked, device…
A.D.
  • 1,412
  • 2
  • 19
  • 37
25
votes
7 answers

Can I override default push notification icon in android from app icon to custom icon?

Can I override default push notification icon in android from app icon to custom icon? I am using default firebase implementation to display notification in system tray, when a push notification come. Since my app icon is coloured and has gradient,…
25
votes
2 answers

Replacing in call app

Background I'm trying to develop a really simple in call app to replace the stock version. Basically, I just want to answer incoming calls and present the user with a really simple customized UI. There is no need for outgoing calls or any fancy…
user5806139
  • 531
  • 6
  • 14
25
votes
3 answers

Requesting and allowing WRITE_EXTERNAL_STORAGE permission at runtime has no effects on the current session

this is regarding the new model of runtime permissions introduced in Android Marshmallow when requesting Manifest.permission.WRITE_EXTERNAL_STORAGE permission. In short, what I am experiencing is that if I request (and the user allows)…
24
votes
3 answers

Camera2basic app, has very dark preview in Android 6.0 LGG3

The new API, perhaps only on LG G3, seems to have something changed. I'm using the sample code. On my nexus 4, the code runs perfectly, but on LGG3 updated to Android 6.0 it does not. Any ideas? I played with the settings, but no luck, this still…
24
votes
2 answers

PackageInstaller "Silent install and uninstall of apps by Device Owner” - Android M Preview

PackageInstaller (https://developer.android.com/reference/android/content/pm/PackageInstaller.html) seems to have been added starting in API 21 (Lollipop), however I have not found any solid code examples on how to install an APK via this API. Any…