- 博客(7)
- 收藏
- 关注
原创 android 检查网络连接是否正常
/* 测试手机是否具有联机Google API的联机能力 */ if(checkInternetConnection ("http://code.google.com/intl/zh-TW/apis/chart/","utf-8") ) { bI
2011-07-26 09:49:19 2782
原创 android 监听应用程序异常,输出异常日志log
1--在manifest添加:<application android:icon="@drawable/icon" android:label="@string/login_title" android:theme="@style/skin" android:name="
2011-07-15 14:35:14 2964
原创 android listView 更改simpleAdapter中布局layout中textView颜色
首先该activity是继承listactivity,因为每次返回时都会把之前的颜色变回默认的颜色,所以干脆每次都把list的每一个item的((TextView)ll.getChildAt(1)).getText().equals("失败")都设置为红色,“成功”一样。for(
2011-07-11 14:45:54 2778
原创 android 获得安装apk包的版本信息 和 版本升级 代码
// 获得 下载后的 apk 版本信息1.public class test4 extends Activity { 2. 3. @Override 4. public void onCreate(Bundle savedInstanc
2011-07-08 10:15:14 2548 3
原创 http post xml
public InputStream postXML(String url, final String xml) { HttpPost post = new HttpPost(url); InputStream inStream = null; ContentProdu
2011-07-07 20:18:45 525
原创 android ip 格式
android中判断ip格式包括判断每位都在0~255之间// \d 为[0-9],{1,2}从中取任意数组成1位或2位的数字,// 则:\d{1,2} 代表0~99,0\d{1,2} 代表00~099,显然00\d 代表000~009// 1\d\d 代表10
2011-07-07 19:01:33 775
原创 android ListView 显示 查询结果
// ListView 显示 查询结果 List> numbers = new ArrayList>(); //callLog query Cursor cc = getContentResolver().query(Calls.CONTENT_URI
2011-07-07 16:37:05 1905
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人