After lauching the app by ARR, I read the intent and the intent has only ACTION.MAIN.
I follow the answer below but It doesn't work.
- nfc-tag-is-null-when-more-than-1-ndefrecord
- application-launched-by-action-main-from-aar-instead-of-ndef-discovered
- android-nfc-start-app-using-aar-and-read-text
I write the mime-type data at first position in NFC tag and write the ARR-packagename at last position in NFC tag.
I also insert the intent-filter at manifest file
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<data android:mimeType="application/com.myorg.myapp" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>