File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes how to define user type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to define user type " Watch "how to define user type " New topic

how to define user type

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1238
I need to show the different screens depend on the user type.If a user is normal one screens.if a user is admin one screen.How to get different screens depend on the user types?
Steve Luke

Joined: Jan 28, 2003
Posts: 4181

1 Define what user types are
2 Associate users with types
3 Get the current user
4 Lookup current user's type
5 Show the correct screen

It is sorta covered in the JavaRanch Style Guide.
subject: how to define user type