android-6.0-marshmallow

SSLHandshakeException SSLProtocolException with Android 6 (marshmallow)

放肆的年华 提交于 2020-01-01 07:05:11
问题 I've an app that communicates with a server through an SSLSocket. From Android 6 I receive a SSLHandshakeException javax.net.ssl.SSLHandshakeException: Handshake failed at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:396) at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629) at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591) at com.pandaproject.service.ClientSocket.sendPatient

How to provide content to be shown on Google-Now-On-Tap?

帅比萌擦擦* 提交于 2020-01-01 05:49:30
问题 Background I work on an app that can answer to certain queries (phone number queries, and maybe others). Google introduced a new feature on Android 6 , called "Google Now On Tap" (AKA "Assist API") , which allows the user to query about things that are shown on the screen (triggered by long-click on home button or by saying something) without the need to type anything. Google provided a developers tutorial for it, here The problem I can't find any code snippet to show how to prepare the app

Testing Accessibility on Emulated Device (Marshmallow)

前提是你 提交于 2020-01-01 04:05:09
问题 I want to test the accessibility of my app in emulator (particularly Talkback ) but it seems that the option is missing in emulator. Here is the screen shot from the emulator in accessibility settings: There are two options "ClockBack" and "QueryBack" which I couldn't find on my phone with the same android version. Here is the screenshot of the accessibility setting of my phone: I searched to learn about "ClockBack" and "QueryBack" to see if they are replacement of Talkback in emulator but I

Duplicate permission request after orientation change

和自甴很熟 提交于 2020-01-01 02:33:05
问题 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: https://developer.android.com/preview/features/runtime-permissions.html. In one of the activities I embed a SupportMapFragment. To make it work you need to have the WRITE_EXTERNAL_STORAGE permission, so I request it when I start the activity which results in a creation of a permission request dialog. Now the

Android 6.0 Marshmallow : Weird error with fragment animation

一个人想着一个人 提交于 2019-12-31 12:22:37
问题 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, inAnim, outAnim); Without this line, my app also works fine on 6.0, with it I get this error : 10-14 14:36:51.016 23750-23820/? A/libc: Fatal signal 7 (SIGBUS), code 1, fault addr 0xb1 in tid 23820 (hwuiTask1) 10-14 14:36:51.118 200-200/? A/DEBUG: *** *

ConnectivityManager.requestNetwork in Android 6.0

主宰稳场 提交于 2019-12-31 08:57:28
问题 I'm trying to get the new ConnectivityManager.bindProcessToNetwork(Network) using ConnectivityManager.requestNetwork(NetworkRequest, ConnectivityManager.NetworkCallback) The reason is to force the app to call the future request in some specific network, which doesn't have a internet connectivity (it's a local hardware communication network). At this point, the system is sending the requests over 3G/4G network and never reach the desired Wifi network, because this network doesn't respond the

How to deal with removal of a permission for a broadcast receiver in Android M?

拟墨画扇 提交于 2019-12-31 08:44:15
问题 I've got some legacy code which I am making permission safe for Marshmallow. There is a broadcast using the PHONE_STATE permission as follows: <receiver android:name="redacted.TheBroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE"></action> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> If the PHONE_STATE permission is granted but then later the user denied then when there is a phone call there is a

unable to pick files like pdf,doc,ppt in MARSHAMALLOW file chooser

倖福魔咒の 提交于 2019-12-31 07:16:08
问题 I am uploading files like pdf,ppt,doc etc to server using from my android app but in marshmallow when file chooser opens and i browse my Sdcard or internal storage there are two problmes : 1. it shows all files like images,videos and documents etc which i cannot pick but i used intent type as application/pdf; appkication/ppt etc.,so it should let me pick those files. 2. secondly when i use external file manager like ES file explorer etc it then show all files like images,videos,documents,apks

Requesting multiple Bluetooth permissions in Android Marshmallow

纵饮孤独 提交于 2019-12-31 01:52:13
问题 I'm developing an app with connectivity which connects to a Bluetooth device with SDK 23 as compile with. I'm having problems with requesting multiple permissions for Bluetooth. This is what I have done so far: @Override public void onStart() { super.onStart(); if (D) Log.e(TAG, "++ ON START ++"); if (ContextCompat.checkSelfPermission(MyBlueToothClientActivity.this, Manifest.permission.BLUETOOTH) != PackageManager.PERMISSION_GRANTED) { } else { ActivityCompat.requestPermissions

Understanding the Android 6 permission method

眉间皱痕 提交于 2019-12-30 20:31:13
问题 I am trying to take an image from Gallery and set it to an imageview but in Android 6 there are some permission problems. Below is the method to ask for the permission. Should I ask for read external storage or write external storage? Here is what I have done so far: private static final int READ_CONTACTS_PERMISSIONS_REQUEST = 1; public void getPermissionToReadExternalStorage() { if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager