summaryrefslogtreecommitdiffstats
path: root/CleanSpec.mk
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-08-22 22:27:11 -0700
committerNick Pelly <npelly@google.com>2011-08-26 17:28:45 -0700
commitc84c89a6cacaf16c1ba41f57cc1aecdb150e85f9 (patch)
treef3521ac470b3f5785500797fe12af193ab320ced /CleanSpec.mk
parent359ef7985316397564a6a999d77f6cc1edab7373 (diff)
downloadframeworks_base-c84c89a6cacaf16c1ba41f57cc1aecdb150e85f9.zip
frameworks_base-c84c89a6cacaf16c1ba41f57cc1aecdb150e85f9.tar.gz
frameworks_base-c84c89a6cacaf16c1ba41f57cc1aecdb150e85f9.tar.bz2
Improve NDEF push API
Introduce setNdefPushMessage() setNdefPushMessageCallback() setNdefPushCompleteCallback() Deprecate public API enableForegroundNdefPush() disableForegroundNdefPush() Hide & Deprecate staged (public but never released) API enableForegroundNdefPushCallback() The new API's do not require the application to explicitly call enable()/disable() in onPause()/onResume(), we use a Fragment behind the scenes to manager this automatically. NDEF Push can be disabled by using a null parameter, so each enable()/disable() pair is collapsed to a single set() call. Application code should now look something like: public void onCreate() { NfcAdapter adapter = NfcAdapter.getDefaultAdapter(this); if (adapter != null) { // check that NFC is available on this device adapter.setNdefPushMessage(myNdefMessage, this); } } And that's it - no need to explicitly hook into onPause() and onResume() events. Also - introduce a generic NfcEvent class that is provided as a parameter on all NFC callbacks. Right now it just provides the NfcAdapter, but using the wrapper classes allows us to add more fields later without changing the callback signature. (i'm thinking Bluetooth). Change-Id: I371dcb026b535b8199225c1262eca64ce644458a
Diffstat (limited to 'CleanSpec.mk')
-rw-r--r--CleanSpec.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/CleanSpec.mk b/CleanSpec.mk
index 0dba18b..e6c4183 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -107,6 +107,7 @@ $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/R/com/android/systemui/R.
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/media/java/android/media/IAudioService.P)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/media/java/android/media/IAudioService.P)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/media/audio/)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/nfc/)
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************