Tag:Gift bag

  • The official WeChat official account of “Android developer” is coming! We are waiting for your help!


    Google developer official account has undoubtedly become a link between Google technology and developers. Especially for Android teams, it is very important for us to pass on the freshest content to developers at the very first time and to hear the feedback from everyone. JustThe amount of Android development content has far exceeded the carrying […]

  • JavaScript serializing 23 string object and its common methods


    1、 String object 1. All string methods will not modify the string itself (the string is immutable and a new string will be returned after the operation is completed) Note: splicing a large number of strings will cause performance problems. We often use server rendering and template engine to solve this problem Common methods: (1)str.lengthGets […]

  • Android serial 21 – review the past (4)


    1、 Implicit intent 1. How to configure AndroidManifest.xml to configureintent-filtercontent Response actioncom.example.activitytest.ACTION_STARTAnd respond to category stayFirstActivity.javaSet intent Each intent can only specify one action, but multiple categories can be specified (1) Intent constructor with intent (string action)_ name)(2) We also use the member method addcategory (string category)_ name) 2. Implicit intent can start the activities […]

  • Android serial 22 – standard broadcast sending of custom broadcast


    1、 Send custom broadcast 1. Broadcasting is mainly divided into two types: Standard broadcasting and orderly broadcasting 2. Send standard broadcast First define a broadcast receiver to receive the broadcast package com.example.broadcasttest2; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class MyBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context,Intent intent) { Toast.makeText(context, “received […]

  • Android serial 23 – Cross program broadcast, orderly broadcast


    1、 Broadcasting across programs Broadcast is a kind of cross process communication mode; Let’s write a project to send an orderly broadcast Start with a broadcasttest3 project Then write a class to receive broadcast, inherited from broadcastreceiver package com.example.broadcasttest3; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class AnotherBroadcastReceiver extends BroadcastReceiver { @Override public […]

  • C Series 1 – Original Intention & brief introduction


    1、 Original intention Originally want liver algorithm or privately do it, but in a communication company will not C, work can not do therefore liver liver liver liver liver liver Liver, will not be very detailed, but as long as I write it out, I will not, or need to summarize, the following reference book […]

  • Android serial 26 – register all events and show results


    1、 This is followed by series 25 Offilinereceiver interpretation class useAlertDialog.BuilderTo build a dialog box, notice that there is a member method in itsetCancelabel()It is not allowed to cancel the setting. Otherwise, once you click the back button, you can use the program again. This will lead to two places login, which is not in […]

  • C serial 5-functions and return


    1、 Return statement 1. The main function has a return statement, but it can not. For the main function, after running the last line of statement, it will automatically return a 0, but other functions are not allowed. In order to form a good habit, please add return 0 at the end of the main […]

  • Different formats and principle analysis of lattice number output in C serial 8-printf


    1、 Different output formats have different results 1.% LD is used for the value of long type. If the size of int and long in the system is the same, use% d. such programs can be transplanted to other systems (the sizes of int and long types are different). 2. Similarly, the front of X […]