Skip to Main Content
50 Android Hacks
book

50 Android Hacks

by Carlos Sessa
June 2013
Intermediate to advanced content levelIntermediate to advanced
216 pages
6h 3m
English
Manning Publications
Content preview from 50 Android Hacks

Chapter 9. Ready-to-use snippets

Do you sometimes use the same code in different applications? If so, this chapter is for you. We’ll go through some code snippets that you can copy and paste into any Android application.

Hack 35 Firing up multiple intents: Android v2.1+

One of the nicest features about Android is the intent system. If you want to share something with another application, you can use an intent to do so. If you want to open a link, you have an intent for that. In Android, almost everything can be done with an intent.

If you use the mobile messenger app, WhatsApp, you might know that you can share images with your contacts from an image in the gallery or by taking a photo. The dialog presented to the user to pick an image from ...

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.
Start your free trial

You might also like

Android Security

Android Security

Anmol Misra, Abhishek Dubey

Publisher Resources

ISBN: 9781617290565Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link