Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的 Xcode 和 iOS 代码:
NSLog(@"EAN-8: %d", finalNumber);
我如何在 Java 上做同样的事情,让它出现在 LogCat 中?
谢谢。
Log.d("MyApplication", String.format("EAN-8: %d", finalNumber));
第一个参数称为标签,如果需要,您可以使用它来过滤 Logcat 输出。有关更多信息/日志严重性,请参阅文档。
I am having a problem displaying data from my DB in a list view. the below is the code from for my display method.
Display
public ArrayList<Object> display(String r