09 2015 档案

摘要:RadioGroup设置orientation="vertical"竖向单列显示RadioGroup设置orientation="horizontal"横向单行显示如何实现多行多列RadioButton呢?step1:重写RadioGroup类package com.hz.w504_sing_com... 阅读全文
posted @ 2015-09-22 15:50 黄忠 阅读(777) 评论(0) 推荐(0)
摘要:客户端 调用 阅读全文
posted @ 2015-09-21 11:29 黄忠 阅读(1749) 评论(0) 推荐(0)
摘要:接收数据不要用readline(),用read()SocketmSocket = new Socket("192.168.1.100", 8888);DataInputStream dinput =new DataInputStream(mSocket.getInputStream())读取服务端发... 阅读全文
posted @ 2015-09-17 11:46 黄忠 阅读(301) 评论(0) 推荐(0)
摘要:注意除了添加Internet权限外,还要添加两行代码StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penalt... 阅读全文
posted @ 2015-09-12 20:11 黄忠 阅读(467) 评论(0) 推荐(0)
摘要:数据库访问完毕后,游标必须也记得关闭import com.huangzhong.love_power_model.UserInfoDto;import java.util.ArrayList;import java.util.List;import android.app.AlertDialog;i... 阅读全文
posted @ 2015-09-12 20:05 黄忠 阅读(175) 评论(0) 推荐(0)
摘要:在drawable-hdpi中添加xml文件Button样式文件ImageView样式文件图片太大程序会异常退出设置android:background属性即可 阅读全文
posted @ 2015-09-12 20:00 黄忠 阅读(312) 评论(0) 推荐(0)
摘要:step1 创建窗体final AlertDialog dialog =new Builder(this).create();step2 获取ViewView viewDialog =View.inflate(this, R.layout.userinfo_dialog_edit, null); ... 阅读全文
posted @ 2015-09-12 19:51 黄忠 阅读(552) 评论(0) 推荐(0)
摘要:注册表实例(开机自启动) 1 private void Form1_Load(object sender, EventArgs e) 2 { 3 //判断此健值是否存在,存在则选中 4 if (IsExistKey(Sy... 阅读全文
posted @ 2015-09-06 15:09 黄忠 阅读(181) 评论(0) 推荐(0)