From 3ce86481cbde92e2cb6fe3a46cbedd8b2a5c4b48 Mon Sep 17 00:00:00 2001 From: Jeff Hamilton Date: Sat, 18 Dec 2010 16:39:37 -0600 Subject: 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 --- core/java/android/nfc/technology/Ndef.java | 1 + core/java/android/nfc/technology/NdefFormatable.java | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'core/java') diff --git a/core/java/android/nfc/technology/Ndef.java b/core/java/android/nfc/technology/Ndef.java index cd1224912aba..53db0c52bc2d 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 899b95f1f86b..222c5584ca76 100644 --- a/core/java/android/nfc/technology/NdefFormatable.java +++ b/core/java/android/nfc/technology/NdefFormatable.java @@ -44,16 +44,6 @@ public final class NdefFormatable extends BasicTagTechnology { super(adapter, tag, tech); } - /** - * 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. -- cgit v1.2.3