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
Learning Android Application Development

You're reading from   Learning Android Application Development Start building for the world's most popular mobile platform

Arrow left icon
Product type Paperback
Published in Aug 2016
Publisher Packt
ISBN-13 9781785286117
Length 320 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Raimon Ràfols Montane Raimon Ràfols Montane
Author Profile Icon Raimon Ràfols Montane
Raimon Ràfols Montane
Laurence Dawson Laurence Dawson
Author Profile Icon Laurence Dawson
Laurence Dawson
Arrow right icon
View More author details
Toc

Permissions


First of all, we need to understand the need for permissions. Permissions were introduced to let the user know what kind of operations the application will perform. These operations are potentially using services with a cost, for example, sending an SMS message or connecting to the Internet or getting potentially sensitive information from the phone or the user. As malicious applications might potentially abuse this, Android introduced a permission mechanism that will show all the required permissions to the user when he/she installs the application from Google Play. As this method did not show very clearly how these features that require special permission were used, Google introduced, in Android Marshmallow or API version 23, a new permission mechanism to check permissions at application runtime.

Android M permission mechanism

Permissions have to be declared in the Manifest file as with previous versions of Android, but there are some new methods to check and request permissions...

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 $19.99/month. Cancel anytime
Banner background image