Hello,
Thank you for your comment. I tried also using Exception e with try
statement and finally also so that the code looks like this:
catch (IOException e) {
// TODO Auto-generated catch block
} catch (FormatException e) {
// TODO Auto-generated catch block
} catch (Exception e) {
Log.d("MyApp", e.toString())}
finally {
}
The program with the code mentioned above can't stop at any catch when
the TAG is not available. What I'm searching for is a way of
determining that the TAG is not available and then do some code. what
I"m searching for is code implementation inside catch statement in the
case of TAG is not available.
On Aug 1, 1:21 pm, Michael Roland <[email protected]> wrote:
> Hallo,
>
> first of all, there is no code in your catch statements. Second, for
> instance the writeNdefMessage() would throw a TagLostException if the
> tag is no longer available during write. None of your catch statements
> handles this type of exception. You could use a try-catch block like
> this to figure out what type of exception you get:
>
> try {
> ...
> } catch (Exception e) {
> Log.d("MyApp", e.toString());
> }
>
> br
> Michael
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en