I was able to send a file using NFC, based on tutorials on the Android developer site. However I'm unable to handle the receiver part.
I follow http://developer.android.com/training/beam-files/receive-files.html for the receiving side and I get the notification that the Beam file transfer was successful on the receiver. When the user clicks this notification, I expect the that my app should be launched.
My receiving activity has the following intent filters:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
<data android:scheme="file" />
</intent-filter>
But my receiving activity never gets called even the file transfer was finished. How can I receive the file in my app?