I have two methods in my application, that want to be executed one after other.

```
removeAllNonSyncedData();
getFullDbFromREST();

```

First method is `removeAllNonSyncedData()` which remove all of non sync data from db. 

When all data get cleared, I want to execute `getFullDbFromREST()`

```
private void removeAllNonSyncedData() {
        try {

            ContentResolver cr = getContentResolver();
            ContentProviderHelp helper = new ContentProviderHelp();

            ObjectPropertyValueTable ObjectPropertyValueTable = new ObjectPropertyValueTable(helper);
            ObjectPropertyValueAuditTrailTable ObjectPropertyValueAuditTrailTable = new ObjectPropertyValueAuditTrailTable(helper);
            PhotoInfoTable PhotoInfoTable = new PhotoInfoTable(helper);
            PropertyDefinitionTable PropertyDefinitionTable = new PropertyDefinitionTable(helper);

            SyncManagerTable SyncManagerTable = new SyncManagerTable(helper);

            cr.delete(ObjectPropertyValueTable.getContentURI(), ObjectPropertyValueTable.SyncStatus+"<>1", null);
            cr.delete(ObjectPropertyValueAuditTrailTable.getContentURI(), null, null);
            cr.delete(SyncManagerTable.getContentURI(), null, null);
            cr.delete(PhotoInfoTable.getContentURI(), PhotoInfoTable.SyncStatus+"<>1", null);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

```

How can I execute the second method after first method is done (data cleared completely from database) ?