Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Share Java logic between Android and Blackberry projects?

Both Android and Blackberry apps are made in Java. Does it mean that I can code some logic interdependent to Android SDK and use it when porting the app to Blackberry?

Does anyone has experience in this field?

like image 519
sandalone Avatar asked Dec 29 '25 20:12

sandalone


2 Answers

Sure you can do it. The logic would not be different but the implementation of the logic depend upon the Platform you are choosing. In Blackberry it uses java-me but there are some limitation you can not use in Blackberry like there is no ArrayList or HashMap in Blackberry but its available in Android so you have to use some alternative of ArrayList or HashMap while porting for the Blackberry you can use Vector instead of that. There is also some limitation of using java.lang.utils package in Blackberry. May be this would be helpful for you.

like image 194
BBdev Avatar answered Jan 01 '26 10:01

BBdev


I'm working on an application that runs on both Android and Blackberry. I work only on the Android client but I know that only few things can be shared. Of course only the classes that do not have to do with the framework. Another problem is that, Blackberry uses only J2ME that means that for example you can't even use semaphore or other things like that.

In my application all the protocol level is shared though.

like image 27
kingston Avatar answered Jan 01 '26 12:01

kingston



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!