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

Android Draw behind Status bar but not behind the navigation bar

I'm looking into a way where the status bar is completely transparent, not translucent and where the Navigation Bar is left untouched. Closest I can get is to use the flag WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS but this draws behind the…
16
votes
2 answers

"You cannot change private secure settings" - how to toggle ringtone vibration in Android 6?

Due to recent changes in Android 6 Marshmallow regarding permissions, the following code no longer works and throws an exception. Settings.System.putInt(getContentResolver(), "vibrate_when_ringing", 0); This happens even after granting…
EyesClear
  • 28,077
  • 7
  • 32
  • 43
16
votes
2 answers

Doze mode and App Standby

How can I know in my app if the phone is in Doze mode or if my app is in Standby mode? Can I also know it by using some subscribing approach?
jlopes
  • 1,012
  • 2
  • 11
  • 18
16
votes
4 answers

How to create Android-M Preview emulator?

I think I have installed all the system images required for android m preview, but still my emulator is showing nothing, its always blank. Please help me After Suggestion i have downloaded the other requirements, but still its not working
Abhishek
  • 1,337
  • 10
  • 29
15
votes
2 answers

Android 6.0 Marshmallow BLE connectivity issues

I am experiencing serious issues with Android 6.0 and some devices with Bluetooth Low Energy. One of those conflictive devices is this one: DEVICE INFO: Name: Samsung Galaxy SV Model number: SM-G900V Android vers: 6.0.1 Patch level: …
GoRoS
  • 5,183
  • 2
  • 43
  • 66
15
votes
2 answers

android 6.0.1 force wifi connection with no internet access

this has many similar questions (google for: "no internet access detected. won't automatically reconnect." or: android force wifi connection programmatically). i thought i had a answer here, but it stopped working after installing 6.0.1 updates (i…
15
votes
3 answers

Android: register new PhoneAccount for telecom

I'm trying to make a new PhoneAccount to use my implementation of ConnectionService. In the documentation it says I need to register a new PhoneAccount with TelecomManager and then select it in my phone-app's settings. Here's my code: TelecomManager…
15
votes
4 answers

Could not open avd_name.avd/cache.img

When i run emulator, i get the following error: Cannot launch AVD in emulator. Output: Hax is enabled qemu-system-x86_64.exe: -drive if=none,index=1,id=cache,file={path_to_SDK}\SDK.android\avd{AVD_name}.avd/cache.img: could not open disk image…
15
votes
3 answers

Get Current Location 0 in marshmallow where below 23 API its give exact current Location using fused Location

I got current Location in Below 23 devices but getting (0.0,0.0) latitude and Longitude in 23 emulator device. EDIT Currently I am using Fused Location Provider for get Current Location public class ContactUsFragment extends Fragment implements…
Vishal Thakkar
  • 2,117
  • 2
  • 16
  • 33
15
votes
2 answers

Colors of Profile GPU bars on Android M

When setting Profile GPU rendering developer feature to "On screen as bars" I used to see bars with blue, purple, red, and orange colors on Android Lollipop as described here. But on Android Marshmallow these bars consist of seven different colors:…
Michael
  • 53,859
  • 22
  • 133
  • 139
15
votes
3 answers

listFiles() returns null on Android 6.0 emulator

I want to read jpeg files from sdcard on Android 6.0 emulator, but file list returns null. The sample code can work on my phone: String sdcard = Environment.getExternalStorageDirectory().toString(); File sdcard_dir = new…
yushulx
  • 11,695
  • 8
  • 37
  • 64
15
votes
3 answers

Duplicate permission request after orientation change

Because the Android SDK 23 gives users the possibility to deny apps access to certain functionalities I wanted to update one of my apps to request permissions as it is described in here:…
14
votes
3 answers

Choose image from gallery and camera through web view is not working in Android 6.0 Marshmallow

Here is my code. I am using WebView for registration purposes. In the registration process I have to upload an image from the device. I have finished the code for this and it is working properly in every Android version except Marshmallow. I have…
Farhana Naaz Ansari
  • 7,524
  • 26
  • 65
  • 105
14
votes
3 answers

Can't answer incoming call in android marshmallow 6.0

I'm creating a calling app. Here's Auto answer which works on android 4.0 and 5.0; whereas when i have an incoming call answer call button works but it doesn't work on android 6.0. I tested answer of this post but it doesn't work too : Answer…
14
votes
1 answer

SecurityException - Unknown calling package name -Android 6.0.1

My app is on app store for since over than two years, I recieved this crash on Crashlytics for the last two builds, only for Android devices with "Android 6.0.1" **Fatal Exception: java.lang.SecurityException Unknown calling package name…
S qasem
  • 273
  • 1
  • 8