Top "Android-6.0-marshmallow" questions

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.

How to ask runtime permissions for Camera in Android , Runtime storage permissions

I am doing an application to scan barcodes on a button click and it was working fine up to Lollipop …

android android-camera barcode android-6.0-marshmallow runtime-permissions
How to set Android M default USB config to MTP rather than "charging only"?

Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to "charging only". This is …

android nexus-5 mtp android-6.0-marshmallow
Android FAB plus sign not present on android drawable

Where can I find the plus sign at the center of a Floating Action Button? Is it made by Android …

android material-design android-5.0-lollipop android-6.0-marshmallow floating-action-button
Android M Camera Intent + permission bug?

I'm trying to get my app ready for the new Android M permissions changes and found some weird behaviour. My …

android android-camera android-permissions android-camera-intent android-6.0-marshmallow
onRequestPermissionsResult not being called in dialog fragment

I have started to work on Android M runtime permission. Here I am facing the issue that if requestPermissions is …

android android-fragments android-dialogfragment android-6.0-marshmallow
Android M permission dialog not showing

I'm currently trying to adapt my application to the new permissions model of Android M. I'm collecting all the permissions …

android permissions android-6.0-marshmallow
Android M Light and Dark status bar programmatically - how to make it dark again?

In the Android M we have ability to make status bar icons dark. To do that we can specify attribute …

android user-interface android-6.0-marshmallow android-statusbar
Android 6.0 permission.GET_ACCOUNTS

I'm using this to get permission: if (ContextCompat.checkSelfPermission(context, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) { // Should we show …

android permissions android-6.0-marshmallow
Method FloatMath.sqrt() not found

I'm using the new Android Marshmallow SDK and the method FloatMath.sqrt() is gone. What should I use now?

android android-6.0-marshmallow
Request runtime permissions from v4.Fragment and have callback go to Fragment?

I'm having a weird issue that is causing a conflict. I had to switch to native Fragments to fix it, …

java android android-fragments android-6.0-marshmallow