ITeye博客

fonter

fonter · 共 176 篇文章

(转)Android SQLite Shell

SQLite is available on the Android device itself. The executable is in the /system/bin directory of the device. You can see that this directory contains the shell commands like ls, ps, etc., as well as sqlite3, dalvikvm, and dexdump utilities. Code Listing 1. Contents of system/bin # pwd pwd /syste…

2010-07-29 10:12 · android · 评论(0)

Firefox CSS 自动高度

<div style=”overflow:auto;”> <div style=”float:left;”>1111111111</div> <div style=”float:right;”>2222222222</div> </div> Firefox 加上overflow:auto 能自适应高度

2010-07-26 19:43 · J2SE · 评论(0)

Android Firewall(防火墙) AndFire 首发版本发布

It is a android firewal software,It support to message filter,block calls,app firewall,ftp pop3 smtp block and virus firewall.You can block some network application software to help you save flow! - 它是一款Android 防火墙软件,主要支持黑名单信息过滤,阻止来电,应用软件阻止网络,FTP,POP3,SMTP阻止,病毒防火墙等,你可以阻止一些联网的应用软件,帮助你节约网络流量! http://…

2010-07-21 22:01 · android · 评论(0)

Android系统编译(不是教程)

最近三天都在学习如何在ubuntu下编译Android,有同事带着,进步飞快,之前Android系统桌面被我改成底部有应用栏的桌面,把它结合到系统中,感觉效果还真不错。已能把Android从编译到合成,再到把系统放到硬件上,改天从android网站上下下最新的源代码编译编译,就当把全部流程学完! 慢慢熟悉ubuntu,还真无法适应用命令装软件!烦人!感慨这系统就是给专用用户用的,像我这个熟悉XP的人来说,那真要命。还得那个更烦人的sudo。

2010-07-21 15:56 · android · 评论(0)

Android Call Log and SMS Delete 电话记录和短信删除

public class CallContentObserver extends ContentObserver { private final static String strUriInbox = "content://call_log/calls"; private final static Uri uriCall = Uri.parse(strUriInbox); private String phoneNum; private Context context; public CallContentObserver(Context context, String phoneNum, …

2010-07-18 18:17 · android · 评论(0)

Android PhoneStateListener 问题

PhoneStateListener一般用于TelephonyManager的监听 private class MyPhoneStateListener extends PhoneStateListener { public MyPhoneStateListener() { } public void onCallStateChanged(int state, String incomingNumber) { switch (state) { case TelephonyManager.CALL_STATE_IDLE: //progress break; case TelephonyMana…

2010-07-16 13:11 · android · 评论(0)

AndRoid Notification的清空和修改

比如一个电话来时,您想要清空通知栏的通知,可用下面的方法 public enum Notification { CALL }; NotificationManager mgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); mgr.cancel(Notification.CALL.hashCode()); 或者您不想清空,而是更改Notification的图标或文字描述,可用下面的方法 mgr.notify(Notification.CALL.hashCode(),这里是Notif…

2010-07-15 22:27 · android · 评论(1)

Android No chain/target/match by that name 解决

当执行iptables 时,抛出No chain/target/match by that name这个错误,在命令正确无误时提示这个错误,一般是你的系统不支持netfilte/iptables,需重新刷一个新的rom。如现在一个叫droidwall的开源防火墙在一些系统运行时会出现这个错误,就是你的系统不支持。 支持的ROM 如:cm-4.2.15.1 但CM的ROM也有不带iptables的,刷时要看看system/bin里有没有这个文件。要是刷后想知新系统支不支持。可用下面的命令 iptables -t filter -A OUTPUT -o tiwlan+ -m owner --ui…

2010-07-04 23:43 · android · 评论(1)

也玩了一次刷机了

之前买了部Android手机,入手后一直上不了网,回去找卖家。卖家忽来忽去,搞到最后还得再花50元,压压的。说实在的,回想之前的买机和开发经历,再总结现在刷机经验,说实在的国内的android rom 实在不怎么样。BUG不但多,而且还拿出来忽悠,无奈只能刷机,刷机前看了一点点这方面的知识,有点恐惧,怕刷后成了砖头。哎,豁出去了,谁叫国内的rom这么烂。 环境:HTC G2,刷的ROM 为 Cyanogen cm cm-4.2.15.1(说是最稳定的版本) 刷机准备 1、关机 -> 开机键+返回键 -> HTC信息界面 -> 在屏慕中有32A或32B字样 2、到 http://www.kug…

2010-07-04 13:38 · android · 评论(0)

AndTask 2.0 sign 发布

It is an easy-to use task management software,it allows you to switch on or off running programs/apps/services. 它是一款方便用户管理任务的应用软件。 version 1.1 Feature 1) Switch and Stop Tasks/Processes/Apps/Services 2) Shows Memory Info and Apps Info 3) Uninstall Apps version 2.1 Feature 1)Increase the notice, set…

2010-07-04 03:17 · android · 评论(0)

Android Notification 例子

此代码经测试后不会抛出参数IllegalArgumentException异常 private void notification() { try { mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Intent intent = new Intent(this, TaskManager.class); CharSequence appName = getString(R.string.app_name); Notification notification = new …

2010-07-03 09:20 · android · 评论(0)

Android iptables 今天小结

今天折腾了一天,试了好多iptables命令,发现和正常的Linux的iptables的命令好多不一样,在Android下的一些命令并不工作。这可能刚接触这一块知识,或者命令可能需要先设置后才设置别的,这只是我的假设,继续折腾吧~ 总结如下: 1、禁止所有通讯 -- 正常工作 iptables -P INPUT ACCEPT iptables -P OUTPUT DROP iptables -P FORWARD DROP 2、允许所有通讯 -- 正常工作 iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWAR…

2010-07-02 16:49 · android · 评论(1)

(转)iptables常用命令

常用命令列表: 命令 -A, --append 范例 iptables -A INPUT ... 说明 新增规则到某个规则炼中,该规则将会成为规则炼中的最后一条规则。 命令 -D, --delete 范例 iptables -D INPUT --dport 80 -j DROP iptables -D INPUT 1 说明 从某个规则炼中删除一条规则,可以输入完整规则,或直接指定规则编号加以删除。 命令 -R, --replace 范例 iptables -R INPUT 1 -s 192.168.0.1 -j DROP 说明 取代现行规则,规则被取代后并不会改变顺序。 命令 -I, --i…

2010-07-01 13:21 · android · 评论(0)

(转)iptables 基本命令使用举例

一、链的基本操作 1、清除所有的规则。 1)清除预设表filter中所有规则链中的规则。 # iptables -F 2)清除预设表filter中使用者自定链中的规则。 #iptables -X #iptables -Z 2、设置链的默认策略。一般有两种方法。 1)首先允许所有的包,然后再禁止有危险的包通过放火墙。 #iptables -P INPUT ACCEPT #iptables -P OUTPUT ACCEPT #iptables -P FORWARD ACCEPT 2)首先禁止所有的包,然后根据需要的服务允许特定的包通过防火墙。 #iptables -P INPUT DROP #i…

2010-07-01 13:05 · android · 评论(0)

(转)何使用iptables构建防火墙

对于Internet上的系 统,不管是什么情况都要明确一点:网络是不安全的。因此,虽然创建一个防火墙并不能保证系统100%安全,但却是绝对必要的。Linux提供了一个非常优 秀的防火墙工具—netfilter/iptables。它完全免费、功能强大、使用灵活、可以对流入和流出的信息进行细化控制,且可以在一台低配置机器 上很好地运行。本文将简单介绍使用netfilter/iptables实现防火墙架设和Internet连接共享等应用。 netfilter/iptabels应用程序,被认为是Linux中实现包过滤 功能的第四代应用程序。netfilter/iptables包含在2.4以后的内核中…

2010-07-01 12:03 · android · 评论(0)