History log of /packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
63ab9de1b881bf1496228285511cab213501f404 06-Apr-2010 Andrew Stadler <stadler@android.com> Partial solution to make EAS setup respect "manual"

* Track whether the user clicked "manual" vs. clicking next (and falling
into "manual" because the account is not found in the providers list.
Convert this into an "allowAutoDiscover" parameter.
* Pass "allowAutoDiscover" down into AccountSetupAccountType and through
into AccountSetupExchange. (Note, it's unused/ignored for POP & IMAP
accounts and should not affect them.)
* In AccountSetupExchange, use the existing EXTRA_DISABLE_AUTO_DISCOVER
(previously only for testing) to suppress autodiscover in manual mode.

Bug: 2570919
Change-Id: I2583e00d1e6cc26bbd4b85134eddae8cc3a1f91e
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
9f73249031303856670651305adff255a00918b7 04-Mar-2010 Andrew Stadler <stadler@android.com> Continuing work on account migration

* Prune all folders, messages & attachments that won't migrate
* Clean up SSL/TLS values for better connection results & security
* Move account setup lookup code to AccountSettingsUtils to share it
* Cleanup config/auto-rotation settings to prevent relaunch of
auto-discover or account check (from exchange).
* A couple of other very small fixes

Bug: 2065528
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
ecb1af804144689d4ead96a247b565f9b4eb8160 02-Feb-2010 Andrew Stadler <stadler@android.com> Finish up IMAP ID implementation

* scrub all external strings to keep them compliant for IMAP protocol
* move Build.MODEL to x-android-device-model
* send x-android-mobile-net-operator
* send AGUID
* unit tests for above
* retrieve providers from VendorPolicyLoader

Bug: 2332183
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
e5c3c98e9a85198e0b023fd25529512baeb88cdb 01-Feb-2010 Makoto Onuki <omakoto@google.com> Fix confusing setup screen title.

Change the title of the screen for adding an exchange account from "Set up email" to "Add an Exchange account".

Bug: 2159019
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
f613489663cdc5df71b029dfcec5fd3c5173a549 27-Jan-2010 Makoto Onuki <omakoto@google.com> Add "vendor policy" loader, and alternate exchange descriptive text.

- Dynamically switch to the alternate exchange strings to substitute overlays.
- Added the mechanism to load the "vendor policy", which tells you when the
alternate strings should be used.

Bug: 2382710
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
5e91cccd4b530eb2aeace5c5bf4f3328a5b5d69d 20-Jan-2010 Andrew Stadler <stadler@android.com> Quick backup/restore of accounts

* Workaround for (HTC bug 2275383) & (Moto bug 2226582)
* Adds checkpoints for backing up and restoring accounts
* Uses legacy Account / prefs to back up accounts - this is because
some of this code will be reused for legacy account migration
* Unit tests of Account & LegacyConversions
* Unit tests of backup & restore
* Not done: testing of EAS/Account Manager interface (this will require
deeper dependency injection, to avoid the embedded calls to the Account
Manager and other system services.)
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
17da1767e396b873723d53b2aef93da8aca2c00e 18-Dec-2009 Marc Blank <mblank@google.com> Implement Autodiscover for Exchange servers

* Autodiscover allows complete configuration using only email address
and password
* Code handles the two standard autodiscover addresses and redirect
* Autodiscover process starts when the user chooses "Exchange" as the
account type. If the account is created via the AccountManager,
autodiscover begins upon tapping "Next" for the first time
* If autodiscover fails due to anything other than auth failure for
autodiscover-capable servers, the user is placed into the standard manual
configuration screen

Bug: 2366019
Change-Id: I936712b924833d9a133e8da04e11c3ba45d92f92
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
f1efd65a5ebac0a2f1e218c0ae6bb8ceb1a19af6 18-Dec-2009 Marc Blank <mblank@google.com> Fix "back key" flow for Email account setup

* The existing flow is badly broken; every "back" causes the user
to leave the setup flow and therefore have to start from scratch.
This is a very bad user experience, as previously entered data is
lost and must be re-entered.
* The fix corrects these problems, allowing the user to back up
through screens UNTIL the account is successfully created.
* After account creation, the user is returned to the proper screen,
depending on whether we're in "eas flow mode" or not

Bug: 2337511
Change-Id: Ie25ac73dfcd8a1dca36e1b31c75ffb22359840d1
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
e1145d173971ebe741e42e9caa209ef2f7bbefa4 24-Sep-2009 Marc Blank <mblank@google.com> In EAS flow mode, don't try to use auto-setup (fixes #2143583)

Change-Id: I53a287d909fdde3c6ab75087a4a049c3afe9852c
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
8067b54294356f375521ba3d1e7db3df117b65a4 21-Sep-2009 Andrew Stadler <stadler@android.com> UI cleanups for new account creation

* Improve appearance of basics screen and use simplified text
* Provide alternate text when in EAS account setup flow (from acct mgr)
* Change "Exchange/ActiveSync" button to "Exchange account"
* Add some spacing to the three buttons, to improve appearance

Bugs addressed:
2128055 Change string in account picker activity to Exchange
2132713 Welcome message for Email app is inappropriate when coming from
Settings -> Accounts & sync -> New account
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
da8836a76cd8a6eaa7e3693eeacc6393870b2066 15-Sep-2009 Andrew Stadler <stadler@android.com> Give warnings if dupe account created:

* Check for existing accounts with matching servername + username
* Show a dialog and block account creation
* Triggers in three cases:
* After input of an auto-setup account (e.g. Gmail or AOL)
* After input of manual setup (incoming) parameters
* After changing incoming parameters of *any* existing account
* Made some notes in EmailContent regarding fields in HostAuth that we
are not actually using.
* Added HostAuth unit tests

Primarily fixes bug # 1964449
Bonus fix for bug # 1594408

Change-Id: I49310faf6654280582e0ab3d3e40f2701bfcd21d
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
d382107bdc95d4472050d0879dff7e30193ef1c2 20-Aug-2009 Jeff Hamilton <jham@android.com> Don't try to load the owner info for now, it's not available.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
bcff14acf25d3a999b7448e317604e694c204f47 21-Aug-2009 Andrew Stadler <stadler@android.com> Create setup flow for use by Accounts manager.

* Create a new entry point for the exchange setup flow and switch
EASAuthenticatorService to call it
* Pass "eas flow mode" down through the setup screens
* Slightly modify their behavior as we go (e.g. we skip the
(account type" screen since we know it's EAS.)
* Add a checkbox to "sync contacts from this account" and pass that
value into ExchangeStore when we set up the account.
* Change the flow exit to pop back to the account manager instead of
taking the user to the new inbox.

This CL satisfies cases 1 & 2 of bug # 1974752.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
fb67ec958c44fcd46b524cc85d5f8ad3aeb4d2fd 19-Aug-2009 Jeff Hamilton <jham@android.com> Handle null cursors when looking up owner info.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
cc402e42ab70699fb43d23e69a724639b9507738 09-Aug-2009 Marc Blank <mblank@google.com> Clear error states on network reconnect; add temporary notifications; see details

* When we get a network connect broadcast, clear error states so sync can
restart for any boxes in an error state
* Add temporary notification code for the testers
* Add file-based debug logger
* Add Exchange logging to debug screen (adds additional exchange debugging)
* Add Exchange sd card logging to debug screen (logs to sd card)
* Change setLogging service API to send an int rather than a boolean
* Make sure push mailboxes are set up again when account changes to push
* Make sure push mailboxes are set up again when account mailbox starts
* (Fixed contacts sync bug found during debugging these changes)
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
a5af05f1a94ba9d0a91bd6507492cf6946f88a4d 04-Aug-2009 Mihai Preda <preda@google.com> MessageCompose: load body.
- load body for edit-draft, replay, forward.
- fix debug secret code for no-keyboard devices.
- fix CR-LF BUG 1911254.
- fix menu invoke compose from folder with mailboxId < 0.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
180d69e08546c6498e0e710c5db6c4fe6296001a 27-Jul-2009 Mihai Preda <preda@google.com> Fix UnsupportedOperationException in AccountSetupBasic caused by Account.update() when !isSaved().

Bug 2001896.
Introduced by CL 8158.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
9e2c6bd5f21f2d19eef7ebfe30e6fdf94ede0857 23-Jul-2009 Andrew Stadler <stadler@android.com> Remove saveOrUpdate from EmailContent to prevent stale writes

* Numerous classes modified to deal with this change
* Fixes bugs 1993292 and 1994671
* Renamed various setter and getter methods to reflect the underlying
field names
* Renamed syncFrequency to syncInterval in Account and Mailbox
* Convenience method added to AccountSettings to save only user settings
* Calls to content.update(context, content.toContentValues()), which save
all fields, should be double-checked for correctness, making sure that
content has current data and will not conflict with other threads that
might modify that data
* Ran all unit tests to confirm proper function

NOTE: The logic to enforce single default account no longer works,
because that logic is in Account.save() and does not run via
Account.update(). I have patched out a small section of the relevant unit
test and will file a bug to come back for this fix.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
54c1f2bf9a6574240b7c9af253f83a2b566442ab 22-Jul-2009 Andrew Stadler <stadler@android.com> Improvements to default account handling

* Remove all references to Account.mIsDefault, which was not the right
way to find the default account (it is lazy initialized)
* Change Account.getDefaultAccount to getDefaultAccountId, which is more
efficient and suitable in most uses.
* Wrote unit tests for provider default account handling

This should resolve bug 1983390 as well as a few other issues with default
account management.
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
a290f503f14432163f74548a5e5d1dc5003ad049 15-Jun-2009 Marc Blank <mblank@google.com> Refactored EmailStore, EmailContent, EmailProvider

EmailStore goes away, replaced by EmailContent
All database activity is moved to EmailProvider
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
68a9ccfcde85505f06ddba28c22481c80419ddd4 10-Jun-2009 Andrew Stadler <stadler@android.com> final cleanups to get basic message operations working properly.

* Generate compatibility UUID early enough to stick, so our localstore
db's are created correctly and not recreated over and over again.
* Compose menu items working
* Fix single-account mode (go straight to inbox)
* Lightweight Account projections where possible
* Properly show/hide default account checkbox (during new acct screens)

What works:
* All unit tests
* Editing existing accounts
* Create new accounts
* Checking account settings against server
* Mail sync using accounts
* Viewing mailboxes
* Viewing messages
* Composing messages

What breaks (in approx order of planned fixes)
* Some details of account editing
* Import of existing accounts
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
294a4fd0c6b15c1f8f41ca03be66ed95e16e5a6d 06-Jun-2009 Andrew Stadler <stadler@android.com> Enable creation of new accounts using provider-based accounts.

What works:
* Editing existing accounts
* Create new accounts
* Checking account settings against server

What breaks (in approx order of planned fixes)
* Some details of account editing
* Viewing mailboxes & messages
* Mail sync using accounts
* Import of existing accounts
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
d5059731780b81c91eff85be8830cafad41f3ed1 04-Apr-2009 Andy Stadler <> AI 144522: am: CL 144520 General cleanup after the integrations in CL 143018. Some spelling
errors, inconsistencies in passing Application/Activity/Context, and
some error handling cleanups. These are all changes that would have
probably been made before the original submits, but I didn't want
to fix them in the integration step.
Original author: stadler

Automated import of CL 144522
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
bd681454608d518e938e2e7b3ce801f560b14131 28-Mar-2009 Andy Stadler <> AI 143282: am: CL 143018 Integrate changes to generalize selection of Sender & Store.
Rollup of CL's 140586, 140598, 140600, 140655, 140656 (partial),
141082 (partial).
All unit tests pass. Simple functional tests: Create IMAP & POP3
accounts. For each account: Download messages. Send message.
Check account settings. Delete account.
Original author: stadler
Merged from: //branches/donutburger/...

Automated import of CL 143282
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
96c5af40d639d629267794f4f0338a267ff94ce5 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
8c2158a5ebb88e226c23b66ff95910158a2727df 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
f7ae27b973c7a93cd5fb8432940179f6b76a9548 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
be72b1d08af5851ba79651671df8c8b750e35f73 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
687f9962d7095e18ef994cd0e64337f02ed1a5bd 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java
8978aac1977408b05e386ae846c30920c7faa0a6 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Email/src/com/android/email/activity/setup/AccountSetupBasics.java