Hello all,

I would like to apply authorization on my Android application. Once
the user logs in I would like to be able to hide or display the
actions/activities according to user's role.

For instance;
If the user in "standard" role I do not want to let her to start some
activities(also hide the activities). Whereas, if the user is in
"admin" role I do want to let her to start some activities that she is
authorized to.

In addition to separate activity based authorization, I would like to
apply UI changes on the same activity according to the user's role.
For example; if the user in "standard" role, she cannot see "Reports"
button on the activity, but if the user in "admin" role, she can see
the "Reports" button.

I can do this via attaching code inside the real code but I want to
separate the concept of authorization from the real code. Is there any
attribute for methods or activities in Android that let me define
authorization on method and activity level.

Any help/example would be appreciated,
Regards,
jojo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to