开发者

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()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜