Mendeley Android Client: now implemented as a user account with sync

Originally published on eve.gd on 5 January 2011, last updated 6 September 2026.

Read this post on the web (with images, PDF and citation details)

As I made rapid initial progress on the prototype of the Mendeley Client for Android, I started to think about the design. In order to minimize hits on the API, as well as for speedy browsing, it doesn't make sense for the UI to be initiating API calls at every turn. Instead, it would be better, I decided, to implement this via a synchronization service. Unfortunately, this required massive code changes (and I am much indebted to these two articles for their advice) which have taken me a long time to refactor. While this is a little disappointing (I'd hoped to have the library displaying today), it's a far better structure for sustainable development.

two
articles

However, this part is done!

I now have a system that will let you add an account, will check the authentication tokens, refresh them automatically when they expire (well, it will with not much more effort). The next thing to do is to create SQLLite database tables that will hold the synced data and perform the sync once per hour.

If you are interested in how I developed this, the Google Code repository holds the latest efforts.

Google Code repository

The exciting news for tomorrow is that I am scheduled in for a phone call with Jason Hoyt, the Vice-President, R&D and Chief Scientist, of Mendeley, to discuss how the API can better serve the community.

Jason Hoyt

References

This reference list has been generated, in many cases, through an automated process and may therefore contain errors or incomplete metadata. It is provided purely as assistance for finding the items mentioned within this post.

1. Mendeley for Android Google Code repository <http://code.google.com/p/mendeley-for-android/>

2. ‘Writing an Android Sync Provider: Part 1’, Did You Win Yet? <http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/>

3. ‘Writing an Android Sync Provider: Part 2’, Did You Win Yet? <http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/>

http://code.google.com/p/mendeley-for-android/
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/