How to make OnDrawerOpenListener() work in android

view story

http://stackoverflow.com – Can someone explain how to get this to work please. Says its deprecated, just wondering if I can force it or if there is another way to change my title label when the SlidingDrawer is opened then change it back when it is closed. I still have a lot to learn so if possible please reply with something that is cut and paste friendly ;) Thanks. Jesse OnDrawerCloseListener onClick_DrawerClosed = new OnDrawerCloseListener() { @Override public void onDrawerClosed() { titletext.setText("Flow Charts"); } }; OnDrawerOpe (HowTos)