Source:
<code>private void save() { final String firstName = ((EditText) findViewById(R.id.first_name_field)).getText().toString(); final String lastName = ((EditText) findViewById(R.id.last_name_field)).getText().toString(); if (TextUtils.isEmpty(firstName) || TextUtils.isEmpty(lastName)) { Toast.makeText(this, "First and last name cannot be empty!", Toast.LENGTH_LONG).show(); return; } final String title = ((EditText) findViewById(R.id.title_field)).getText().toString(); final String phone = ((EditText) findViewById(R.id.phone_field)).getText().toString(); final String email = ((EditText) findViewById(R.id.email_field)).getText().toString(); final String department = ((EditText) findViewById(R.id.department_field)).getText().toString(); final String homePhone = ((EditText) findViewById(R.id.home_phone_field)).getText().toString(); final SmartStore smartStore = SmartSyncSDKManager.getInstance().getSmartStore(curAccount); JSONObject contact; try { contact = smartStore.retrieve(ContactListLoader.CONTACT_SOUP, smartStore.lookupSoupEntryId(ContactListLoader.CONTACT_SOUP, Constants.ID, objectId)).getJSONObject(0); contact.put(ContactObject.CONTACT_FIELDS[1], firstName); contact.put(ContactObject.CONTACT_FIELDS[2], lastName); contact.put(ContactObject.CONTACT_FIELDS[3], title); <START> contact.put(ContactObject.CONTACT_FIELDS[4], phone); <END> contact.put(ContactObject.CONTACT_FIELDS[5], email); contact.put(ContactObject.CONTACT_FIELDS[6], department); contact.put(ContactObject.CONTACT_FIELDS[7], homePhone); contact.put(SyncManager.LOCAL, true); contact.put(SyncManager.LOCALLY_CREATED, false); contact.put(SyncManager.LOCALLY_DELETED, false); contact.put(SyncManager.LOCALLY_UPDATED, true); smartStore.upsert(ContactListLoader.CONTACT_SOUP, contact); Toast.makeText(this, "Save successful!", Toast.LENGTH_LONG).show(); finish(); } catch (JSONException e) { Log.e(TAG, "JSONException occurred while parsing", e); } }</code><technical_language>More constants for title, phone</technical_language>

Target:
private void save() { final String firstName = ((EditText) findViewById(R.id.first_name_field)).getText().toString(); final String lastName = ((EditText) findViewById(R.id.last_name_field)).getText().toString(); if (TextUtils.isEmpty(firstName) || TextUtils.isEmpty(lastName)) { Toast.makeText(this, "First and last name cannot be empty!", Toast.LENGTH_LONG).show(); return; } final String title = ((EditText) findViewById(R.id.title_field)).getText().toString(); final String phone = ((EditText) findViewById(R.id.phone_field)).getText().toString(); final String email = ((EditText) findViewById(R.id.email_field)).getText().toString(); final String department = ((EditText) findViewById(R.id.department_field)).getText().toString(); final String homePhone = ((EditText) findViewById(R.id.home_phone_field)).getText().toString(); final SmartStore smartStore = SmartSyncSDKManager.getInstance().getSmartStore(curAccount); JSONObject contact; try { contact = smartStore.retrieve(ContactListLoader.CONTACT_SOUP, smartStore.lookupSoupEntryId(ContactListLoader.CONTACT_SOUP, Constants.ID, objectId)).getJSONObject(0); contact.put(ContactObject.FIRST_NAME, firstName); contact.put(ContactObject.LAST_NAME, lastName); contact.put(ContactObject.TITLE, title); contact.put(ContactObject.PHONE, phone); contact.put(ContactObject.EMAIL, email); contact.put(ContactObject.DEPARTMENT, department); contact.put(ContactObject.HOME_PHONE, homePhone); contact.put(SyncManager.LOCAL, true); contact.put(SyncManager.LOCALLY_CREATED, false); contact.put(SyncManager.LOCALLY_DELETED, false); contact.put(SyncManager.LOCALLY_UPDATED, true); smartStore.upsert(ContactListLoader.CONTACT_SOUP, contact); Toast.makeText(this, "Save successful!", Toast.LENGTH_LONG).show(); finish(); } catch (JSONException e) { Log.e(TAG, "JSONException occurred while parsing", e); } }