Remove redundant information
This commit is contained in:
parent
bfdb28f22f
commit
463771cc60
@ -100,7 +100,7 @@ The first function, `onCreateOptionsMenu`, programmatically inflates the menu on
|
||||
|
||||
The second function, `onOptionsItemSelected`, overrides the default activity behavior to provide functionality to my options menu items. As other items are added to the menu, they can be reflected in the switch statement in the function there. My `MenuItem`, `R.id.menu_item_share`, is specified there and when selected will start a share Intent.
|
||||
|
||||
The last function `startShareIntent`, will first build a string with the URL of the global `post` object that represents the podcast being displayed in the activity. That string is then passed to the `Intent shareIntent`. Intents are objects that allow android apps to interface with other applications
|
||||
The last function `startShareIntent`, will first build a string with the URL of the global `post` object that represents the podcast being displayed in the activity. That string is then passed to the `Intent shareIntent`.
|
||||
|
||||
Android has objects that are called Intents. Intents are classes that allow Android apps to interface with other Android apps. Share buttons are backed by Share Intents. Share Intents are very easily created using the utility class `ShareCompat.IntentBuilder`. Using chained calls to the intent builder, I can then setup exactly what I want to be done in the Share view that is started by the intent, and then call `startActivity`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user