public void populateBinItem(String type, String otherType) { if (mBin == null) { mBin = new Bin(); } setPassiveBinInformation(); mBin.setBinType(type); mBin.setOtherBinType(otherType); logBin(mBin); }
private void setPassiveBinInformation() { try { mBin.setUserEmail(mOutingManager.getGmailAccount()); mBin.setCreated(new Date().getTime()); mBin.setLatitude(mockLat); mBin.setLongitude(mockLong); if (mOutingManager.getLocation() != null) { mBin.setLatitude(mOutingManager.getLocation().getLatitude()); mBin.setLongitude(mOutingManager.getLocation().getLongitude()); } } catch (Exception e) { Log.w(TAG, e); } }