This implementation is okay if you only have small data. Since there are 2 data to retrieve(mobile name and drawable id), it will be convenient if you will a HashMap to store the data instead of using String[] and check the name then set the logo image.