OSDN Git Service

DO NOT MERGE
authorNick Pelly <npelly@google.com>
Tue, 1 Feb 2011 16:25:46 +0000 (08:25 -0800)
committerNick Pelly <npelly@google.com>
Tue, 1 Feb 2011 19:16:06 +0000 (11:16 -0800)
Cherry-pick from GB to HC.

Update sample app for final GB MR API changes.

Change-Id: Iab3b879d1a53b70cbffd51011c77699325e21dad

samples/ApiDemos/src/com/example/android/apis/nfc/TechFilter.java

index 4042a81..10784c2 100644 (file)
@@ -37,7 +37,7 @@ public class TechFilter extends Activity {
 
         Intent intent = getIntent();
         String action = intent.getAction();
-        if (NfcAdapter.ACTION_TECHNOLOGY_DISCOVERED.equals(action)) {
+        if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)) {
             mText.setText("Discovered tag " + ++mCount + " with intent: " + intent);
         } else {
             mText.setText("Scan a tag");