|
| static ExecutorService | sharedExecutorService () |
| |
| static String | device () |
| |
| static URL | makeURL (String host, String uri, Map< String, String > params) |
| |
| static URL | makeURL (String host, String uri, String params) |
| |
| static< T extends Comparable<? super T > List< T > | asSortedList (Collection< T > c) |
| |
| static String | getParamsString (Map< String, String > params, String separator, boolean urlEncode) |
| |
| static< T > Set< T > | getSubset (Map< String, T > objects, int firstIndex, int count) |
| |
| static String | join (Collection<? extends Object > list, String separator) |
| |
| static boolean | isNullOrEmpty (String string) |
| |
| static Object | getJSONValueOrElse (JSONObject json, String key, Object orElse) |
| |
| static JSONObject | objectFromJSON (String json) |
| |
| static void | overwriteJSONObject (JSONObject src, JSONObject dst) throws JSONException |
| |
| static String | encryptString (String rawString) |
| |
| static String | blockingGetEmbedTokenForEmbedCodes (EmbedTokenGenerator generator, List< String > embedCodes) |
| | Block the current thread while getting the Ooyala Player Token. More...
|
| |
| static String | getUrlContent (URL url, int connectionTimeoutInMillisecond, int readTimeoutInMillisecond) |
| | Get string from http get method. More...
|
| |
| static String | postUrl (URL url, String body, int connectionTimeoutInMillisecond, int readTimeoutInMillisecond) |
| | calling http post method More...
|
| |
| static byte [] | bytesFromPostUrl (String urlString, byte[] body, Map< String, String > requestProperties, int connectionTimeoutInMillisecond, int readTimeoutInMillisecond) |
| | calling http post method and returns the response byte array More...
|
| |
| static String | mapToJsonString (Map< String, String > map) |
| | convert a map to a json string More...
|
| |
| static void | pingUrl (URL url) |
| | Simply send an HTTP get via shared thread pool, usually used to send tracking feedbacks. More...
|
| |
| static void | openUrlInBrowser (Context context, String url) |
| | open a url in device browser More...
|
| |
| static void | bytesToFile (File file, byte[] bytes) throws IOException |
| |
| static byte [] | bytesFromFile (File file) |
| |
| static boolean | objectToFile (File file, Serializable object) throws IOException |
| |
| static HashMap< String, String > | mapFromFile (File file) |
| |
| static int | generateViewId () |
| |
| static boolean | isInternetAvailable (Context context) |
| | Check if internet is available. More...
|
| |
| static boolean | isInternetConnected (Context context, int[] desiredNetworkTypes) |
| | Check if internet is available for specifics network types. More...
|
| |
| static boolean | hasInternetCapabilities (Context context, int[] desiredNetworkTransports) |
| | Check if internet is available for specifics network transports. More...
|
| |
| static String | updateProtocolToHttps (String url) |
| | Return an updated URL string, with https as a protocol. More...
|
| |