Server socket programming in Android 1.5, most power efficient way?
Posted
by Antek
on Stack Overflow
See other posts from Stack Overflow
or by Antek
Published on 2009-12-02T10:17:12Z
Indexed on
2010/03/20
18:51 UTC
Read the original article
Hit count: 814
Hello people,
I am doing a project where I have too develop an application that listens for incoming events by a service. The device that has to listen too events is an Android phone with Android SDK 1.5 on it. Currently the services that call events only implement communication trough UDP or TCP sockets. I can solve my problem by setting up a ServerSocket, but i doubt that's the most power efficient way. This application will be running most of the time, with Wi-Fi on, and I'd like too reach an long battery duration. I've been looking for options on the internet for my question for a while but i couldn't get a real answer. I've got the following questions:
- What is the most efficient way too listen to incoming events? Should I make an ServerSocket? or what are my options?
- Are there any other implementations that are more power efficient?
Ive been also thinking of implementing communication trough XMPP. Not sure if this is the best way. I'm not forced too an specific implementation. All suggestions are welcome!
Thanks for the help,
Antek
© Stack Overflow or respective owner