String status=Environment.getExternalStorageState(); if(status.equals(Enviroment.MEDIA_MOUNTED)) { 说明有SD卡插入 }2:让某个Activity透明
OnCreate中不设Layout this.setTheme(R.style.Theme_Transparent); 以下是Theme_Transparent的定义(注意transparent_bg是一副透明的图片)3:在屏幕元素中设置句柄
TextView msgTextView = (TextView)findViewById(R.id.msg); msgTextView.setText(R.string.push_me);