pelya / android-print-plugin-cups

CUPS print plugin for Android
GNU Lesser General Public License v3.0
93 stars 36 forks source link

android-print-plugin-cups

CUPS print plugin for Android.

There are many other print plugins like this one, however I did not find any open-source plugins, most of them have outrageous prices, and the only free plugin failed to work with Android printing framework.

In my opinion, printing support shall be a freely-available part of the OS, that's also the reason why I chose GPL as a license for this plugin.

This plugin unpacks minimal Debian installation with CUPS included, and launches it using PRoot, then uses it for actual printing.

To generate Debian image, download repo https://github.com/pelya/cuntubuntu and launch script img-cups-jessie.sh from img directory.

You will need to do this from Debian/Ubuntu, and install few packages, specified in it's readme file.

PRoot can be downlaoded from http://proot.me/

Other than these things, the plugin contains only Java code, and no other magic.

There is no JNI or other weird stuff - Java code just calls lp, lpinfo, lpadmin etc commandline tools.

I hate Java and dislike IDEs, so you'll have to put up with my coding style, sorry. Don't ask me how to import this project into Android Studio or Eclipse.

TODO: