基本构造NFC数据接口与写入功能。NFC数据写入验证未测试。
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="cc.winboll.studio.autonfc">
|
||||
|
||||
<!-- 控制近距离通信 -->
|
||||
<uses-permission android:name="android.permission.NFC"/>
|
||||
|
||||
<!-- 拥有完全的网络访问权限 -->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
||||
<uses-feature
|
||||
android:name="android.hardware.nfc"
|
||||
android:required="true"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
@@ -26,12 +36,26 @@
|
||||
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".nfc.NFCInterfaceActivity"
|
||||
android:launchMode="singleTop">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
|
||||
<data android:mimeType="*/*"/>
|
||||
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
<meta-data
|
||||
android:name="android.max_aspect"
|
||||
android:value="4.0"/>
|
||||
|
||||
<activity android:name=".GlobalApplication$CrashActivity"/>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user