コード例 #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);
   }
 }
コード例 #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);
   }
 }