public final class Util extends Object
Request
Adding @Deprecated to this class causes warnings in other deprecated classes
that reference this one. That is the only reason this entire class is not
deprecated.| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static android.os.Bundle |
decodeUrl(String s)
Deprecated.
|
static String |
encodePostBody(android.os.Bundle parameters,
String boundary)
Deprecated.
|
static String |
encodeUrl(android.os.Bundle parameters)
Deprecated.
|
static String |
openUrl(String url,
String method,
android.os.Bundle params)
Deprecated.
|
static org.json.JSONObject |
parseJson(String response)
Deprecated.
|
static android.os.Bundle |
parseUrl(String url)
Deprecated.
|
static void |
showAlert(android.content.Context context,
String title,
String text)
Deprecated.
|
@Deprecated public static String encodePostBody(android.os.Bundle parameters, String boundary)
parameters - the parameters need to be postedboundary - the random string as boundary@Deprecated public static String encodeUrl(android.os.Bundle parameters)
@Deprecated public static android.os.Bundle decodeUrl(String s)
@Deprecated public static android.os.Bundle parseUrl(String url)
url - the URL to parse@Deprecated public static String openUrl(String url, String method, android.os.Bundle params) throws MalformedURLException, IOException
url - - the resource to open: must be a welformed URLmethod - - the HTTP method to use ("GET", "POST", etc.)params - - the query parameter for the URL (e.g. access_token=foo)MalformedURLException - - if the URL format is invalidIOException - - if a network problem occurs@Deprecated public static org.json.JSONObject parseJson(String response) throws org.json.JSONException, FacebookError
response - - string representation of the responseorg.json.JSONException - - if the response is not valid JSONFacebookError - - if an error condition is set@Deprecated public static void showAlert(android.content.Context context, String title, String text)
context - Android context in which the dialog should be displayedtitle - Alert dialog titletext - Alert dialog messageCopyright © 2013. All Rights Reserved.