public static void startRequestActiveActivity(Context ctx, User user) { if (user.getType().equals(User.Type.VENDOR)) { ctx.startActivity(ActivityUtil.newIntent(ctx, RequestActiveVendorActivity.class)); } else { ctx.startActivity(ActivityUtil.newIntent(ctx, RequestActiveClientActivity.class)); } }
public static void startRequestDetailActivity(Context ctx, Request request) { Intent i = ActivityUtil.newIntent(ctx, RequestDetailActivity.class); i.putExtra(RequestDetailActivity.REQUEST_ID, request.getObjectId()); i.putExtra(RequestDetailActivity.REQUEST_STATE, request.getState()); ctx.startActivity(i); ActivityUtil.transitionRight((Activity) ctx); }
public static void startLoginActivity(Context ctx) { ctx.startActivity(ActivityUtil.newIntent(ctx, LoginActivity.class)); }
public static void startRequestMapActivity(Context ctx) { ctx.startActivity(ActivityUtil.newIntent(ctx, RequestMapActivity.class)); }
public static void startFirstActivity(Context ctx, User user) { if (user.getType().equals(User.Type.VENDOR)) ActivityUtil.startRequestMapActivity(ctx); else ActivityUtil.startRequestCreateActivity(ctx); }
public static void startDelegateActivity(Context ctx) { ctx.startActivity(ActivityUtil.newIntent(ctx, DelegateActivity.class)); }
public static void startRequestPendingActivity(Context ctx, User user) { if (user.getType().equals(User.Type.VENDOR)) ctx.startActivity(ActivityUtil.newIntent(ctx, RequestPendingVendorActivity.class)); else ctx.startActivity(ActivityUtil.newIntent(ctx, RequestPendingClientActivity.class)); }