This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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 The Software Craftsman this week in the Agile 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: 1239
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

I agree. Here's the link:
subject: how to define user type