Rice Compression Algorithm Implementation on Android Apps

File compression is a solution to overcome the size of the data size. Because the current limitations of data storage media into a major consideration for application developers. On this project I want to give an example of how to implement one of the data compression algorithms on android application.
The algorithm I choose is Rice Code Algorithm.
Rice Code algorithm is an algorithm created by Robert F. Rice, which shows the use of a subset of Golomb Coding derivatives to generate a simple code that allows suboptimal of the prefix code itself. The Rice Code algorithm is used in an adaptive coding scheme, which can refer only to a subset of Golomb Coding derivatives.
This project will compress text file on an android app using that algorithm.
Minimum Requirement to Run This Project
- Requires at minimum Java 7
- Android Studio 2.3.
How to Import the Project in Android Studio?
- Open Android Studio > Open an existing Android Studio Project
- New window will opened > Browse to directory where you place AndroidApps project > Ok
- Wait for few minutes until all process import has finished.
Simulation Code Of Rice Code Algorithm
This is the example simulation code of Rice Code Algorithm . I Wrote this on Java Programming Language.
The Compression Process
Lets make a simple text to compress in our andorid phone.

Now Lets Open Our Android apps and select the compress button

Now lets click the select button than drive the file picker dialog to our sample text file
now lets fill with our file result name , then click compress button

Now The Apps Will Show the Compression Result

See the compresion result file by using our text editor program that available in your android phone. the file is ini kompresi directory
now lets click the file and see what happend
What you see is the text containing the encrypted characters using the Rice Code algorithm
Decompression Process
To Decompress the compressed file lets go to main menu and then press the decompress button.
Now you will see the decompression dialog. Press the select file folder and drive the file picker dialog to the kompresi directory,
now lets click the button and you will see the decompression time

Now lets check the file in the dekompresi folder. And See the decompression file is exacly same
GITHUB LINK
https://github.com/iqbal09/Rice-Code-Compression-Algorithm-Java-Android
PROOF OF WORK
Posted on Utopian.io - Rewarding Open Source Contributors




















Amazing information thanks alot ;)💕👏👍
Hi dude @usahil , Thanks for the support, dont forget to follow me :)
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hi, Thanks For The Approval :)
Hey @iqbalhood I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
my cousin love android development, i surely recomend this article to him