How to Print via Bluetooth on Android

Posted on 16 Mar 2014 in android, java, printing, bluetooth by Greg E.

I was working on an application that prints an image to a bluetooth printer. This application had been working fine on Android 2.3, 3.0, and 4.0, but when we upgraded one of them to Android 4.1 jelly bean, printing stopped working.

This post describes how to print on Android 4.1+....

Read More...

Where to put Android app init code?

Posted on 19 Jan 2014 in android, java, asynctask, intents, services by Greg E.

I had the following requirements for a block of code that is used in an application:

  • All of the code should run once and only once when the app starts up
  • Some of the code should run at regular intervals after that
  • Nothing should block the UI Thread
What's the easiest and best way to do this?...

Read More...