Android and Protocol Buffers
Posted
by spaceboy2000
on Stack Overflow
See other posts from Stack Overflow
or by spaceboy2000
Published on 2009-11-12T16:14:07Z
Indexed on
2010/04/20
18:13 UTC
Read the original article
Hit count: 464
I am writing an Android application that would both store data and communicate with a server using protocol buffers. However, the stock implementation of protocol buffers compiled with the LITE flag (in both the JAR library and the generated .java files) has an overhead of ~30 KB, where the program itself is only ~30 KB. In other words, protocol buffers doubled the program size.
Searching online, I found a reference to an Android specific implementation. Unfortunately, there seems to be no documentation for it, and the code generated from the standard .proto file is incompatible with it. Has anyone used it? How do I generate code from a .proto file for this implementation? Are there any other lightweight alternatives?
© Stack Overflow or respective owner