@Override public void onItemClick(AdapterView<?> parent, View v, int position, long id) { String imgPath = (String) adapter.getItem(position); if (!StringUtil.isEmptyOrNull(imgPath)) { Bundle bundle = new Bundle(); bundle.putString(PersistenceKey.CUSTOMER_ID, customerId); bundle.putString(PersistenceKey.IMG_PATH, imgPath); bundle.putBoolean(PersistenceKey.IS_PEWVIEW, true); IntentUtil.redirectToNext(this, ImageViewer.class, bundle); } }