Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Studio Cookbook

You're reading from  Android Studio Cookbook

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781785286186
Pages 232 pages
Edition 1st Edition
Languages
Author (1):
Mike van Drongelen Mike van Drongelen
Profile icon Mike van Drongelen
Toc

Submitting data to the cloud


Now that we have completed the previous recipes and the driver that will be using our CloudOrder app knows where to go to for a particular order, it would be great if, once the goods are delivered, he (or she) will be able to select that order and have it signed for delivery by the customer on the device.

In this last recipe, we will implement code to make the customer draws his or her signature on the device. The signature will be sent to Parse as an image and the CloudOrder record will be updated.

Getting ready

To go through this recipe, you will need to have the previous recipes up and running.

How to do it…

  1. Create a new class and name it SignatureActivity.

  2. Create a new layout and name it activity_signature.xml.

  3. Switch the layout to Text. Add the TextView and the Button widget to the layout. Make sure that the layout looks like this:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android...
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}