我想知道的最重要的事情是设备类型,操作系统版本,如果它有硬件键盘,也可能是屏幕分辨率。但是如果您知道其他有用的调试信息,请添加它们:)
The most important things I want to know are the device type, the OS version, if it has a hardware keyboard and maybe the screen resolution. but if you know other useful debug information please add them :)
我发现这是为了操作系统版本:
I found this for the OS version:
string += "OS Version: " + System.getProperty("os.version");如何获取其他属性?
推荐答案编辑:要获得有用属性的完整概述,我将它们全部结合在我的ErrorHandler活动中(开始在第56行读取): github/simon-heinen/SimpleUi/blob/ master / SimpleUI / srcAndroid / simpleui / util / DeviceInformation.java#L56
edit: to get a complete overview of useful attributes, I combined them all together in my ErrorHandler activity (start to read at line 56): github/simon-heinen/SimpleUi/blob/master/SimpleUI/srcAndroid/simpleui/util/DeviceInformation.java#L56
Windows和键盘的存在是个好主意,我添加了一些更多的调试信息目的:
Windowsize and keyboard presence were a good idea, i added some more infos for debug purpose:
String s="Debug-infos:"; s += "\n OS Version: " + System.getProperty("os.version") + "(" + android.os.Build.VERSION.INCREMENTAL + ")"; s += "\n OS API Level: " + android.os.Build.VERSION.SDK_INT; s += "\n Device: " + android.os.Build.DEVICE; s += "\n Model (and Product): " + android.os.Build.MODEL + " ("+ android.os.Build.PRODUCT + ")";更多推荐
如何检测系统信息,如os或设备类型
发布评论