Using JAVA RMI in Android application

Dave picture Dave · Dec 9, 2012 · Viewed 19.2k times · Source

I've read lots of threads about this issue, and i couldnt see a 'real' solution for it.

I made a java project - which is a rmi server and i have an android application which suppose to be also a rmi client.

When i checked if the server works I wasn't wise enough to test the client on an android project and i made a test client on a simple java project.

Now when i'm trying to connect my android application to server i fail because the android project doesn't recognize the java rmi package.

Why that happen? what should I do?

Answer

X.X_Mass_Developer picture X.X_Mass_Developer · Jan 22, 2013

I had the same problem and changed my communication to socket communication!

As far as I could figure out Java.rmi unfortunately does not come with Android and therefore it's not possible to use it.

However there are some more disucssions in this post.