title: Starting a specific activity through NFC tag
body: <p>Is it possible to launch a specific activity in an app using NFC tag?</p>
  
  <p>I want to start an activity called MainMap which is not the main activity.
  I've tried using a tag writer for writing mime record and still failing.</p>
  
  <p>Here's the manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.km.parkit"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-permission android:name="android.permission.NFC" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
  &lt;uses-feature
      android:name="android.hardware.nfc"
      android:required="true" /&gt;
  
  &lt;uses-sdk
      android:minSdkVersion="14"
      android:targetSdkVersion="21" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name" &gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;/activity&gt;
  
      &lt;activity
          android:name=".MainMap"
          android:label="@string/app_name" &gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.action.NDEF_DISCOVERED" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;data android:mimeType="application/com.km.ParkIT" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;/activity&gt;
  
      &lt;activity
          android:name="com.km.parkit.parka"
          android:label="@string/app_name" /&gt;
  
      &lt;activity
          android:name="com.km.parkit.parkb"
          android:label="@string/app_name" /&gt;
  
      &lt;activity
          android:name="com.km.parkit.parkc"
          android:label="@string/app_name" /&gt;
  
      &lt;activity
          android:name="com.km.parkit.parkd"
          android:label="@string/app_name" /&gt;
  
  
      &lt;!-- Google Maps API Key --&gt;
  &lt;meta-data
      android:name="com.google.android.maps.v2.API_KEY"
      android:value="AIzaSyBf-0hUDrDTK-NOveZrnT8wec5TTTLqjAw" /&gt;
  
   &lt;meta-data 
       android:name="com.google.android.gms.version"
       android:value="@integer/google_play_services_version" /&gt;
  
  &lt;/application&gt;
  
  
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I wrote the MIME type "application/com.km.parkit" into the NFC tag using <a href="https://github.com/balloob/Android-NFC-Tag-Writer" rel="nofollow">https://github.com/balloob/Android-NFC-Tag-Writer</a></p>
  
  <p>What am I missing here?</p>
  
  <p>Oh my problem is that the app doesn't get started when I tap it to the NFC tag, when I tap the tag, it shows the usual popup box showing the programs which I can use to access the NFC tag or read the datas, namely NFC Tag Info and New Tag Collected.</p>