public class GingerbreadUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
clearCookies(java.net.CookieHandler cookieHandler)
Clears the cookies in the given cookie handler.
|
static android.nfc.NdefRecord |
createTextRecord(java.lang.String payload,
boolean encodeInUtf8) |
static void |
disableNFCAdapter(android.app.Activity activity,
android.nfc.NfcAdapter nfcAdapter) |
static void |
enableNFCWriteMode(android.app.Activity activity,
android.nfc.NfcAdapter nfcAdapter,
java.lang.String textToWrite) |
static java.net.CookieHandler |
newCookieManager()
Creates a new CookieManager instance.
|
static android.nfc.NfcAdapter |
newNfcAdapter(android.content.Context context)
Creates a new NfcAdapter instance.
|
static void |
resolveNFCIntent(android.content.Intent intent,
NearField nfc) |
static boolean |
writeNFCTag(android.nfc.NdefMessage message,
android.nfc.Tag tag) |
public static java.net.CookieHandler newCookieManager()
public static boolean clearCookies(java.net.CookieHandler cookieHandler)
cookieHandler
- the cookie handler where cookies should be clearedpublic static android.nfc.NfcAdapter newNfcAdapter(android.content.Context context)
public static void enableNFCWriteMode(android.app.Activity activity, android.nfc.NfcAdapter nfcAdapter, java.lang.String textToWrite)
public static void disableNFCAdapter(android.app.Activity activity, android.nfc.NfcAdapter nfcAdapter)
public static android.nfc.NdefRecord createTextRecord(java.lang.String payload, boolean encodeInUtf8)
public static void resolveNFCIntent(android.content.Intent intent, NearField nfc)
public static boolean writeNFCTag(android.nfc.NdefMessage message, android.nfc.Tag tag)