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.

Android 6.0 Dialog text doesn't appear

I updated my phone to Android 6.0 and I have these 2 problems with dialogs: 1)The title is shown but the messages …

android android-alertdialog android-dialogfragment android-dialog android-6.0-marshmallow
Android: what to choose for requestcode values?

Methods like ActivityCompat.requestPermissions require that I pass them a requestcode that I can later test in a callback (in …

java android user-interface android-permissions android-6.0-marshmallow
Provide custom text for Android M permission dialog

Is it possible to provide a custom text for the system dialog which is displayed when the user is asked …

android android-permissions android-6.0-marshmallow
How to check for Mock Location in Android Marshmallow?

How to detect if the location is triggered with Mock Location in Android Marshmallow? Previously, I used Settings.Secure.ALLOW_…

android location geofencing android-6.0-marshmallow
Android M onRequestPermissionsResult in non-Activity

I have an application which needs to find the user location, and location is fetched in various classes, so i …

java android android-6.0-marshmallow
Image from Gallery in Android 6(Marshmallow)

In My Application I am trying to Pick image from galley, so as to pass that image to server. Code …

android android-gallery android-6.0-marshmallow
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(…

java android permissions android-6.0-marshmallow
Can you request permissions synchronously in Android Marshmallow (API 23)'s runtime permissions model?

Say you have a method like this: public boolean saveFile (Url url, String content) { // save the file, this can be …

android android-permissions android-6.0-marshmallow
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 …

android bluetooth-lowenergy android-bluetooth android-6.0-marshmallow
setExactAndAllowWhileIdle - is not exact as of developer reference

AlarmManager on API19 has the method setExact() to set an exact alarm. Exact means --> If I set an …

android alarmmanager android-6.0-marshmallow