Can anyone help me to explain some text from Dev Guide?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Can anyone help me to explain some text from Dev Guide?

Postby android.wizard » Wed May 13, 2009 2:39 pm

Hi,
The following text is come from Dev guide - security and permissions, but I don't really understand, so please help me to explain it.
"This mechanism allows a common capability-style model where user interaction (opening an attachment, selecting a contact from a list, etc) drives ad-hoc granting of fine-grained permission. This can be a key facility for reducing the permissions needed by applications to only those directly related to their behavior."
android.wizard
Freshman
Freshman
 
Posts: 7
Joined: Wed May 13, 2009 2:31 pm

Top

Postby padde » Wed May 13, 2009 5:05 pm

In the context of the given example in that text.. its simple.
The particular part you want to know just points out the pros
of the per-URIpermission. If you use it right your app needs less
permissions above all none that could seem suspicious to the user.
In the given example of the text your image viewer app does not need
a permission to read all email. Users would think its weird i guess if your image
viewer app would need this permission. To show that image without that permission
your app gets a URI permission on startup that allows your app to access that particular image
as some sort of exemption. Its a way of borrowing permissions from one app to
another.. so to say.

I hope this clears it up :D
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Thanks a lot!

Postby android.wizard » Thu May 14, 2009 5:26 am

:D
android.wizard
Freshman
Freshman
 
Posts: 7
Joined: Wed May 13, 2009 2:31 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests