上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 66 下一页
摘要: 首先,我们需要一个keystore,当然已经有了的话就不用这一步了:cmd下:进入到jdk的bin目录,这样的话,android.keystore文件就会生成在这个目录下,签名的时候我们需要这个文件C:\Program Files\Java\jdk1.6.0_10\bin>keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore android.keystore输入keystore密码:再次输入新密码:您的名字与姓氏是什么? [Unknown]: qiaoling您的组织单位名称是什么? [ 阅读全文
posted @ 2013-08-02 14:00 94cool 阅读(314) 评论(0) 推荐(0)
摘要: from:http://byandby.iteye.com/blog/817214 显然要定义对话框进度条就要用ProgressDialog,首先我们需要创建ProgressDialog对象,当然这里同样使用了线程来控制进度条显示,另外可以使用以下方法来设置ProgressDialog。 setProgressStyle:设置进度条风格,风格为圆形,旋转的。 setTitlt:设置ProgressDialog 标题 setMessage:设置ProgressDialog提示信息; setIcon:设置ProgressDialog标题图标; setIndeterminate:设置Progress 阅读全文
posted @ 2013-08-02 09:26 94cool 阅读(6673) 评论(1) 推荐(0)
摘要: 1 public class MyHttpUrlCon { 2 3 public static String settionId = ""; 4 5 public static final int TIMEOUT = 30;// 6 7 public ReturnData doGet(String urlString) { 8 HttpURLConnection conn = null; 9 try { 10 11 URL url = new URL(urlString); 12 ... 阅读全文
posted @ 2013-08-02 08:48 94cool 阅读(469) 评论(0) 推荐(0)
摘要: 解决方法:http获取的字符串minutes去空字符串处理minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n", "").trim(),Integer.parseInt(minutes.replaceAll("\\D+","").replaceAll("\r", "").replaceAll("\n" 阅读全文
posted @ 2013-08-02 08:28 94cool 阅读(18442) 评论(0) 推荐(0)
摘要: 首先,是要下载android SDK,在http://developer.android.com/sdk/index.html这个页面选择操作系统,这有windows,mac OS,LINUX三个版本的SDK供下载,现在最新版本是10月更新的android-sdk_r07-windows.zip,嗯,这个网站不知道为什么让天朝GWF给墙了,最先我是找了个翻(河蟹啊)墙软件进去下载的,后面才知道,原来还有一个网站,不知道是不是Google android在国内的网站,反正上面内容跟http://developer.android.com/sdk/index.html完全一样的啦。网址是:http 阅读全文
posted @ 2013-07-29 12:05 94cool 阅读(14446) 评论(0) 推荐(0)
摘要: 联系:Collection与Map属于同等关系,但Map依赖与Collection。Coolection接口的子类包含List(ArrayList、LinkedList等)、Set(HashSet、TreeSet等)区别:List及实现类是可变大小的列表,适用于按数组索引访问元素。Set接口继承了Collection接口,但是它不允许集合中存在重复项。Map中以键-值对形式存储数据。----------------------------------------------------------------------------------------------------------- 阅读全文
posted @ 2013-07-26 14:19 94cool 阅读(3250) 评论(0) 推荐(1)
摘要: from:http://blog.csdn.net/ilibaba/article/details/3741786查手册后才知道,介绍的信息少得可怜呐,没有介绍生成m-n范围的随机数...,就只是给你一个Math.random()了事.不过经过俺的小小努力之后,终于让俺摸着门道喽,问题也就理所当然滴解决掉.然后就写了个公式,这样应该可以消失掉这个用法了,公式:1.从1开始至任意值linenumparseInt(Math.random()*上限+1);2.从任意值开始至任意值linenumparseInt(Math.random()*(上限-下限+1)+下限);上面的公式使用了parseInt( 阅读全文
posted @ 2013-07-25 17:07 94cool 阅读(215) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.ComponentModel;namespace NetService{ public static class GenericParser { public static bool TryParse(this string input, out T output) { bool result = ... 阅读全文
posted @ 2013-07-24 14:16 94cool 阅读(293) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.IO.Compression;using System.Runtime.Serialization.Formatters.Binary;namespace NetMethod{ public class SerializerZip { public static byte[] Serialize(object obj) { ... 阅读全文
posted @ 2013-07-18 16:15 94cool 阅读(212) 评论(0) 推荐(0)
摘要: 使用solidBrush新建画刷,定义画刷的颜色为透明色Brush b = new SolidBrush(Color.FromArgb(50, Color.Green));这里的50是透明度的设置,范围从0-255;0:无颜色 255:不透明 阅读全文
posted @ 2013-07-16 09:55 94cool 阅读(657) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 66 下一页