Filter ( filte )
A list file under moudle.
1. Under the application node.
A allowBackup indicates whether a backup is allowed, true to allow.
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme">
Icon represents the icon for app.
A lable representing the app 's name
A supportsRtl indicates whether to support layout, true representation support
Theme represents subject
Implementing a page jump requires configuration manifest files, the intent filter intent filter under the activity node under the moudle application node.
A. Application node is a node that continues to hold in 's manifest file ( androidmanifest ), including activity, broadcast recipients, content providers, services. Some properties under application can be used for all components, such as icon, lable, supportrstl.
3. Activity node . Medium can set the icon, lable, etc. Properties of the current page, and if the same property is already set in application, the current page still uses the activity node. Medium Properties.
An intent filter intent filter under activity node, under an activity, you can have more than one intent filter, which represents the different functionality to jump to the same page, which we need to configure on the page, and in the intent filter, the action attribute, property, data property, and data property in the intent filter.
Action represents action, and when the action attribute is configured, you can define a string to see the source code, and the actions in the android system are.
The category property that represents the environment that performs the action, and if you want the current page to be an entry for the program, it should be configured to
Represents the main entrance of a program, launcher ( boot ). If you don't want to configure the main entry for your program, you can write it here
Represents the default environment for android.
In the page configuration
5. Data, data properties include data scheme.
Scheme ( co & TRAI not ) that corresponds to the method in the page when it matches the intent of the page.
In the manifest file:
When you match a page: A. Parse ( ) is a fixed write, followed by a colon followed by a fixed writing, 111 is a number of today, fixed writing.
Type, the type attribute translation is called a type, the previous representation type, such as tex, image is a way of writing, for example, what type to represent.
In the manifest file
In page matching
It's important to note that the data is cleared with the settype and, so when both properties need to be configured, use the setDataAndType ( ) method.6. Generally implementing a jump to a page, you need to configure the action and Categroy. The data property needs to be customized in configuration, action, and data attributes, and catetory properties are generally used.
This is called an implicit sketch by setting a set of actions or data ( data ) to open the page.
With the corresponding map, open the page by setting a specific package, class name, and so on.
The specific code is as follows: Current package name, parameter two: Current package name class name.
It's more easy to open the sketch. Directly using the arguments construct of the intent class, parameters to the context, the parameter is the class object of the jump page.
7. When do you want to hide it, when you use it?
Intent intent = new Intent(this,Main2Activity.class);
When you need to jump to a system page, it's invisible because it needs to know the package name or class name.
When you jump to your own page, it's simpler and doesn't have to be a profile.
8. The page jump is used for data transfer.
Jump to the logic of the specified page data
Data is passed in a way. As you get, the eight basic types of data can use this method.
Intent intent1 = getIntent();该方法的返回值是开启该页面的意图。 intent1.putExtra();得到传递的数据