Distributed Android Application

I am trying to break an Android application in order to partially execute it on the phone and partially on the server (an emulator may be running on the server). I read that RMI is not supported by android. I am going to do this as a client-server architecture where the emulator runs in eclipse. So is it possible to achieve this project? Any ideas are much appreciated.

thanks.

+6
source share
2 answers

It’s completely normal for Android devices to talk to servers that store data and run business logic. Mobile devices usually talk to servers through web services, the most popular being REST + JSON. Implementations:

  • Server. The code should talk to the database, execute business logic and transfer data to devices via REST + JSON. The implementation depends on your knowledge of languages ​​/ platforms.

  • Android calls REST services and processes returned by JSON data. Use HttpClient to call REST and GSON to parse the returned JSON data.

0
source

You will have much more success using a standard server for unloading a heavy lift. My experience with the Android emulator is that it processes tasks more than twice as slowly as my tasks on the phone do, assuming that you will not actually get a performance boost by offloading the work to the emulator.

If you use a standard Java server that does this work, you will find that it provides much greater gains.

0
source

Source: https://habr.com/ru/post/887313/


All Articles