android-6.0-marshmallow

Connect to Wifi programmatically not working for Android Marshmallow?

依然范特西╮ 提交于 2021-02-08 09:22:05
问题 String BACKSLASH = "\""; String NETWROK_SECURITY_WEP = "WEP"; String NETWROK_SECURITY_NONE = "NONE"; String NETWROK_SECURITY_WPA = "WPA"; String NETWROK_SECURITY_WPA2 = "WPA2"; String NETWROK_SECURITY_WPA_WPA2 = "WPA/WPA2 PSK"; String NETWROK_ADDITIONAL_SECURITY_TKIP = "TKIP"; String NETWROK_ADDITIONAL_SECURITY_AES = "AES"; String NETWROK_ADDITIONAL_SECURITY_WEP = "WEP"; String NETWROK_ADDITIONAL_SECURITY_NONE = "NONE"; int FAILED_TO_ADD_NETWORK = -1; WifiConfiguration conf = new

How to test your program after updating the OS on Android in emulator?

被刻印的时光 ゝ 提交于 2021-02-07 13:39:55
问题 For our android app we have had customers that report the program crashes after updating their system from Lollipop to Marshmallow. The program works fine if they do a clean install on Marshmallow, it only happens when they update. I am trying to recreate their environment on a emulator. The problem I am encountering is I can not figure out how to install the program on Lollipop in the emulator then upgrade the emulator to Marshmallow so I can run a debugger on the program to see where it

Android M 6.0 - SecurityException Trying to remove accounts

六眼飞鱼酱① 提交于 2021-02-07 12:48:47
问题 I have an app that uses Android AccountManager (package name: com.mycompany.accounts), that adds accounts to the device and provides a login screen. I have another app (com.mycomp.actualapp), that uses the first app to add/remove accounts. I can successfully add and remove accounts on Pre Marshmallow devices, using the following permissions in the manifest: <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>

Permission dialog exits automatically android

与世无争的帅哥 提交于 2021-02-07 10:34:20
问题 I'm working on Marshmallow permission support, and I have implemented it in my app. But I observe a strange behavior while requesting permissions. PROBLEM : When I launch my app for the first time, everything goes well, and on the home page, the user is presented with a permission dialog asking for ACCESS_FINE_LOCATION. User denies the permission, and on denial I show another dialog, explaining why the permission is needed, and to reconsider the option of denying the permission (with I'm Sure

Use of sound files in TTS on Marshmallow (Android 6) fails with permission issues

杀马特。学长 韩版系。学妹 提交于 2021-02-07 06:48:31
问题 Using addSpeech() in android TTS, you can link a certain text to a sound file. Then, the TTS engine plays the file instead of synthesizing the sound of the text (also in question at Android TTS(Text to Speech)'s addSpeech() and speak() can't play a sound file in the external storage from marshmallow(api 23) above, with Google TTS ). This is not working in Android 6.0 with TTS version 3.9.14 (and 3.10.10). So far, I did not see ant post with an answer as to why this is not working in Android 6

How does Doze/Standby feature affect location updates?

泄露秘密 提交于 2021-02-05 22:25:48
问题 Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs (http://developer.android.com/training/monitoring-device-state/doze-standby.html) only state that CPU and network are deferred and do not mention any affect on location updates (i.e. from the LocationManager). Based on this, it would seem that location updates are not affected by Doze/Standby, so if an app is holding a

How does Doze/Standby feature affect location updates?

浪子不回头ぞ 提交于 2021-02-05 22:23:08
问题 Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs (http://developer.android.com/training/monitoring-device-state/doze-standby.html) only state that CPU and network are deferred and do not mention any affect on location updates (i.e. from the LocationManager). Based on this, it would seem that location updates are not affected by Doze/Standby, so if an app is holding a

How does Doze/Standby feature affect location updates?

早过忘川 提交于 2021-02-05 22:20:16
问题 Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs (http://developer.android.com/training/monitoring-device-state/doze-standby.html) only state that CPU and network are deferred and do not mention any affect on location updates (i.e. from the LocationManager). Based on this, it would seem that location updates are not affected by Doze/Standby, so if an app is holding a

TabLayout not displaying tab title on Marshmallow

给你一囗甜甜゛ 提交于 2021-01-29 03:54:55
问题 I'm having a strange issue with the titles of my tabs not showing up when I test my app on a marshmallow device. When I test it on all other devices, the titles show up just fine. While debugging, the device hits all of the same points including the the "getPageTitle" method inside my adapter. I've read through many tutorials for using android's TabLayout and ViewPager, just to make absolutely certain I'm not missing anything, and from what I can tell, I am not doing anything wrong. Here is

How to get “Never ask Again” option in runtime permission

孤人 提交于 2021-01-28 01:40:39
问题 In my app I have created a class name Untility where I wrore the code for permission of READ_EXTERNAL_STORAGE. But the problem is when I click Deny on the app, I am not finding the alert notification to set it allow again. Initialy I have the option "Never ask Again". Once I clicked on it, the dialog desapperas. and now after running the app if I click on deny, I cannot find Dialog message anymore to make it allow again. How can I modify my code to show this message every time. My Utility