try & catch blocks with implement & interface
I tr开发者_开发技巧ied this tutorial : http://about-android.blogspot.com/2010/02/create-custom-dialog.html There is no "hello" debug message when doing try & catch blocks with implement & interface. Do you think that i can do the try catch block with implement & interface??
private class OnReadyListener implements MyCustomDialog.ReadyListener
{
@Override
public void ready(String name)
{
try
{
String sentence = "hello";
Log.d(TAG, "OnReadyListener ready" + " " + sentence );
}
catch (UnknownHostException ex)
{
ex.printStackTrace();
}
catch (IOException ex)
{
ex.printStackTrace();
}
}
}
There is no semi-colon after Log.d()
精彩评论