Skip to content

Instantly share code, notes, and snippets.

Created May 21, 2013 22:51
Show Gist options
  • Save anonymous/5623908 to your computer and use it in GitHub Desktop.
Save anonymous/5623908 to your computer and use it in GitHub Desktop.
private void createTag(final Intent intent) {
final Thread thread = new Thread(this);
mTagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
if (mTagFromIntent != null) {
mClassic = MifareClassic.get(mTagFromIntent);
if (mClassic != null) {
/* Start the thread to read the DESFire */
thread.start();
}
}
}
/** Called on thread.start() */
@Override
public void run() {
writePoster();
/* Open dialog from handleMessage */
handler.sendEmptyMessage(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment