我试过这个教程:http://about-android.blogspot.com/2010/02/create-custom-dialog.html 在尝试& amp;时,没有“hello”调试消息。用工具捕获块接口。你认为我可以使用工具&接口??
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();
}
}
}
答案 0 :(得分:0)
Log.d()
后没有分号