代码改变世界

阅读排行榜

intent几种传值数组、对象、集合(Array,Object,List)

2012-03-29 13:23 by omgee, 11500 阅读, 收藏,
摘要: 1.Arrayprivate ArrayList<String> checkList=new ArrayList<String>(); Intent intent=new Intent(mytext.this,show.class); intent.putStringArrayListExtra("list", checkList); startActivity(intent); 调用 Intent intent=this.getIntent(); ArrayList<String> list=intent.getStringArrayL 阅读全文

android五大布局居中对齐方式

2012-05-24 16:07 by omgee, 11276 阅读, 收藏,
摘要: 1.LinearLayout(线性布局)如果是要把imagebutton之类的控件居中对齐的话,要用android:layout_gravity 代码如下: <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_gravity="center_horizontal" ... 阅读全文

亚马逊服务器搭建

2013-08-23 11:00 by omgee, 5120 阅读, 收藏,
摘要: 1.亚马逊帐户登录注册(因为密码安全机制这边密码必须要么字母大小写要么特殊字符,否则不能通过)https://console.aws.amazon.com/console/home2.登录账户后进入Amazon Web Services亚马逊服务主页,我开的是EC2云的弹性计算的服务(亞馬遜彈性雲端運算(英语:Amazon Elastic Compute Cloud,简称Amazon EC2) ),此外还可以看到s3、iam和rds等,s3相当与一个云端硬盘,服务存储不够时,可以开;rds是数据库;iam是做服务器备份镜像的。这些除了iam这次都没有用到,亚马逊有个为期1年的免费服务,这次的任 阅读全文

eclipse配置j2ee项目

2013-09-02 14:56 by omgee, 3976 阅读, 收藏,
摘要: 1.下载jdk (1.5,1.6) 安装从sun的官方网站下载,我下的是jdk-1_5_0_19-nb-6_5_1-windows-ml.exe,集成netbean的版本,下载后一路默认安装。配置环境变量java_home=jdk路径path=;jdk路径\binclasspath=jdk路径\lib\dt.jar;jdk路径\lib\tools.jar.; (注意点号)test:cmd--java -version 或是 javac出现java jdk版本java version:“1.7.0_05”2.下载eclipse_sdk (3.5,3.6.3.7)配置tomcathttp://bl 阅读全文

jquery ajax 调用webservice以及跨域问题

2012-12-04 13:46 by omgee, 3844 阅读, 收藏,
摘要: 先在服务器端配置webconfig,因为默认情况下是不支持post,get访问在system.web 中间 <webServices > <protocols > <add name="HttpSoap"/> <add name="HttpPost"/> <add name="HttpGet"/> <add name="Documentation"/> </protocols> </webServices> <ht 阅读全文
1 2 3 4 5 ··· 12 下一页