<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
/** | |
* Copyright (c) 2013 Xcellent Creations, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to | |
* the following conditions: |
@TargetApi(Build.VERSION_CODES.KITKAT) | |
public static String getPath(final Context context, final Uri uri) { | |
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; | |
// DocumentProvider | |
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) { | |
// ExternalStorageProvider | |
if (isExternalStorageDocument(uri)) { | |
final String docId = DocumentsContract.getDocumentId(uri); |
(android.permission-group.MESSAGES) android.permission.SEND_SMS dangerous | |
(android.permission-group.MESSAGES) android.permission.SEND_RESPOND_VIA_MESSAGE <unknown> | |
(android.permission-group.MESSAGES) android.permission.RECEIVE_SMS dangerous | |
(android.permission-group.MESSAGES) android.permission.RECEIVE_MMS dangerous | |
(android.permission-group.MESSAGES) android.permission.CARRIER_FILTER_SMS <unknown> | |
(android.permission-group.MESSAGES) android.permission.RECEIVE_EMERGENCY_BROADCAST <unknown> | |
(android.permission-group.MESSAGES) android.permission.READ_CELL_BROADCASTS dangerous | |
(android.permission-group.MESSAGES) android.permission.READ_SMS dangerous |
import java.util.concurrent.TimeUnit; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
import okhttp3.Response; | |
import okhttp3.WebSocket; | |
import okhttp3.WebSocketListener; | |
import rx.Observable; | |
public class RxSocketConnection extends WebSocketListener { |