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.
我可以通过哪些方式调用 android 应用程序来检测我在 Java 中使用的手机(如特定型号)?
如果您想显示“最终产品的最终用户可见名称”(文档),这应该可以工作:
String mDeviceModel = android.os.Build.MODEL;
对于工业名称:
String mDeviceName = android.os.Build.DEVICE;
获取制造商:
String mDeviceManufacturer = android.os.Build.MANUFACTURER;