Is it possible to import java.rmi.* in Android?
Asked Answered
E

2

3

I have a project on my distributed system course and we have to use the java.rmi.* on our project and I knew that android doesn't provide this library because of the dalvik VM problems. So I'm just asking is there away to use these libraries on Android ?

Thanks.

Eyeless answered 5/5, 2011 at 15:17 Comment(0)
U
2

RMI is not supported on Android. you could implement it yourself, but that's going to be a non-trivial amount of work.

Ultun answered 14/5, 2011 at 1:25 Comment(0)
O
0

RMI library is not included in Android API. That's really bad. I did a project where I need to use this feature, but couldn't do it. Unfortunately, if you google for this answer, some people tried to wrap RMI into self-defined library, but that does not work for everyone.

You are using RMI, I assume you will need access some database using RMI. Here is my solution:

  1. I built a simple java server to as a connection.

  2. I pull data from the source into the java server, use simple TCP connection to transmit data into my Android.

  3. Also, Android transmit data into my sever, and my server forward data into the source server using RMI.

Not a direct way, but it's quite easy to do so. If you want to read more, I'd include my report on how I construct this intermedia Java server. http://www.shawnfandev.com/wordpress/2014/06/07/ibm-cognos-admin-android/

Good luck!

Oxeyed answered 24/7, 2014 at 20:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.