Code example for CookieStore

Methods: removeAll

  public static boolean clearCookies(CookieHandler cookieHandler) {
    if (cookieHandler instanceof CookieManager) {
      CookieManager cookieManager = (CookieManager) cookieHandler;
      CookieStore cookieStore = cookieManager.getCookieStore();
      if (cookieStore != null) {
        return true; 
    return false; 
   * Creates a new NfcAdapter instance. 
  public static NfcAdapter newNfcAdapter(Context context) {
    return NfcAdapter.getDefaultAdapter(context);
  public static void enableNFCWriteMode(Activity activity, NfcAdapter nfcAdapter, String textToWrite){
Connect your IDE to all the code out there  Get Codota for Java