Reputation: 113
I'm working in a Java-oriented shop and we're starting to adapt our products to mobile devices now (mainly focusing on smart phones). A separate native app is already in the works for the iPhone, but we would like to make a generic Java/J2ME version for any other devices.
My question is, how feasible is this? And where is the divergence point generally? ie We don't mind if each device has some variation in it's specific Java toolkit and they require separate builds, and thus all we can have is just have some basic framework stuff in common underneath. We're just trying to architect this in such a way that as much of the basic framework can be re-used as possible.
The main target platforms we're looking at are Android, Symbian, and generic Java-enabled mobile devices.
Anyone have any advice, pointers, or good links they can point me at?
Upvotes: 1
Views: 452
Reputation: 10580
Well, if you build a web application, all you can do is to do some modifications to adapt it to mobile browsers (if you design it well, there will be only css modifications).
Since you're talking about a shop, it makes totally sense to be online.
I would follow this path.
Upvotes: 1
Reputation: 7385
In my work we have a common Java code base that is used in J2ME, Android and BlackBerry and we have had to address some significant issues:
SaveData
class, instead of SaveToRMS
in J2ME and SaveFile
in Symbian. That way you are encapsulating platform dependent implementation while making it easier for the developer to know whats happening in the class.Upvotes: 1
Reputation: 46844
The biggest divergence point will be the UI. You will need an entirely seperate UI for an Android App vs. a J2ME app.
If your app does not depend on any hardware components, client side databases, etc. you should be able to reuse any other data model/ backend processing classes.
Upvotes: 3