1.获取Application的宽度:
this.getWindowManager().getDefaultDisplay.getWidth()
2.获取手机型号
android.os.Bulid.MODEL
3.获取版本号
android.os.Build.VERSION.RELEASE
4.获取手机号码
this.getSystemService(TELEPHONY_SERVICE).getLine1Number()
5.Android源码程序文件夹下各文件的获取方式
*获取assets文件夹下的文件
InputStream is = MainActivity.this.getAssets().open("books.xml");
*获取res资源文件夹下的文件
*drawable下面
Drawable drawable=getResource().getDrawable(R.drawable.xxx);
*layout下面