1:查看是否有存储卡插入 2:让某个Activity透明
OnCreate中不设Layout
this.setTheme(R.style.Theme_Transparent);
以下是Theme_Transparent的定义(注意transparent_bg是一副透明的图片)
3:在屏幕元素中设置句柄 使用Activity.findViewById来取得屏幕上的元素的句柄. 使用该句柄您可以设置或获取任何该对象外露的值. TextView msgTextView = (TextView)findViewById(R.id.msg); msgTextView.setText(R.string.push_me);
4:发送短信 5:发送彩信
7:发送Mail
8:注册一个BroadcastReceiver
9:定义ContentObserver,监听某个数据表
10:获得 手机UA
11:清空手机上Cookie
CookieSyncManager.createInstance(getApplicationContext()); CookieManager.getInstance().removeAllCookie();
12:建立GPRS连接
13:PreferenceActivity 用法
14:通过HttpClient从指定server获取数据
15:显示toast
Toast.makeText(this._getApplicationContext(), R.string._item, Toast.LENGTH_SHORT).show(); |