Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to access and update Exchange accounts?

Tags:

android

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

like image 798
Lisa Anne Avatar asked Mar 19 '14 08:03

Lisa Anne


People also ask

How do I access Microsoft Exchange account?

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.

Can administrator read users email Exchange?

2 Answers. They cannot access your personal email, unless they also have access to the machine you work on.

Is Exchange account same as Outlook?

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.


2 Answers

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..

like image 116
simas Avatar answered Oct 21 '22 23:10

simas


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");
}
like image 1
Nyx Avatar answered Oct 21 '22 21:10

Nyx