Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

How do I set a specific intent action?

+12 votes
I am working on the intent to share my list. I am confused about how the intent works. I see that the the original intent was to go to the internet with the given URL, but I can't seem to figure out how to select a method of sharing the list (text, email, etc.).
asked Mar 23, 2015 in Spring 2015 by Logan Kruse (100 points)

1 Answer

+4 votes
Best answer
There were two uses of Intents in the original Twitter search app.

One Intent launched a web browser.  Another intent was used to share something.  With the sharing intent, you don't get to choose whether to share it via TXT, EMAIL, etc... the Intent just tells what type of data it wants to share, and then the user gets to pick the app that they want to use (from the list of apps installed on their phone that can handle that type of request.)
answered Mar 25, 2015 by Forrest Stonedahl (100 points)
selected Mar 27, 2015 by Logan Kruse