Code Monkey home page Code Monkey logo

printinginandroid's Introduction

Introduction

From this tutorial you will learn how to print with POS printer from android app. Sometimes you might need to print something from your android app. Yes, it's challenging job to add printing feature but it is not impossible. Recently I've added printing feature in one of my native android apps. I needed to print money receipt after each sales. So I bought a POS printer because POS printer is widely used to print receipt. The POS printer should have blueetooth or Wifi connectivity option. In this tutorial I will show you how to connect a POS printer through bluetooth connection.

Prerequisite

  • A POS printer. I have used RONGTA RPP200. http://www.rongtatech.com/products-look-58.html.
  • RTDriver.jar - this API file is provided by RONGTA. RONGTA is the company from whom I bought the printer. This API makes my priting task much easier. It is very easy to set alignment, line spacing, font enlargement, line feeding and so on. Sending printing command to the printer is also very easy with this API.

Project Description

The project contains two user interfaces. One for connecting with printer and for printing sales receipt.The other one is for scanning the available bluetooth devices. I've put as many comments as possible in the project. I hope you will easily understand the code if you have prior knowledge on android development.

printinginandroid's People

Contributors

shohrabuddin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.