Slide 31
Slide 31 text
public class CentralIntentFactory {
public Intent newDealDetailActivityIntent(Context context,
String dealId) {
return new Intent(context, DealDetailActivity.class)
.putExtra(EXTRA_DEAL_ID, dealId);
}
public Intent newDealDetailActivityIntent(Context context,
String dealId,
boolean showMap) {
return new Intent(context, DealDetailActivity.class)
.putExtra(EXTRA_DEAL_ID, dealId)
.putExtra(EXTRA_SHOW_MAP, showMap);
}
...
}
HENSON: CREATING INTENTS