void showDetails(Item item, int position) { // look for data in position index on array Lessons String client_name = item.getClientname(); String item_name = item.getItemname(); String delivery_date = item.getItemtime(); // String time = Integer.toString(item.getItemtime()); String itemimage_url = item.getItemimage_url(); String price = item.getItemprice(); // String time = item.getItemtime(); String positionDel = Integer.toString(position); String location = item.getLocation(); String phoneno = item.getPhoneno(); String order_id = String.valueOf(item.getOrder_id()); String product_id = item.getProduct_id(); Intent si = new Intent(getActivity(), SingleItemActivity.class); Bundle b = new Bundle(); b.putString("client_name", client_name); b.putString("item_name", item_name); // b.putString("time", time); b.putString("delivery_date", delivery_date); b.putString("itemimage_url", itemimage_url); b.putString("price", price); b.putString("positionDel", positionDel); b.putString("location", location); b.putString("phoneno", phoneno); b.putString("order_id", order_id); b.putString("product_id", product_id); si.putExtras(b); // startActivity(si); startActivityForResult(si, 2); }
@Override public void onItemLongClicked(Item item, int position) { phoneNo = item.getPhoneno(); // TODO Auto-generated method stub }