Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Application Programming with OpenCV

You're reading from   Android Application Programming with OpenCV For Java developers OpenCV is a fantastic opportunity to benefit from the popularity of image related mobile apps on Android. This book teaches you all you need to know about computer vision with practical projects.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781849695206
Length 130 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Joseph Howse Joseph Howse
Author Profile Icon Joseph Howse
Joseph Howse
Arrow right icon
View More author details
Toc

Deleting, editing, and sharing photos in LabActivity


Our second activity, LabActivity, needs to do the following:

  • From the previous activity, receive a URI and file path for a PNG file

  • Display the image that is contained in the PNG file

  • Provide the following menu actions:

    • Show a confirmation dialog. On confirmation, delete the PNG file and finish the activity.

    • Show an intent chooser so that the user may select an app to edit the PNG file. (The URI is passed with the EDIT intent.)

    • Show a chooser so that the user may select an app to share or send the PNG file. (The URI is passed with the SEND intent.)

All of this functionality relies on standard Android library classes, notably the Intent class. Intents are the means by which activities communicate with each other. An activity receives an intent from its parent (the activity that created it) and may receive intents from its children (activities it created) as they finish. The communicating activities may be in different applications. An intent may...

You have been reading a chapter from
Android Application Programming with OpenCV
Published in: Sep 2013
Publisher: Packt
ISBN-13: 9781849695206
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 $19.99/month. Cancel anytime
Banner background image