title: How to open Android activities based on role of user?
body: <p>I am creating an online based Android app in which there is a <em>listview</em>, which shows <em>notifications</em> from different types of users like '<strong>student</strong>', '<strong>teacher</strong>'. When I click a list view item, it should check the role of the user, whether the user is registered as '<strong>teacher</strong>' or a '<strong>student</strong>' and it should open the activity screen based on their role. I'll use intents to open different activities. How do I check the role of the user from server?</p>