Android data compression (except java.util.zip?)

I have a lot of data (text format) to send from the device. That obviously means I have to squeeze it. But my question is, are there any ways to do this other than using a zip algorithm ( like this ). The reason I ask this question is here for a text file, i.e. 7-zip twice (!) Better than zip. This is a significant gain. And perhaps there are even better algorithms.

So, are there any efficient ways to compress data (better than zip) for Android?

+5
source share
2 answers

You will need to compile another library into your code, since I doubt that compression algorithms other than zlib are available as part of the standard Android libraries.

The 7-zip algorithm you are referring to is actually called LZMA, which you can get in the form of a library in the LZMA SDK . The source code is available in both Java and C. If you can associate C code with your application, this would be preferable for speed.

, , . LZMA . LZMA zlib , , , , , .

, , , zlib, lz4.

+6

.

, Java C/++ ( NDK). , , SDK. , , . , HTTP gzip .

, , .

-1

All Articles