开发者

Can we use j2me packages in android and vice-versa?

Can we use j2me packages in android development? I just开发者_C百科 mean to say like for eg: sax parser is supported in both the platforms. So can we code the business logic in j2me platform and use that class in android platforms and vice-versa?

Just like this other components which are common in both platforms?


It would be possible to this for all the classes that do not depend on any of the classes/interfaces that come with Java-me or Android.

But you have to be sure to restrict all your business logic classes to comply with the JRE 1.3 specifications. That means that you need to set your compiler level to 1.3. This means that you for example can not use Generics inside your business logic (There are more things missing then generics but this is the one big thing that come to my mind right now).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜