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 Bundle |
decodeUrl(String s)
Deprecated.
|
static String |
encodePostBody(Bundle parameters,
String boundary)
Deprecated.
|
static String |
encodeUrl(Bundle parameters)
Deprecated.
|
static String |
openUrl(String url,
String method,
Bundle params)
Deprecated.
|
static JSONObject |
parseJson(String response)
Deprecated.
|
static Bundle |
parseUrl(String url)
Deprecated.
|
static void |
showAlert(Context context,
String title,
String text)
Deprecated.
|
@Deprecated public static String encodePostBody(Bundle parameters, String boundary)
parameters
- the parameters need to be postedboundary
- the random string as boundary@Deprecated public static String encodeUrl(Bundle parameters)
@Deprecated public static Bundle decodeUrl(String s)
@Deprecated public static Bundle parseUrl(String url)
url
- the URL to parse@Deprecated public static String openUrl(String url, String method, 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 JSONObject parseJson(String response) throws JSONException, FacebookError
response
- - string representation of the responseJSONException
- - if the response is not valid JSONFacebookError
- - if an error condition is set@Deprecated public static void showAlert(Context context, String title, String text)
context
- Android context in which the dialog should be displayedtitle
- Alert dialog titletext
- Alert dialog message