, my entire small application is finished. Here, the Fragment is added to the Activity through the layout file, and another way is to add the Fragment to the Activity through programming. Here I will briefly describe
The above 1, 2, 3, 4 do not need to be moved.
In step 5th, the code in activity_fragment.xml is changed to the following
You will find that two Fragment items are removed from my knowledge, and the id is added to the entire LinearLayout.
The comments in step 1 have been clearly w
Get the difference of date in java, java get the difference of date
Reprinted please indicate the source, thank you http://blog.csdn.net/harryweasley/article/details/42121485
When we want to calculate the difference value, we must think of "2014.12.14"-"2014.12.20" = 4. This method, but java does not directly give us this method, so what I want is to convert the string to the Date type, and then convert
Date is converted to the Calendar type. You can use the Calendar. add () method to solve th
Solaris System Security reinforcement list ps: as many Solaris Security reinforcement lists are old, the Solaris System reinforcement list summarized in the following documents and practices will inevitably affect the service) and errors and deficiencies, I hope you will not hesitate to enlighten me that it was a Word document and the format will be messy after it is published)Thanks to lgx and ghoststone for their help in this article.
Solaris System
1. JSON serialization
Using System; using System. collections. generic; using System. linq; using System. web; using System. web. UI; using System. web. UI. webControls; using System. web. script. serialization; namespace test2 {public partial class WebForm6: System. web. UI. page {public class Personnel {public int Id {get; set;} public string Name {get; set ;}} protected void Page_Load (object sender, EventArgs e) {Personnel personnel = new Personnel (); personnel. id = 1; personnel. name = ""
The http post method connects to the server, sends data to the server, and obtains data from the server. The post Server
The general process is: the client fills in the user name and password and makes a judgment on the server. If the verification password is correct, the logon is successful. If the password is incorrect, the logon failure is returned.
The client is a java program with the following code:
Package lgx. java. test; import java. io. byt
);
The catch (Sqliteexception e) {//Todo:handle exception} if (CheckDB!= null) {checkdb.close (); //If CheckDB is null, there is no database, returns false return CheckDB = = null?
False:true; /** * Query all provinces for information * * @return Province Info/public arraylist
In this class, the database binaries in the program are copied to the phone system memory. There are very detailed comments in the code, and I don't say much here.
Next is the content of each activity, is very simple
163.1.5.125 netmask 255.255.0.0 eth0
#指定访问远程网络的缺省网关, assume that the IP address of the default gateway is 163.1.1.254
/sbin/route default GW 163.1.1.254 eth0
⑵ Edit/etc/resdv.conf File
The file role is to set the name server. You can add the following content.
#指定本机域名为linux. Net.
Domain linux.net
#域名称服务器 (DNS), either a local or remote network. Look in the order of nameserver. If not found, Linux gives up looking.
Nameserver 163.1.1.4
Nameserver 10.55.0.33
⑶ Edit/etc/hosts.conf File
Sets the ho
of the command method is based on the Ethernet card is mounted in the case of editing the configuration file to configure the network method. The specific steps are as follows:
⑴ Edit/etc/rc.d/rc.local FileInclude the following lines in the file:#配置第一个以太网卡eth0的IP地址, subnet mask, up activate/sbin/ifconfig,etho 163.1.5.125 netmask 255.255.0.0 up#配置并激活回环设备lo/sbin/ifconfig Lo 127.0.0.1 up/sbin/route add–host 127.0.0.1 Lo#让Linux将本地网的信息发送到eth0接口/sbin/route add–net 163.1.5.125 netmask 255.255.0.0 eth0
) {//Todo:handle exception}if (CheckDB! = null) {Checkdb.close ();} If CheckDB is null, there is no database, return falsereturn CheckDB = = null? False:true;} /** * Query All provinces information * * @return Province information */public arraylistIn this class, the database binaries in the program are copied to the phone system memory. There's a lot of detail in the code, and I'm not going to say much here.Next is the content of each activity, is very simple, I will post a bar, then I will upl
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.