title: Android : What should I do instead of using a deprecated function(getwidth() )?
body: <p>I want to use the function activity.getWindowManager().getDefaultDisplay().getwidth() but there is a warning that says this function is deprecated</p>
  
  <p>What should I do ? Should I use this function anyway? or there is some other functions that do the same ?</p>