2011年4月1日
摘要: 啥都不说了,先上图!代码很简单,如下:public class screenOrientation extends Activity{ private TextView mTextView01; private Button mButton01; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); 阅读全文
posted @ 2011-04-01 13:37 可乐boyupeng 阅读(794) 评论(0) 推荐(0) 编辑
摘要: public class onKeyDownActivity extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub switch (keyCode) { /* 阅读全文
posted @ 2011-04-01 13:24 可乐boyupeng 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 主界面就是显示两个button,分别进入File与Cache的目录:程序的架构为:来看下主程序的代码:public class FileCacheActivity extends Activity implements OnClickListener{ private Button myButton1; private Button myButton2; private File cacheDir; private File fileDir; /** Called when the activity is first created. */ @Override public void onCr 阅读全文
posted @ 2011-04-01 11:58 可乐boyupeng 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: 先来看下程序运行的图片:程序的框架如下:代码部分,第一步,主程序代码,同样把注释写到了程序当中:/** * 这个应用是取得sim卡信息的扩展,只是多取得了一些电信网络与手机的相关信息,其他基本相同 */public class GetSIMinfoExpand extends Activity{ private TelephonyManager telMgr; private List<String> item = new ArrayList<String>(); private List<String> value = new ArrayList<S 阅读全文
posted @ 2011-04-01 10:11 可乐boyupeng 阅读(252) 评论(0) 推荐(0) 编辑