示例#1
0
 void showDetails(int pos) {
   Cursor c = (Cursor) listAdapter.getItem(pos);
   showDetails(
       ContactContract.OBJECT_CONTACT_URI
           .buildUpon()
           .appendPath(c.getString(c.getColumnIndex(ContactContract.Columns._ID)))
           .build());
 }
示例#2
0
  void resolveConflict(int pos) {
    if (BuildConfig.DEBUG) {
      Log.d(TAG, "resolve conflicts");
    }

    Cursor c = (Cursor) listAdapter.getItem(pos);

    int di = c.getColumnIndex(WebData.Object.WD_DATA_ID);
    String dataID = c.getString(di);
    resolveConflict(dataID);
  }