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
21
votes
2 answers

On Android M, how to configure the "direct-share" capabilities (image, text), and how to query the items?

Background According to a new feature on Android M (link here), apps outside your app can offer to give a direct sharing intent to one of its activities, allowing, for example, a chatting app to share the content to an exact contact, so you choose…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
20
votes
4 answers

PREVIEW - Google Nexus 5X - 6.0.0 (API 23) Gapps

Is there is some Gapps flashable zip, that works with PREVIEW - Google Nexus 5X - 6.0.0 (API 23) on Genymotion? I have tried Slim_zero_gapps.BETA.6.0.build.0.x-20151008a gapps-600-base-20151009-2-signed benzo-gapps-M-20151011-signed-chroma-r3 and…
Alpha
  • 1,754
  • 3
  • 21
  • 39
20
votes
1 answer

How app can access files on USB OTG storages in Android 6.0 (API level 23) without root?

Android 6.0 Developer Preview (API level 23) can natively mounts external removable USB OTG storages out-of-the-box without any additional apps (for more info please see:…
19
votes
5 answers

Android API-23: InetAddressUtils replacement

Switching to Android Marshmallow API, I was using org.apache.http.conn.util.InetAddressUtils for InetAddressUtils.isIPv4Address(ipAddress) in a code to list all IPs from a device. As part of the API-23 changes, the InetAddressUtils class is now…
shkschneider
  • 17,833
  • 13
  • 59
  • 112
19
votes
1 answer

Android M requesting permissions with permission_groups

The Android M Preview docs shows us how to check and request permissions with the new permissions model. In the chart below that it shows us a group of Permission Groups and their associated Permissions. When I try to to checkSelfPermission with a…
trippedout
  • 1,561
  • 13
  • 20
18
votes
11 answers

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 versions. When I came to Marshmallow it stopped working. This is the error: camerabase an error occurred while connecting to camera 0 It forces me…
18
votes
2 answers

Requesting Permissions at Run Time Ionic

In Android Marshmallow users grant permissons to apps while the app is runing,not when they install the app so how to check and grant Permissons at Run-Time in ionic ?
Houssem
  • 320
  • 1
  • 5
  • 15
18
votes
5 answers

WRITE_SETTINGS Permission ambiguity

I'm building my app for android 6.0 Marshmallow, it needs WRITE_SETTTINGS permission. After searching from here I came to know that calling this: requestPermissions(new String[]{Manifest.permission.WRITE_SETTINGS}, 101); won't show…
Pankaj
  • 2,115
  • 2
  • 19
  • 39
18
votes
2 answers

Spinner inner padding is larger on Android 6.0.1

Intro: With the new release of Android 6.0.1, seems like Android made some changes on the Spinner component because by default, the inner padding around the down carrot is a bit bigger. I noticed this on an app where I haven't modified anything in…
18
votes
2 answers

Marshmallow FINE and COARSE location permission

I'm trying to access ACCESS_FINE_LOCATION and if it cannot be found access ACCESS_COARSE_LOCATION. So I request for those 2 permission, but they give me the same dialog asking for location permission. I know those are both in the same group but…
Robin Dijkhof
  • 18,665
  • 11
  • 65
  • 116
18
votes
4 answers

Android 6.0 Marshmallow : Weird error with fragment animation

One of my apps in the app store works perfectly fine with Android 5.0, but since today I have my device upgraded to 6.0 I get strange errors. I narrowed it down to the fragment transition animations. ftrans.setCustomAnimations(inAnim, outAnim,…
ElDuderino
  • 3,253
  • 2
  • 21
  • 38
18
votes
2 answers

android : camera doesn't open in marshmallow

So, I have below code that open camera, capture the image and save it on SDCard. public void getPhotoFromCamera() { Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File mediaStorageDir = new File( …
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
18
votes
2 answers

checkSelfPermission returning PERMISSION_GRANTED for revoked permission with targetSdkVersion <= 22

I'm studying the new permission model of Android Marshmallow but I'm facing an issue I find odd. An app with targetSdkVersion 22 (so not yet using the new permission model of Android Marshmallow) declares the READ_CONTACTS permission in the…
Venator85
  • 10,245
  • 7
  • 42
  • 57
18
votes
5 answers

Wakelock and doze mode

According to Android Marshmallow documentation when the system is in doze mode, any wakelock is ignored. However it's not clear to me if a wakelock prevent doze mode or not.
greywolf82
  • 21,813
  • 18
  • 54
  • 108
18
votes
4 answers

Lvl library and android marshmallow

Lvl library doesn't compile anymore on Android Marshmallow due to the lack apache stuff removed. You can add useLibrary 'org.apache.http.legacy but it's only a temporary workaround. The problem is this method: private Map
greywolf82
  • 21,813
  • 18
  • 54
  • 108