|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.facebook.android.Util
public final class Util
Utility class supporting the Facebook Object.
THIS CLASS SHOULD BE CONSIDERED DEPRECATED. All public members of this class are intentionally deprecated. New code should instead useRequest
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 Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
@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 invalid
IOException
- - if a network problem occurs@Deprecated public static JSONObject parseJson(String response) throws JSONException, FacebookError
response
- - string representation of the response
JSONException
- - if the response is not valid JSON
FacebookError
- - 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |