dont know to pass recipe value to second method

  • Thread starter Android Central Question
  • Start date
A

Android Central Question

im really stuck with this i have two adapters and to selected on adapter it has to get the value form another adapter. so far i was able to get the two values here but i dont know how to pass the recipe value to second method.

public static class res{

public static void selectedMenu(String recipe){
Log.d("tmg",recipe);

}

public static void selectedMenu(DataSnapshot db) {
RecipesInformation Recipes = db.getValue(RecipesInformation.class);
if (Recipes.getCompany().equals(displayName) && Recipes.getMenuList().equals("Panini with Traditional Roast Paan")) {
//Log.v("tmg", displayName);
rRecipes.add(db.getValue(RecipesInformation.class));
}

}

}
 

Trending Posts

Forum statistics

Threads
943,183
Messages
6,917,687
Members
3,158,867
Latest member
Non