Use mime type in NFC as defined in RFC3156

This commit is contained in:
Dominik Schürmann 2013-09-06 14:14:54 +02:00
parent a186686109
commit 4813345460
2 changed files with 4 additions and 3 deletions

View File

@ -394,8 +394,8 @@
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/org.sufficientlysecure.keychain" />
<!-- mime type as defined in http://tools.ietf.org/html/rfc3156, section 7 -->
<data android:mimeType="application/pgp-keys" />
</intent-filter>
</activity>
<activity android:name=".ui.ShareActivity" >

View File

@ -26,7 +26,8 @@ public final class Constants {
public static final String PACKAGE_NAME = "org.sufficientlysecure.keychain";
public static final String NFC_MIME = "application/org.sufficientlysecure.keychain";
// as defined in http://tools.ietf.org/html/rfc3156, section 7
public static final String NFC_MIME = "application/pgp-keys";
public static final String PERMISSION_ACCESS_KEY_DATABASE = PACKAGE_NAME
+ ".permission.ACCESS_KEY_DATABASE";