I'm developing some app with a DrawerLayout for many kinds of devices, now.. when the app installed in old api the app crashes because DrawerLayout is not supported or something. how can i get in my java code what is the current device for handle the drawer respectively? or if the drawer not available. I tried this:
if(drawer != null){
//its ok!
}else{
//the app without DrawerLayout !
}
but it doesn't working for me... please help me!!!