Skip navigation
Currently Being Moderated

printjob not working for android?

Apr 11, 2012 10:03 PM

Tags: #air #3.0 #android #actionscript

Hi Folks,


I have a web application, wherein i am using Printjob class to print my flash content over the connected printer.


While browsing the application on web browser (desktop) it opens a print dailog box which is fine, but same application while browsing from android devices is not working..


I am publishing the content using less than the 10.2 version of the flash player.


any idea??


Thanks in advance.!!



Below is the code:


import flash.printing.PrintJob;
import flash.display.Sprite;
var myPrintJob:PrintJob = new PrintJob();
var mySprite:Sprite = new Sprite();;, 100, 50);
function BasicPrintExample()
  if (myPrintJob.start())
  catch (e:Error)
  // handle error 
bt.addEventListener(MouseEvent.CLICK, btnClickHandler)
function btnClickHandler(evt)
  • Currently Being Moderated
    Apr 12, 2012 1:03 AM   in reply to ddhiru

    from the PrintJob API


    Mobile Browser Support: This class is not supported in mobile browsers.

    AIR profile support: This feature is supported on all desktop operating systems, but it is not supported on mobile devices or AIR for TV devices. You can test for support at run time using the PrintJob.isSupported property. See AIR Profile Support for more information regarding API support across multiple profiles.

    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 1:49 AM   in reply to ddhiru

    I don't think you are going to be able to print anything directly from and Android AIR app. Although there are applications out there printing I assume they are all native.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points