let iitcm trigger on nfc intel-url intents
This commit is contained in:
parent
bb31fbd9f8
commit
a8c2bb21ab
@ -47,6 +47,7 @@
|
||||
<!-- Handles the implicit intent to VIEW the www.ingress.com/intel URI -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW"/>
|
||||
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
<category android:name="android.intent.category.BROWSABLE"/>
|
||||
|
@ -196,7 +196,7 @@ public class IITC_Mobile extends Activity
|
||||
private void handleIntent(final Intent intent, final boolean onCreate) {
|
||||
// load new iitc web view with ingress intel page
|
||||
final String action = intent.getAction();
|
||||
if (Intent.ACTION_VIEW.equals(action)) {
|
||||
if (Intent.ACTION_VIEW.equals(action) || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {
|
||||
final Uri uri = intent.getData();
|
||||
Log.d("intent received url: " + uri.toString());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user