nfc를 사용하여 Andriod 앱을 작성하여 체크인합니다 태그의 URL이 "http://examples.com"이라고 말하도록합니다 애플리케이션을 열려고합니다. 그 태그를 쳤을 때만.nfc 태그 만 사용하여 안드로이드 앱을 열고 싶습니다
그래서 기본적으로 내 메인fest에서 의도 필터를 편집합니다. 그래서 나는 URL http://developer.andriod.com/index.html
이있는 태그를 눌러 그 때마다 앱은
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="http"
android:host="developer.android.com"
android:pathPrefix="/index.html" />
</intent-filter>
먼저 설명서를 읽으십시오. http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#filtering-intents. 사례에서 사례를 완전히 설명합니다. –
@NFCguy 내 수정 된 질문을 확인해주세요. –
"android.intent.category.DEFAULT"를 사용해야합니다. 액션과 카테고리 모두 정확히 일치해야합니다. –