https://www.youtube.com/watch?v=2TK6KX_RDe8
intent register broadcast receiver
service
broadcast receiver
explicit - assitant and you know the guy to call
inplicit - you do't know
http://developer.android.com/guide/components/intents-filters.html
http://developer.android.com/reference/android/content/Context.html
example:
https://www.youtube.com/watch?v=qurvm-E9AiU
Implicit
reusbility, ex send email, android os knows what app sends email , but you do not know
https://www.youtube.com/watch?v=rqZnn5cf2As
4 pieces of intent
action - what you want to do (call someone)
data - what type of data, ex url, images
extras -phone #
category - create group of components to handle the intent (ex. place activity in the launcher)
intent filters
https://www.youtube.com/watch?v=2FNGXp8Lzlw
package manager
http://developer.android.com/reference/android/content/pm/PackageManager.html
example:
https://www.youtube.com/watch?v=iGbMNfv2KxA
https://www.youtube.com/watch?v=qDN7q4uWKto
startActivity(chooser)
http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)
http://androidsbs.blogspot.com/2014/01/startactivty-start-new-activity.html
Example email
https://www.youtube.com/watch?v=nj-STGrL7Zc
Example image
https://www.youtube.com/watch?v=E6LjSjJb5T4
Example send multiple images
https://www.youtube.com/watch?v=55hRGBJ1-2E
No comments:
Post a Comment