Skip to content

Instantly share code, notes, and snippets.

View pjwelcome's full-sized avatar

Peter-John Welcome pjwelcome

View GitHub Profile
class MainActivity : AppCompatActivity() {
private var mNfcAdapter: NfcAdapter? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
mNfcAdapter = NfcAdapter.getDefaultAdapter(this)
}