XML-RPC on Android Tablet (battery consumption)

116 Views Asked by At

I want to implement a XML-RPC server on an android tablet. I have read some about web services and their great battery consumption.

How big is the battery comsumption with a XML-RPC server? Is it to big for a mobile device?

2

There are 2 best solutions below

1
On BEST ANSWER

XML-RPC require HTTP server and XML-RPC requests handler.

For HTTP server, you can use some small HTTP server, like NanoHTTPD It has all the features, required on implement XML-RPC and it's very good suited for mobile devices. Memory, CPU and battery consumption by NanoHTTPD is minimal.

Battery consumption depends on how many requests you will have. If you will issue request every second, it will drain battery signifantly.

1
On

It depends on how often you make calls to your server. With a smart caching management, and correct usage, battery should be good.