Created
May 21, 2013 22:51
-
-
Save anonymous/5623908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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