Exemplo n.º 1
0
 public void setLoggedin(String flag) {
   CustomerDataManager gm = null;
   try {
     gm = new CustomerDataManager(getApplicationContext());
     gm.setLoggedin(flag);
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
Exemplo n.º 2
0
 public void setUserShopDetail(UserShop user) {
   CustomerDataManager gm = null;
   try {
     gm = new CustomerDataManager(getApplicationContext());
     gm.setUsershopdetail(user);
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   } finally {
     gm = null;
     System.gc();
   }
 }
Exemplo n.º 3
0
  public void setCustomerinfo(String userid, String email, String usertype, String flag) {
    // this.user = user;

    CustomerDataManager gm = null;
    try {
      gm = new CustomerDataManager(getApplicationContext());
      gm.setCustomerinfo(userid, email, usertype, flag);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } finally {
      gm = null;
      System.gc();
    }
  }
Exemplo n.º 4
0
 public UserShop getUserShopDetail() {
   CustomerDataManager gm = null;
   UserShop user = null;
   try {
     gm = new CustomerDataManager(getApplicationContext());
     user = gm.getShopDetail();
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   } finally {
     gm = null;
     System.gc();
   }
   return user;
 }
Exemplo n.º 5
0
  public String getLoggedin() {
    CustomerDataManager gm = null;
    String isSync = "false";
    try {
      gm = new CustomerDataManager(getApplicationContext());
      isSync = gm.getloggedin();
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    if (isSync != null) {

    } else {
      isSync = "false";
    }
    return isSync;
  }