Check it by using
RootCheck.isDeviceRooted() function
if(RootCheck.isDeviceRooted()) { Log.e("Tag","Rooted"); } else { Log.e("Tag","Not Rooted"); }Credit for this class
http://stackoverflow.com/questions/1101380/determine-if-running-on-a-rooted-device