[REQ] Building K-9 Mail With Exchange ActiveSync Support - Android Software/Hacking General [Developers Only]

Dear xda members,
Today I found this wordpress article from Kriss Wong about the current status of the ActiveSync support in the popular K9 mail android client.
It looks like the project is going on and that the current sources would let us compile a working version. Unfortunately, I don't have the knowledge for that and I am missing many tools to follow the tutorial provided in the article.
If anybody gives it a try, I am sure that posting the compiled apk here would make a lot of people happy
Wordpress article: http://codethis.wordpress.com/2011/09/29/building-k-9-mail-with-exchange-activesync-support/
Github sources: https://github.com/k9mail/k-9/tree/ms-eas
Regards,
Laurent

+1 Waiting for this too...

Would also love to have this!
Sent from my SPH-D710 using Tapatalk

I'll try building when home.

Any news? Very interested in K9 with ActiveSync Support...

I tried building based on the article. It did not work.

Required step for compile, after copying local.properties:
/path/to/android-sdk/tools/android update project -t 9 -s -p .
Built and signed with test key: http://qfs.mobi/f45023
It works except it will not see any subfolders of inbox. =[
EDIT: Yes it will, unless you select the wrong SSL/TLS/etc option or cause account setup to error in any way. If so, wipe data, try again, get it right.
EDIT2: Don't try to change things to use sdcard for data, that'll break stuff.
EDIT3: There's no way to get a list of inbox subfolders back if you break stuff and try to zap account data.

Sweet! I just tried this out and has some strange stuff with not seeing subfolders, so I tried a different type of authentication. It finally worked, but I don't see any emails more recent than about a week ago. I haven't found a setting for the amount of time to sync, does anyone have any suggestions?

Just so everyone here knows, this is alpha quality at best. One large missing feature is to restrict the mails that are synced. The way exchange limits this does not match what is currently available in K-9, so the configuration screens still need to be updated. It will download new mail that is received after the account is setup, however. There is also a large issue with the "sync key" not being remembered after K-9 is restarted. This is how the exchange server knows what to sync. I should be adding this fairly soon. I am also seeing out of memory exceptions, which are proving very difficult to debug.
Unfortunately, my limited free time does not provide me much opportunity to work on this.

I understand the alpha disclaimer, but the basic function seems to be there. Also, I'm amazed that you seem to be the only person working on activesync, when it is clear to me that this is the only thing lacking from K9 Mail.
I also understand time constraints on a side project, so let us know if you need any help. I can volunteer to debug any other alpha builds if you like. (Just send me a pm)

Any progress so far? Is the project still alive? Missing Active Sync is the only deal breaker in K-9...

So the dev said there's still some memory leaks and it is quite crashy... But I'm building it now, should have an APK soon folks...
Don't hold your breath on the quality of EAS support either. This is building straight from k9's repos and a checkout of the EAS branch. So all the NIGHTLY caveats apply. I don't take any responsibility if this deletes all the email from the server, ok? Ok.
Edit - apk attached, latest version - 4.308 - looks WAY better on ICS than the 4.200 version on the Market/Play Store, so even if you don't use ActiveSync/EAS, I recommend this version. I setup GMail with Exchange (ActiveSync) (you have to set it up MANUALLY!!! or else it assumes the default K9 settings for GMail, which is IMAP).
Enjoy.

Would K9 supporting activesync replace touchdown, which is basically required by my company to get email on my device? Touchdown is horrendous.

Thanks Arrrrgh!
Works fine with an Office 365 online exchange account and HTC Sensation on stock ICS.
Some system folders have ugly numbers instead of names (such as drafts, sent etc.).
When will this update be integrated into the normal K9 available on the market?
Best
arrufato

dimik2000 said:
Any progress so far? Is the project still alive? Missing Active Sync is the only deal breaker in K-9...
Click to expand...
Click to collapse
+1:good:

The K9 devs all seem uninterested. Otherwise, it would be implemented a long time ago.
Also, the feature to insert pictures rather than attach them, is not interesting to develop.
Despite the fact that it's already present, in the K9 clone "Chiara Mail" on Google Play.
This is all too sad, because K9 had potential to crush all competitors, if they cared...

Related

is there a means to use a google apps hosted domain?

Seems like a rather silly limitation but perhaps I am missing something here.
Since they first started offering it, we have had google hosting our domain's email. When the G1 came out I was sold on the ability to tie my personal email into my phone...
I became a sad panda when the stock setup told me this was not possible due to certain features not setup for hosted domains. So for the time being I setup a gmail account and pop'd my personal email; not an ideal solution but it has worked.
Now with all the modding and such going on, I am beginning to wonder if someone has come up with a means to be able to use the built-in gmail app with their hosted email rather than a gmail account...
Anyone?
huh? It worked fine for me from day one. Just enter your full email as the login ([email protected]) and your password, everything is 100% for me... Emails, contacts, talk & calendar? Try wiping your system clean and try again. Maybe you have to have imap or something turned on from within your Google mail first, but I wouldn't see why.
yeah it does work just fine just enter your username as [email protected] like cl0s said.
Oh what the hell....
I tried every damn possible thing and eventually gave up
I suppose I can wipe it and give it a go again...I was planning a fresh adp1 install in the near future...may as well make that today.
I'll report back for kicks.
Wow...just wow.
Okay so I had disabled calendar and chat (talk) domain wide...
I enabled those and poof..it worked.
all those months...hahah oh man
*slaps forehead*

What's the best email client?

I'm looking for a client that's as good as the iPhone mail client. I'd like it to support multiple exchange accounts as well as render html based email properly. Also an email client that will render all emails proportionally so I don't have to scroll left and right on an email unless I zoom in. Also supporting pinch to zoom would be great. I've tried K9 but was left unsatisfied on it's implementation... what are the better clients on Android?
I'm in the same conundrum(though not for exchange accounts, mostly IMAP).
Tried k9, which fails quite bad and maildroid, which is just slow. Finalyl just settled on the Samsung Mail app that came with my Galaxy S. I'm sure you can find an APK for it around somewhere if you have a different phone.
It's as close to the iPhone mail prgram as I can find on Android
dgovil said:
I'm in the same conundrum(though not for exchange accounts, mostly IMAP).
Tried k9, which fails quite bad and maildroid, which is just slow. Finalyl just settled on the Samsung Mail app that came with my Galaxy S. I'm sure you can find an APK for it around somewhere if you have a different phone.
It's as close to the iPhone mail prgram as I can find on Android
Click to expand...
Click to collapse
I don't understand how any could could be disappointed in K9 Mail, it works flawlessly for me. The GUI is simple yet intuitive and presents the right information at the right time, it ALWAYS works, it's fast, it uses VERY little battery, it supports a great deal of functionality.
The GUI between 2 and 3 got even better adding "Move to Archive" and such type buttons, making common actions easier to do.
One more big plus; Tasker supports it, so you can act on incoming emails, send email, etc via K9.
Only two things it's missing IMO..
Per-folder alerts (I combine all emails (forwarded) into one, and most of them go into specific folders) would be nice, but I've done this in Tasker now so no biggie here.
Second, if you move mail to a folder you don't sync, it stays local and doesn't clean up. IE: If you move Trash mail to the server Trash folder, it moves on the server and on the mail client. However it never gets purged in K9 after X days or after the server deletes it if you don't sync that folder. So what I've done is I sync a few such folders once a day.
FYI, I use Dovecot for my IMAP server, one mailbox IDLE, 4-5 sync once a day. I use Tasker to turn off Syncing at night and have K9 set to not sync when it's disabled so at night K9 doesn't receive mails, turns back on in the morning for me. And when I get certain emails in (based on subject, sender, etc) Tasker alerts me in special ways.
I don't really use the encryption/signing functionality, but it also works quite well paired with APG.
I just don't see why anyone wouldn't like it if they use IMAP. I assume POP would be a similar experience. Exchange can DIAF.
I swear by K9 Mail. Best email app I've ever used. Bonus for being open-source and updated frequently too.
If you are not satisfied with the market release version of K-9 you can always DL a newer version from the development web site.
You can view changes by clicking on the source tab and then the changes sub-tab.
I used K9 as my default email client on the Mytouch 3G. It is a really good, strong, and full of features application. I highly recommend it. Right now I'm using the default that came with the Mytouch 4G because it fits my needs.
Theres always Touchdown and this another one that I can't recall name of if you want to go paid route , K9 does everything and more for me so i've no complaints, The iphone mail app is PATHETIC! look for samsung mail (social mail app) if you want but so far the best is K9 and touchdown for exchange
The stock mail app on my Captivate can't access Yahoo!mail on WIFI and when I tried K9, it slowed my phone down to a crawl. Everything lagged so badly I had to uninstall after less than an hour. And yeah, lag disappeared right after I uninstalled K9.
SO yeah, I, too, am looking for a good mail app.
Try Seven.....it's been working great for me.
seven.com
A non-working link (you forgot the www) is a bad way to promote an app
naenee said:
A non-working link (you forgot the www) is a bad way to promote an app
Click to expand...
Click to collapse
yeah, so, seven.com works by itself, and any website that REQUIRES www. is super lame anyway.
naenee said:
A non-working link (you forgot the www) is a bad way to promote an app
Click to expand...
Click to collapse
He wasn't promoting an app. He was trying to help by suggesting a program he likes.
If you are to lazy to cut and paste or type it in, then just hi on using the email program you use now.
try seven... it's the default mail client that comes on all of the galaxy phones.
lexluthor said:
He wasn't promoting an app. He was trying to help by suggesting a program he likes.
If you are to lazy to cut and paste or type it in, then just hi on using the email program you use now.
Click to expand...
Click to collapse
Thanks dude...I figured smart people could figure out that I left the "WWW" out being I can't post links yet.
Again Seven works great for me. Try it.....
K-9 for sure.
K9 works good but not with Exchange 2010
Or there's always my app! Link is in my sig. I'm constantly working on it so new stuff is being added all the time.
For me without doubt Maildroid
https://market.android.com/details?id=com.maildroid&feature=search_result
Does seven work with any phone
I use Kaiten Mail. Its made by the same developers as K9 I believe but its more intuitive
Tapatalkin' it from my Epic 3g

[Q] Nuevasync not free anymore

Hi friends,
today is a very sad day!
I just received a mail that anounced "New Services" on nuevasync.com.
http://blog.nuevasync.com/blog/nuevasync/entry/new_services
http://www.nuevasync.com/nuevasync-personal.html
If you don't switch to the Basic 15$/yr / Premium 30$/yr Service it will stop syncing.
We have 5 days to switch to an alternative Service (web-based or installed Application).
Well i used nuevasync for syncing 9 GoogleCalendars and my Contacts to my TouchHD and everything works great.
Now I'm on a search for an alternative solution to get this job done.
I so far found ActiveGcSync. But I have to say it crashes pretty much, so it's no fun.
Do you have any other proposals?
kind regards
fwt
I'm in the same boat, just recently started using it again and was happy with it.
Not happy they have decided to stop being free (but that happens) and even worse only gave five days notice.
Not sure what to use instead... I'd pay $15 for life, but not each year.
anybody no of any alternatives, because I want to sync my contacts and multiple calendars to my windows mobile phone
The same here, I'm syncing contacts and 4 calendars at the moment. Any alternativies?
any word on alternatives?
I'm hoping this thread holds some hope:
http://forum.xda-developers.com/showthread.php?t=793683
Until then, I am using gmobilesync, doesn't do contacts but that's fine for me.
I'm currently working on an alternative service. I dont have too much time to work on it, but I have some great ideas. If anyone wants to help me, feel free to join!
xemiw said:
I'm currently working on an alternative service. I dont have too much time to work on it, but I have some great ideas. If anyone wants to help me, feel free to join!
Click to expand...
Click to collapse
I've got lots of ideas too, unfortunately no capability to go anything technical to assist!
Send me a PM and let me know what you need done. I can help with some things, others I can't. I'll let you know what I can do to assist you though.
I tried gmobilesync but it double all my events. I think I will stay with normal sync described: http://www.google.com/support/mobile/bin/answer.py?answer=138636&topic=14299
but I will need to copy events I need to have in phone to my main calendar :/
MusX said:
I tried gmobilesync but it double all my events. I think I will stay with normal sync described: http://www.google.com/support/mobile/bin/answer.py?answer=138636&topic=14299
but I will need to copy events I need to have in phone to my main calendar :/
Click to expand...
Click to collapse
I've never experienced doubling up (touch wood), had you already synced up?
As my main calendar is used very little compared to our shared one, I'm not going down the copying route.
grayme said:
had you already synced up?
Click to expand...
Click to collapse
yes :/
there were also forecast and holidays copied to my main calendar while using it :/
Thank you for your help. I wrote a small exchange server which can synchronize my google calendar with my phone. It was easier than I thought. I dont know how much work it needs but I think I can publish it in 1-2 weeks. Meanwhile you can write your ideas here. If anyone could lend me a server for this, that would be awesome.
xemiw said:
Thank you for your help. I wrote a small exchange server which can synchronize my google calendar with my phone. It was easier than I thought. I dont know how much work it needs but I think I can publish it in 1-2 weeks. Meanwhile you can write your ideas here. If anyone could lend me a server for this, that would be awesome.
Click to expand...
Click to collapse
Sorry, no programming capabilities, nor a server I can share.
However, some ideas:
- Ability to pick which calendars sync
- Ability to pick sync schedule (or always connected or only manually)
- Two way syncing (can't get gmobile syncing to go from WM to google), keeping to the correct calendar.
- Ability to pick one way syncing (either way required)
- Ability to pick the default calendar (for me, this is a shared family calendar, not my main google calendar).
- Ability to pick colours for each calendar (or take the same colours as set in google).
I may come up with other ideas, but that seems to be it for now. Personally I am not interested in syncing contacts or email. Contacts I want to keep separate from those I call and those I email, email works better on imap than activesync.

Unable to save events in calendar in CM7 and aospX

I believe these are bugs, but I cannot post in the respective threads. Anyone else experience the issue in the thread title?
Basically, after a fresh flash, attempt to create a new event. aospX will prompt you to enter a google or corporate email account. If you decline, it'll tell you that no calendar is found and that a calendar account needs to be present, but you have to first enter a sync account and allow it to finish. In other words, if you don't want to enter a sync account, you're out of luck. It just won't create a local calendar.
With stock and stock-ish ROMs, the system seems to have no issues creating a local calendar after a fresh install even though I don't enter any sync accounts.
This basically makes the calendars unusuable for anything more than date reference - except CM7, I don't think it's even possible to merely even view the calendar. I've tried the latest stable version of CM7. I haven't tried the nightly yet. I couldn't download it last time I tried. The site is broken, as is the site for the changelog.
CM's tracker has what I believe to be this issue as Issue 4818. There's even some code someone posted over there - maybe it'll help the devs.
thanks.
username11 said:
I believe these are bugs, but I cannot post in the respective threads. Anyone else experience the issue in the thread title?
Basically, after a fresh flash, attempt to create a new event. aospX will prompt you to enter a google or corporate email account. If you decline, it'll tell you that no calendar is found and that a calendar account needs to be present, but you have to first enter a sync account and allow it to finish. In other words, if you don't want to enter a sync account, you're out of luck. It just won't create a local calendar.
With stock and stock-ish ROMs, the system seems to have no issues creating a local calendar after a fresh install even though I don't enter any sync accounts.
This basically makes the calendars unusuable for anything more than date reference - except CM7, I don't think it's even possible to merely even view the calendar. I've tried the latest stable version of CM7. I haven't tried the nightly yet. I couldn't download it last time I tried. The site is broken, as is the site for the changelog.
CM's tracker has what I believe to be this issue as Issue 4818. There's even some code someone posted over there - maybe it'll help the devs.
thanks.
Click to expand...
Click to collapse
GIve the app Business Calendar a try. might be a decent work around. personally i like it better anyways.
thanks. I've tried that, but it seems to depend on the built in database. If there's no local calendar already in existence, Business Calendar will complain.
this could possibly be what youre looking for
https://play.google.com/store/apps/...1bGwsMSwxLDEsImpwLmNvLmpvaG9zcGFjZS5qb3J0ZSJd
i guess im not really finding anything as far as 'non synced' calendars. maybe too low of a demand for something you cant sync with you computer or work computer
Thanks, I'll give it a try to see. You're right, I imagine most people probably enter in a google or corporate account. I guess that means I might be waiting a long time for a fix!
edit: it's not that I don't want something that cannot sync at all, only something that won't complain if it isn't synced with an online account; something that can function fine without any linked accounts.

[Q] Calendar Sync

So, as heaps of you already know, Google has killed off Google Calendar Sync, as of 01.08.14 (that would be 1st August).
I find this pretty irritating - call me mean, but I resent that these people can play with us like this, but I guess it's their commercial prerogative. (Not exactly a goodwill winner though is it?)
From my research today there are a few apps available, but none are really free - examples include:
Sync2
gSyncit
DejaOffice (CompanionLink)
OutlookGoogleSync
AkrutoSync
OGGSync
SynqYa
Go Contact Sync Mod
Local Sync
Outlook4gmail
I'm about to test Local Sync
It seems like the going rate for anything worth a look is about $20.00AUD.
Is there anything worth a look that is truly free?
What experiences have you had with free / paid solutions?
gbossley said:
So, as heaps of you already know, Google has killed off Google Calendar Sync, as of 01.08.14 (that would be 1st August).
I find this pretty irritating - call me mean, but I resent that these people can play with us like this, but I guess it's their commercial prerogative. (Not exactly a goodwill winner though is it?)
From my research today there are a few apps available, but none are really free - examples include:
Sync2
gSyncit
DejaOffice (CompanionLink)
OutlookGoogleSync
AkrutoSync
OGGSync
SynqYa
Go Contact Sync Mod
Local Sync
I'm about to test Local Sync
It seems like the going rate for anything worth a look is about $20.00AUD.
Is there anything worth a look that is truly free?
What experiences have you had with free / paid solutions?
Click to expand...
Click to collapse
Just found another one...
Calendar Sync for Outlook and Google Calendar
calendar-sync/index.html (I can't post urls...pppindia.com is the site)
Free and paid versions...
Imhawaii - you joined in 2007 so took seven years to post for the first time, and got a Thanks straight up!!!:laugh:
I'll have a look at that website and explore that option too. First glance looks good - have you tested it or any other options?
MyPhoneExplorer is good for syncing calender and also contacts
gbossley said:
Imhawaii - you joined in 2007 so took seven years to post for the first time, and got a Thanks straight up!!!:laugh:
I'll have a look at that website and explore that option too. First glance looks good - have you tested it or any other options?
Click to expand...
Click to collapse
Heh heh... yeah, i know... just mostly a browser for years - but this is a hot topic for me now.
I did test it out. It 'appeared' to work. I had a weird thing happen - some of the appts ended up at different times. I.e. a 10:00 appeared at 9:00. I'm not sure if it was my email client and how it connected to google. I was using eM Client for windows because it connects directly with google cal and contacts w/o a tool (Outlook 2013 didn't like my big mailboxes0. So, I'm still trying to figure out if it was something else.
On a positive note - It didn't screw things up too bad.... i was able to 'fix' some of the issues. However, I'm not ready to fully commit.
Here was my set up WorkPC(OL2010) > sync with tool from pppindia > gmail account > home pc(eM Client).
LocalSync
I'm using this - I think the tool has potential, but it's all very manual, and the QR Code option doesn't seem to work for me - so based on how I've been using it (and it could be "operator error") I find it clunky.
You need to open the software on your PC, then open the app on the phone. Then hit the Sync button.
I'm looking for something that syncs automatically, and will pay if I have to. But as I said, I resent paying for something that really should be free!
MyPhoneExplorer
Well I downloaded the Windows client for this app last night, and woke up to a PC with "BlockandSurf" to annoy me. I can't of course be 100% certain that the source was the MyPhoneExplorer download, but it's likely. Not the best start.
However, it looks like a comprehensive (Donate if you like) app. How much or if I donate will depend on further evaluation.
First syncs seemed effective.
Now to see if it runs in background effectively...
EDIT - Dev's response - to be fair I didn't notice the option to deselect the Adware option.
Hi Gordon
MyPhoneExplorer is free but i have to pay alot of bills regarding MyPhoneExplorer, because of this you will get a additional software offer in the software - you can easily disable the installation of the ad-ware tool with a click on "Decline". The donations helps alot, but its not enough to organize all tasks related MyPhoneExplorer. There are alot Freewares which do it this way. I am not fully happy with the ads, but its the only option to handle it.
Best regards FJ
One more to add to the list
Another one to check out...
Outlook4gmail
19.99 for a license...
pppindia
FYI,
Calendar Sync from pppindia is getting updates just about everyday. Looks like they are catching the bugs very quickly. One of the issues I mentioned above has been fixed.
Try Calendar Sync +. Best replacement for Google Outlook Sync
Hi,
You can use Calendar Sync +. It is an open source utility, completely free. More features are being added with every release. You can also make suggestions to include a feature.
It syncs
- Outlook-> Google
- Google -> Outlook
- Outlook <-> Google (Bidirectional, with option to select master calendar)
Future plan includes contact and task sync.

Categories

Resources