getDrawable is depreceated. How can I rewrite this code. I am unable to find the answer.
public static List<Product> getCatalog(Resources res){ if(catalog == null) { catalog = new Vector<Product>(); catalog.add(new Product("Dead or Alive",src.getDrawable(R.drawable.deadoralive), "Dead or Alive by Tom Clancy with Grant Blackwood", 29.99)); catalog.add(new Product("Switch", res .getDrawable(R.drawable.switchbook), "Switch by Chip Heath and Dan Heath", 24.99)); catalog.add(new Product("Watchmen", res .getDrawable(R.drawable.watchmen), "Watchmen by Alan Moore and Dave Gibbons", 14.99)); } return catalog; } What is the new best way to use it funcation.