In my project I need to access the Exchange accounts on the device, to change them.
I need to do it programatically , inside my application.
I have searched around but it does not seem that there is a way of doing such a thing.
Please any help or suggestion?
EDIT EDIT
To be more specific i need to: lists all email accounts on the device and allows the user to change settings for Exchange accounts:
*server address
*server port number
*SSL (on/off)
*accept all SSL certificates (on/off)
*account password
Here's how you get there: Sign in to Microsoft 365 or Office 365 using your work or school account, and then choose the Admin tile. In the Microsoft 365 admin center, choose Admin centers > Exchange. For an introduction, see Exchange admin center in Exchange Online.
2 Answers. They cannot access your personal email, unless they also have access to the machine you work on.
Exchange is a mail server, which means it's a dedicated network resource management program. Outlook is an email client, which means it's a software program installed on your desktop that is designed to send and receive emails.
You can't modify the permissions/settings of an another exchange account (it gives you a security error). You only can create your own exchange account witch it will be included in your exchange accounts as yourAppName..
Take a look at AccountManager (http://developer.android.com/reference/android/accounts/AccountManager.html)
You should be able to do something like this:
AccountManager accountManager = AccountManager.get(context);
Account[] accountList = accountManager.getAccounts();
for(Account account : accountList){
accountManager.getUserData(account, AccountManager.KEY_USERDATA);
accountManager.setUserData(account, AccountManager.KEY_USERDATA, "data");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With