contactgroups

Issue using Contact Group delete on Android

旧时模样 提交于 2020-01-11 04:05:09
问题 I have this code to delete a Contact Group public void delete(Activity act,String[] args) { try { int b=act.getContentResolver().delete(ContactsContract.Groups.CONTENT_URI,"_ID=?", args); Toast.makeText(act, "Deleted",Toast.LENGTH_SHORT).show(); //notify registered observers that a row was updated act.getContentResolver().notifyChange(ContactsContract.Groups.CONTENT_URI, null); } catch (Exception e) { Log.v(TAG, e.getMessage(), e); Toast.makeText(act, TAG + " Delete Failed",Toast.LENGTH_LONG)

Add an email to outlook distribution list using powershell

帅比萌擦擦* 提交于 2019-12-24 15:01:58
问题 I just create a new distribution list on Outlook byt he following script $outlook = new-object -com Outlook.Application $contacts = $outlook.Session.GetDefaultFolder(10) $dl = $contacts.Items.Add("IPM.DistLIst") $dl.DLName = "Group A" $dl.Save() and I Have an e-mail address "manager@abc.com" with name to be "manager" how do i use powershell to add this to the newly created distribution list? I have to use powershell due to some reason, and I have tried this: Add-DistributionGroupMember

Issue using Contact Group delete on Android

一个人想着一个人 提交于 2019-12-01 01:20:42
I have this code to delete a Contact Group public void delete(Activity act,String[] args) { try { int b=act.getContentResolver().delete(ContactsContract.Groups.CONTENT_URI,"_ID=?", args); Toast.makeText(act, "Deleted",Toast.LENGTH_SHORT).show(); //notify registered observers that a row was updated act.getContentResolver().notifyChange(ContactsContract.Groups.CONTENT_URI, null); } catch (Exception e) { Log.v(TAG, e.getMessage(), e); Toast.makeText(act, TAG + " Delete Failed",Toast.LENGTH_LONG).show(); } } I call the method like private void processDelete(long rowId) { String[] args = { String