- 博客(1)
- 资源 (13)
- 收藏
- 关注
转载 apt-get install失败后强制跳过的方法,修改/var/lib/dpkg/info下的安装前后shell脚本
使用apt-get出现问题,错误信息大概如下The package <package-name> needs to be reinstalled, but I can't find an archive for it.用 apt-get install -f 无法修复.考虑一下报错信息,应该是apt对之前失败的某次安装A念念不忘,并且在安装其他东西之前会重新安装这个程序A.(这个和正常...
2018-02-24 11:18:33 5998
android自动短信发送源码
用来学习短信模块的绝佳代码!
public class ListAdapter extends BaseAdapter {
private LayoutInflater mInflater;
private List<Map<String, Object>> mData;
public static Map<Integer, Boolean> isSelected;
SMSINFODao smsinfodao;
public ListAdapter(Context context) {
mInflater = LayoutInflater.from(context);
init(context);
}
//初始化
private void init(Context context) {
mData=new ArrayList<Map<String, Object>>();
smsinfodao = new SMSINFODao(context);
Cursor cursor = smsinfodao.select();
while (cursor.moveToNext()) {
Map<String, Object> map = new HashMap<String, Object>();
map.put("img", android.R.drawable.ic_dialog_email);
map.put("pn", cursor.getString(0));
map.put("title", cursor.getString(1));
map.put("body", cursor.getString(2));
mData.add(map);
}
2013-04-26
独立的键盘钩子,用来hook键盘的一个小程序,很值得看看
这个程序是用来hook键盘的,而且是一个全局hook,但是程序并没有用全局的,所以是个不错的程序,这个程序是在console台下运行的,你也可以改写该代码
2009-12-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人