- 博客(3)
- 收藏
- 关注
原创 用Bundle和Intent实现页面间传递集合
//AActivity: List informations = (List) msg.obj; ArrayList list = new ArrayList(); list.add(informations); Bundle bundle = new Bundle(); bundle.putStringArrayList("information
2013-09-23 13:57:37
720
原创 用SharedPreferences实现账号密码的记忆功能和自动登陆功能
//在登陆页面的onCreate方法中 SharedPreferences sharedPreferences = getSharedPreferences("zhmm", Activity.MODE_PRIVATE); username.setText(sharedPreferences.getString("username", null)); password.setTex
2013-09-23 10:17:29
867
原创 在Activity中判断另一个程序是否存在
Intent intent = getIntent(); PackageManager pm = getPackageManager(); List packs = pm.getInstalledPackages(PackageManager.GET_UNINSTALLED_PACKAGES); boolean adress = true; for(int i=
2013-09-23 10:07:28
460
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人