/* (non-Javadoc) * @see org.apache.commons.http.AbstractHttpEntity.#getContentType() */ @Override public Header getContentType() { StringBuffer buffer = new StringBuffer(MULTIPART_FORM_CONTENT_TYPE); buffer.append("; boundary="); buffer.append(EncodingUtils.getAsciiString(getMultipartBoundary())); return new BasicHeader(HTTP.CONTENT_TYPE, buffer.toString()); }
private void getReaderSn(boolean bState) { MtiCmd mMtiCmd; if (bState) { byte[] bSN = new byte[16]; for (int i = 0; i < 16; i++) { mMtiCmd = new CMD_FwAccess.RFID_MacReadOemData(mUsbCommunication); CMD_FwAccess.RFID_MacReadOemData finalCmd = (CMD_FwAccess.RFID_MacReadOemData) mMtiCmd; if (finalCmd.setCmd(i + 0x50)) bSN[i] = finalCmd.getData(); } mSharedpref .edit() .putString("about_reader_sn_sum", EncodingUtils.getAsciiString(bSN)) .commit(); } else mSharedpref.edit().putString("about_reader_sn_sum", "n/a").commit(); showFragment(Fragments.About, 0, null); }