title: Android - How to pass a custom object to a fragment
body: <p>Database Manager code</p>
  
  <pre><code> public HouseHoldIncome getHoseHold(String id) {
      HouseHoldIncome listViewEditing = null;
      try {
          Dao&lt;HouseHoldIncome, String&gt; 
          householdIncomeDao =     dbHelper.getDaoHouseHoldIncome();
           listViewEditing= householdIncomeDao.queryForId(id);
      } catch (SQLException e) {
          Logger.get().e(GreenAgriApp.getInstance(), e.getMessage());
          e.printStackTrace();
      }
      return listViewEditing;
  }
  
      Adapter class
  
    updatebutton=(Button)view.findViewById(R.id.Update);
  
    updatebutton.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
  
          update((int) v.getTag());
      }
  
      });
  
  
   public void update(int position)
   {
     HouseHoldIncome houseHoldIncome=arrayList.get(position);
     DatabaseManager.getInstance(mcontext)
   .getHoseHold(String.valueOf(position));
     arrayList.add(position,houseHoldIncome);
     notifyDataSetChanged();
    }
  </code></pre>
  
  <p>I am new to Android,  I want to create an update view with pre populated data which has a form . I want to pass a custom object from update method to a fragment. How can I achieve this? </p>