• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Rmi on Android?

Stupid question, but what is RMI? A quick google search didn't give me a good indication of what you're talking about, based on the context. I'd love to help, but I'm not sure what you're talking about :)


It's Java RMI! it enables the programmer to create distributed Java applications, in which the methods of remote Java objects can be invoked from other Java virtual machines, possibly on different hosts!
So my problem is the following: I hava a Java Application (let's call it JA) and an Android application (let's call it AA) running on a PC. I want AA to communicate with JA but I don't know how to do since I started working with Android just last week, so I don't have a lot of experience! When you have two Java applications you can use RMI to have them communicating but with Android RMI seems not working at all!
 
Upvote 0
Hi, I've just started playing round with both Android and the google app engine(free) and while neither support RMI, they both support java reflection, I've managed to "roll my own" RMI that works over http from the android phone to a google app engine app(or anywhere else capable of running a servlet), One draw back of using google app engine as the server is all the method calls are of a static(stateless) nature as you can't guarantee that consecutive method calls will be processed on the same server/jvm.
If you would like my code, just ask and I will try and upload it here or email it to you.:)
 
  • Like
Reactions: rshnrocket85
Upvote 0
RMI sounds good but won't it achieve something similar by having web services in the form of REST? JSON format is popular and I think it should form the future. RMI to me are too troublesome when all we want is to transmit a message from A to B.

Can you imagine using RMI to get those RSS feeds? It is overkill. A simple HTTP call, the return text in some pre-defined XML format and we are done.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones