Android菜鸟笔记-获取设备信息

1.获取基带版本信息

private String getBaseBandVersion()
	{
		try { 

			Class cl = Class.forName("android.os.SystemProperties"); 

			Object invoker = cl.newInstance(); 

			Method m = cl.getMethod("get", new Class[] { String.class,String.class }); 

			Object result = m.invoke(invoker, new Object[]{"gsm.version.baseband", "no message"}); 

			return (String)result;

			} catch (Exception e) { 

				return null;
			}
	}


你可能感兴趣的:(Android)