Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Android Studio Cookbook

You're reading from   Android Studio Cookbook Design, test, and debug your apps using Android Studio

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785286186
Length 232 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 van Drongelen van Drongelen
Author Profile Icon van Drongelen
van Drongelen
Arrow right icon
View More author details
Toc

Image sharing


Image capturing is no fun without the ability to share images; for example, on Facebook. We will be using the Facebook SDK for that.

Challenge! If you are building an app running on a Parse backend, as we did in Chapter 2, Applications with a Cloud-based Backend, there is no need for that, as the Facebook SDK is already in there. If you want, you can combine the recipes from Chapter 2, Applications with a Cloud-based Backend with this one, and create a real cool app real quick!

Getting ready

For this recipe, you need to have the previous recipe completed successfully and you need to have a real Android device (or a virtual one, but this will require some additional steps).

You also need to have a Facebook account, or you can create one just for testing purposes.

How to do it...

Let's take a look at how we can share our sepia captured image on Facebook:

  1. Get the code from the previous recipe. Open the build.gradle file in the app folder. Add a new dependency to the dependencies section...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images