如何在Android中获取设备信息 [英] How to get Device Information in Android

查看:83
本文介绍了如何在Android中获取设备信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何检测操作系统或设备类型之类的系统信息

我是android应用程序开发的新手.

I am new to android application development.

我开发了一个小应用程序,并将该应用程序.apk文件安装到我的设备中,效果很好.

I developed one small application,and install that application .apk file in my device,it is working good.

但是我的要求是,当我第一次在设备中安装.apk文件时,我必须检索设备的全部信息,并将这些信息存储在我的数据库中.

But my requirement is When i install .apk file first time in my device,then i have to retrieve the total device information and store that information in my database.

请帮助我前进

推荐答案

您可以使用

You can use the Build Class to get the device information.

例如:

String myDeviceModel = android.os.Build.MODEL;

这篇关于如何在Android中获取设备信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆