上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 66 下一页
摘要: 项目代码结构:1:MainActivity.javapackage com.example.fgtest;import android.app.Activity;import android.os.Bundle;public class MainActivity extends Activity {... 阅读全文
posted @ 2014-10-21 17:29 yshy 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1:NetChangeReceiver.javapublic class NetChangeReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent... 阅读全文
posted @ 2014-10-21 07:58 yshy 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 优化后的好处不言而喻,OtherActivity中所需要的参数都在方法参数中体现,减少了交流询问的成本。(1)MainActivity.javaOtherActivity.openActivity(getActivity(), "yanshiying","25");(2)OtherActivity.... 阅读全文
posted @ 2014-10-18 12:26 yshy 阅读(1450) 评论(0) 推荐(0) 编辑
摘要: public class ActivityManager { public static List activityList = new ArrayList(); public static void addActivity(Activity activity){ ... 阅读全文
posted @ 2014-10-18 10:06 yshy 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 由于中文的Windows使用的是GBK编码,而Linux默认使用UTF-8编码的,如果在Windows打包带中文文件的zip包,则这个zip包在Linux下面使用默认的归档管理器打开这个zip包的时候,中文文件名会显示乱码。解决方法,通过命令处理:$unzip -O GBK *.zipUbuntu是... 阅读全文
posted @ 2014-10-14 16:08 yshy 阅读(3378) 评论(0) 推荐(1) 编辑
摘要: 1、如果为空返回0select ifnull(null,0)2、如果为空返回0,否则返回1select if(isnull(col),0,1) as col. 阅读全文
posted @ 2014-10-14 07:53 yshy 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 一、关于scpscp是英文secure copy (remote file copy program)的简称,主要用于在两台主机之间通过网络拷贝文件。scp使用ssh协议进行数据传递,其认证方式和安全性同ssh一致。二、ssh客户端的安装在使用过程中如果出现提示“-bash: scp: comman... 阅读全文
posted @ 2014-09-29 14:49 yshy 阅读(784) 评论(0) 推荐(0) 编辑
摘要: /** * 比较两个日期的大小: * 2 发生异常 * 1 firstDate>secondDate * 0 firstDate==secondDate * -1 firstDatesDate.getTime()){ result... 阅读全文
posted @ 2014-09-28 14:57 yshy 阅读(668) 评论(0) 推荐(0) 编辑
摘要: (1)下载链接http://pinyin.sogou.com/linux/(2)清除fcitx$sudo apt-get purge fcitx*(3)使用deb安装工具gdebi,这个工具能解决所有依赖问题$sudo apt-get install gdebi(4)进行安装以及配置$gdebi s... 阅读全文
posted @ 2014-09-26 07:50 yshy 阅读(418) 评论(0) 推荐(0) 编辑
摘要: HttpClient client = new HttpClient(); GetMethod get = new GetMethod(URL); get.setRequestHeader("Content-Type","application/x-www-fo... 阅读全文
posted @ 2014-09-24 11:14 yshy 阅读(3533) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 66 下一页