Fix 4 second latency starting Tag application when recently using home.

The home screen and other system apps call stopAppSwitches() to prevent
malicious applications from starting their activity again when the user exits.
The startActivity() call is delayed by 4 seconds.

We can override this in NFC service because we are a system service, using
resumeAppSwitches(). If a tag comes into the field we really want to show it
immediately. It feels really laggy otherwise.

Change-Id: I5394647f352e3f49f821b5346cd4c9af103137ca
2 files changed
tree: 74d8b066e7d4fd92b7ea45fd1525325e4100945f
  1. jni/
  2. res/
  3. src/
  4. Android.mk
  5. AndroidManifest.xml