找回密码
 立即注册
TheAndroidLogprintln | android开发 2022-10-29 58 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
java一般的打印方法为System.out.println();J2ME也是,在ide的控制台就可以看到作用。可是android平台,System.out.println();你是看不到打印的消息的。由于android提供的打印方法为,Log.v,该对象需求导入importandroid.util.Log;,然后就可以使用了。观察作用的地方,也不在ide的console面板中,而在android提供的log面板中,可以选择ide右上角的debug模式,检测log面板。
Android中信息的输出——Log.v的使用.doc

(The general printing method of Java is System. out. println(); J2ME is the same. You can see the effect on the ide console. But the Android platform, System. out. println(); You can't see the printed message. Since the printing method provided by Android is Log. v, the object needs to be imported into importandroid.util Log;, Then you can use it. The function of observation is not in the console panel of the ide, but in the log panel provided by Android, you can select the debug mode in the upper right corner of the ide to detect the log panel.
Information output in Android - Log.v usage. doc)

[下载]17451953871.rar




上一篇:Android手机连接电脑详细图文教程
下一篇:Android更换RatingBar图片