Logic code reuse between apps for Android and other platforms: To ContentProvider or not to ContentProvider?
I'm developing an app which I want to make available both for Android and Blackberry (possibly to JavaME in the future). The business logic will be common to all the platforms - and hence, so will the corresponding layer in code. But I also have a data layer - which will obviously be different to the various platforms. My approach to this is to have a bean and an abstract DataStore class. If I were using Android's NotePad sample, it would look like this: Note Bean: public class Note { private long id; private String title; private String note; private long created; private long modified; /