摘要: An activity can exist in essentially three states: ResumedThe activity is in the foreground of the screen and has user focus. (This state is also some 阅读全文
posted @ 2013-11-21 03:55 Zhentiw 阅读(197) 评论(0) 推荐(0)
摘要: 1. Create a new xml in "layout" folder "splah.xml" <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/ 阅读全文
posted @ 2013-11-20 05:54 Zhentiw 阅读(231) 评论(0) 推荐(0)
摘要: 1. In the class, right click 2. "Scource" 3. "Override / Implement Menthods" 4. Find the methods you want. 阅读全文
posted @ 2013-11-20 05:37 Zhentiw 阅读(154) 评论(0) 推荐(0)
摘要: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:la 阅读全文
posted @ 2013-11-20 05:08 Zhentiw 阅读(159) 评论(0) 推荐(0)
摘要: android:textSize="45px" ==> android:textSize="45dp" 因为Android Phone的手机分辨率各不相同,用px的话,在高分辨率的机子上字体就会变的很小,所以用px。 阅读全文
posted @ 2013-11-20 04:30 Zhentiw 阅读(244) 评论(0) 推荐(0)
摘要: 1. "Windows" ==> "Android Virtual Device Manager" ==> Select one emulator ==> "Start" ==> Change the scrren size to "6" 阅读全文
posted @ 2013-11-20 04:17 Zhentiw 阅读(185) 评论(0) 推荐(0)
摘要: See how Dynamic programming working for TSP: Check this link: http://www.youtube.com/watch?v=IUzE1MbjoVs 阅读全文
posted @ 2013-10-28 01:53 Zhentiw 阅读(243) 评论(0) 推荐(0)
摘要: package com.learning; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; im 阅读全文
posted @ 2013-09-16 14:47 Zhentiw 阅读(190) 评论(0) 推荐(0)
摘要: 原理图: 原先浏览器输入的网址会发送到apache服务器,然后apache会调用php模块来处理,最后找到你所想访问的页面; 如果在apahce, httpd.conf文件中开启rewrite机制,则apache会去查看可以匹配的规则,然后解析用户所输入的伪静态地址找到所想访问的php页面。 步骤开 阅读全文
posted @ 2013-06-23 19:51 Zhentiw 阅读(216) 评论(0) 推荐(0)
摘要: 伪静态的实际运用 1. 在一个项目中有两个文件夹,public和private, public文件夹的图片可以被所有人访问,private只能被自己访问。如何实现? 第一个方法是: 在public和private下创建.htaccess文件,对于private只让127.0.0.1访问,public 阅读全文
posted @ 2013-06-23 19:41 Zhentiw 阅读(168) 评论(0) 推荐(0)