Exemplo n.º 1
0
 public static void startThisActivity(Activity mAc, String uid) {
   if (CommonUtil.isLoginAndToLogin(mAc, false)) {
     Intent intent = new Intent(mAc, AddCommonActivity.class);
     intent.putExtra("uid", uid);
     mAc.startActivityForResult(intent, 2);
   }
 }
Exemplo n.º 2
0
 public static void startThisActivity(
     Fragment fragment, @NonNull String orderid, @NonNull String sellid, ShopCarInfo shopCarInfo) {
   if (CommonUtil.isLoginAndToLogin(fragment.getActivity(), false)) {
     Intent intent = new Intent(fragment.getActivity(), AddCommonActivity.class);
     intent.putExtra("oid", orderid);
     intent.putExtra("sid", sellid);
     Bundle bundle = new Bundle();
     bundle.putSerializable("goods", shopCarInfo);
     intent.putExtras(bundle);
     fragment.startActivityForResult(intent, 1);
   }
 }