Code example for ListFragment

Methods: onActivityResult

0
	  } 
	   
	   @Override 
	   public void onActivityResult(int requestCode, int resultCode, Intent data) 
	   { 
			super.onActivityResult(requestCode, resultCode, data);
	   } 
	   
	  @Override 
	  public void onListItemClick(ListView l, View v, int position, long id) 
	  { 
		  if (position == 0)
		  { 
			  return; 
		  } 
		   
		  Intent i = new Intent(mContext, FoodDetails.class);
		  i.putExtra("food", ((FoodListItem) v).getFood());
		  startActivity(i);
	  } 
Experience pair programming with AI  Get Codota for Java