Back to Android Setup
Android icon

COG Mail Connect

Android setup assistant and future sync app for COG Mail users.

Goal

COG Mail Connect will help Android users set up COG Mail with less manual configuration. The first version will focus on guided setup and account testing. Later versions may add deeper calendar and contacts sync automation.

Version 0.1

Setup Assistant

  • User enters email and password.
  • App tests COG Mail services.
  • App shows pass/fail results.
  • App provides copy-ready settings.
  • App opens COG Mail Workspace.
  • App guides calendar/contact setup.

Version 0.2

Assisted Android Setup

  • Better mail app setup guidance.
  • Gmail app instructions.
  • Samsung Email instructions.
  • Outlook app instructions.
  • DAVx5 setup guidance.
  • Battery optimization warnings.

Version 1.0

Native COG Sync

  • COG Mail Android account type.
  • Calendar sync adapter.
  • Contacts sync adapter.
  • Secure credential storage.
  • Sync now button.
  • Sync status reporting.

Important Android Reality

A normal Android app usually cannot silently configure Gmail, Samsung Email, or Outlook. Those apps control their own account setup. COG Mail Connect can verify the account, provide settings, guide the setup, open helpful screens, and eventually sync calendar and contacts directly.

Services to Test

Incoming IMAP:
Host: cogmail.tech
Port: 993
Security: SSL/TLS

Outgoing SMTP:
Host: cogmail.tech
Port: 587
Security: STARTTLS

Alternate SMTP:
Host: cogmail.tech
Port: 465
Security: SSL/TLS

Calendar:
https://cogmail.tech/.well-known/caldav

Contacts:
https://cogmail.tech/.well-known/carddav

Workspace:
https://cogmail.tech/workspace/

Android Studio Project Settings

Name: COG Mail Connect
Package name: com.cogtechnology.cogmailconnect
Language: Kotlin
Minimum SDK: API 26 or higher
Template: Empty Views Activity

Initial File Plan

app/src/main/AndroidManifest.xml
app/src/main/java/com/cogtechnology/cogmailconnect/MainActivity.kt
app/src/main/java/com/cogtechnology/cogmailconnect/ServerTestService.kt
app/src/main/java/com/cogtechnology/cogmailconnect/ManagedConfigReader.kt
app/src/main/res/values/strings.xml
app/src/main/res/values/colors.xml
app/src/main/res/xml/app_restrictions.xml

Managed Business Deployment

Later, COG Mail Connect can support Android Enterprise managed configurations. This would allow business devices to receive preconfigured values such as server URL, email address, and sync options.

server_url = https://cogmail.tech
email_address = user@company.com
sync_calendar = true
sync_contacts = true