Android Intent usage for beginners
First, for Android development, Android studio 2.0 is currently popular in the world. (Hh learns to use this in the book ,,)
In the future, we will set a plan to update an Android notebook every day. Let's increase our self-control !!!
(Success _ success) believe that you can do it !!!
Intent usage on the first day
Intent usage generally has three types
For other usage, you must first configure the data tag in <intent-filter> !!! So that ThirdActivity can respond to intent of all http protocols
The instance code is as follows: Intent intent = new Intent (Intent. ACTION_VIEW); intent. setData (Uri. parse ("http://www.baidu.com"); startActivity (intent );
The telephone protocol is tel.
Intent intent = new Intent (Intent. ACTION_DIAL); intent. setData (Uri. parse ("tel: 10086"); startActivity (intent );
Data Transmission
These are some notes that Xiaoye has made during his study. You are welcome to discuss them and point out the shortcomings and make progress together !!!