I am doing a wrapper and the wrapper needs this @override method:
1. How should I accommodate/amend/modify the above code in wrapper without the wrapper having to extend Activity or AppCompatActivity?
2. Should I declare the wrapper as an @ActivityObject?
If the wrapper extends Activity then it "works" but this is probably not the correct way to do it.
Please help a dummy here.....
Thanks
JS
B4X:
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
BA.Log("intent = " + intent);
BA.Log("in onNewIntent");
if (mNfcAdapter != null && mNfcAdapter.isEnabled()) {
mCardNfcAsyncTask = new CardNfcAsyncTask.Builder(this, intent, mIntentFromCreate)
.build();
}
}
1. How should I accommodate/amend/modify the above code in wrapper without the wrapper having to extend Activity or AppCompatActivity?
2. Should I declare the wrapper as an @ActivityObject?
If the wrapper extends Activity then it "works" but this is probably not the correct way to do it.
Please help a dummy here.....
Thanks
JS