summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2010-12-18 16:39:37 -0600
committerJeff Hamilton <jham@android.com>2010-12-22 11:31:21 -0600
commit3ce86481cbde92e2cb6fe3a46cbedd8b2a5c4b48 (patch)
treec6177f3c9ad17ae5fbeeef9c77b2f5fc0e5fe457 /core/java
parente0bd2688ebc68402fb848efb5d307dba19c6a30c (diff)
downloadframeworks_base-3ce86481cbde92e2cb6fe3a46cbedd8b2a5c4b48.zip
frameworks_base-3ce86481cbde92e2cb6fe3a46cbedd8b2a5c4b48.tar.gz
frameworks_base-3ce86481cbde92e2cb6fe3a46cbedd8b2a5c4b48.tar.bz2
Remove canBeFormatted().
It's not easy to determine if this is possible, so instead apps should attempt a format and handle errors in the format request. Change-Id: I078a208b849e71ef3fb6b5970a9111ece4a2d201
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/nfc/technology/Ndef.java1
-rw-r--r--core/java/android/nfc/technology/NdefFormatable.java10
2 files changed, 1 insertions, 10 deletions
diff --git a/core/java/android/nfc/technology/Ndef.java b/core/java/android/nfc/technology/Ndef.java
index cd12249..53db0c5 100644
--- a/core/java/android/nfc/technology/Ndef.java
+++ b/core/java/android/nfc/technology/Ndef.java
@@ -140,6 +140,7 @@ public final class Ndef extends BasicTagTechnology {
return null;
}
}
+
/**
* Overwrite the primary NDEF message
* @throws IOException
diff --git a/core/java/android/nfc/technology/NdefFormatable.java b/core/java/android/nfc/technology/NdefFormatable.java
index 899b95f..222c558 100644
--- a/core/java/android/nfc/technology/NdefFormatable.java
+++ b/core/java/android/nfc/technology/NdefFormatable.java
@@ -45,16 +45,6 @@ public final class NdefFormatable extends BasicTagTechnology {
}
/**
- * Returns whether a tag can be formatted with {@link
- * NdefFormatable#format(NdefMessage)}
- */
- public boolean canBeFormatted() throws IOException {
- checkConnected();
-
- throw new UnsupportedOperationException();
- }
-
- /**
* Formats a tag as NDEF, if possible. You may supply a first
* NdefMessage to be written on the tag.
*/