随笔分类 - 代码块
摘要:Activity的生命周期:Fragment的生命周期:
阅读全文
摘要:public static boolean isServiceExisted(Context context, String className) { ActivityManager activityManager = (ActivityManager) context ...
阅读全文
摘要:1.从google搜索内容 Intentintent=newIntent(); intent.setAction(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY,"searchString") st...
阅读全文
摘要:/** * 菜单、返回键响应 */ @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if(keyCode == Key...
阅读全文
摘要:在该listview的点击事件中加入一下代码即可listView.setSelectionFromTop(position, 0);
阅读全文
摘要:1 /** 2 * 解压缩文件到指定的目录. 3 * 4 * @param unZipfileName 5 * 需要解压缩的文件(带路径) 6 * @param mDestPath 7 * 解...
阅读全文