Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Sharing Content with Friends
Social networks come and go, and what is popular one year may not be popular (or even exist) the next. There are also dozens of social network services that your app’s users might use. Even some that you haven’t heard of might be popular in other countries. How can your application support them all?
Android has a generic way to share content between activities, including those in other applications, via intents. Users of the On Your Bike app will be able to share content across multiple social networks as well as email and text messaging.
You can give users a good level of control over the way content is shared by letting them select from the list of sharing apps on their device. Just as you can ask the camera app ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access