2014年7月25日

错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, MyFragment)

摘要: Fragment newfragment =new MyFragment();fragmentTransaction.replace(R.layout.activity_main,newfragment ).commit();提示错误:The method replace(int, Fragment... 阅读全文

posted @ 2014-07-25 10:59 仁者无敌8勇者无惧 阅读(26642) 评论(1) 推荐(2) 编辑

2014年4月18日

Android Your content must have a ListView whose id attribute is 'android.R.id.list'错误的解决办法

摘要: 在Android开发中,ListView有着很重要的地位,使用的场合也非常的多错误提示:Your content must have a ListView whose id attribute is 'android.R.id.list'对于以上错误,其实可能是因为我们要实现对ListView中se... 阅读全文

posted @ 2014-04-18 22:24 仁者无敌8勇者无惧 阅读(251) 评论(0) 推荐(0) 编辑

2014年4月15日

将文件放到Android模拟器的SD卡

摘要: 1、打开DDMS页面2、打开File Explorer页,如果没有,在Window –> Show View –>File Explorer3、一般就在mnt –> sdcard中4、在sdcard中,点击你要将文件放到的目的文件夹,这里如mp3文件夹5、点击文件夹后,在File Explorer页... 阅读全文

posted @ 2014-04-15 10:16 仁者无敌8勇者无惧 阅读(305) 评论(0) 推荐(0) 编辑

2014年4月11日

eclipse连接虚拟机

摘要: 1.启动eclipse2.打开 "Help/Install New Software..."3.打开Add……4.输入Name:Genymobile Location:http://plugins.genymotion.com/eclipse5.下一步下一步……6.finish,虽然会提示pl... 阅读全文

posted @ 2014-04-11 10:19 仁者无敌8勇者无惧 阅读(826) 评论(0) 推荐(0) 编辑

Android 模拟器genymotion安装,eclipse 插件

摘要: genymotion是一款号称速度最快性能最好的android模拟器,它基于Oracle VM VirtualBox。支持GPS、重力感应、光、温度等诸多传感器;支持OpenGL 3D加速;电池电量模拟;能够运行在windows、linux、mac系统下;并提供的有eclipse下的插件,可以支持在... 阅读全文

posted @ 2014-04-11 09:38 仁者无敌8勇者无惧 阅读(40885) 评论(5) 推荐(4) 编辑

2013年12月9日

好久没来了

摘要: 剩下二十来天了!!!什么都不会 阅读全文

posted @ 2013-12-09 12:53 仁者无敌8勇者无惧 阅读(112) 评论(0) 推荐(0) 编辑

2013年1月5日

nyoj 寻找最大数

摘要: 寻找最大数时间限制:1000 ms | 内存限制:65535 KB难度:2描述请在整数 n 中删除m个数字, 使得余下的数字按原次序组成的新数最大,比如当n=92081346718538,m=10时,则新的最大数是9888输入第一行输入一个正整数T,表示有T组测试数据每组测试数据占一行,每行有两个数n,m(n可能是一个很大的整数,但其位数不超过100位,并且保证数据首位非0,m小于整数n的位数)输出每组测试数据的输出占一行,输出剩余的数字按原次序组成的最大新数样例输入292081346718538 101008908 5样例输出988898水。。。。。有点像贪心View Code 1 #in. 阅读全文

posted @ 2013-01-05 15:56 仁者无敌8勇者无惧 阅读(260) 评论(0) 推荐(0) 编辑

2012年12月22日

2012-12-22

摘要: 好久没写代码了……今晚CF做好点,明天信息安全裸考顺利……………… 阅读全文

posted @ 2012-12-22 23:11 仁者无敌8勇者无惧 阅读(102) 评论(0) 推荐(0) 编辑

2012年12月8日

cf 153

摘要: http://codeforces.com/contest/252A.数据小直接暴力。B.当时理解错了。c.二逼了。。。j不应该每次从0开始,否则会超时。比如4 31 2 3 41到4不超过32到4就更不会超。View Code 1 #include<stdio.h> 2 int main() 3 { 4 __int64 n; 5 __int64 d,i,j; 6 __int64 a[100010]; 7 while(~scanf("%I64d%I64d",&n,&d)) 8 { 9 for(i=0;i<n;i++)10 ... 阅读全文

posted @ 2012-12-08 11:04 仁者无敌8勇者无惧 阅读(213) 评论(0) 推荐(0) 编辑

2012年11月26日

CF 151 C. Beauty Pageant

摘要: C. Beauty Pageanttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGeneral Payne has a battalion of n soldiers. The soldiers' beauty contest is coming up, it will last for k days. Payne decided that his battalion will participate in the pageant 阅读全文

posted @ 2012-11-26 11:45 仁者无敌8勇者无惧 阅读(379) 评论(4) 推荐(0) 编辑

导航