Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 90873 invoked from network); 19 Aug 2010 02:10:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 02:10:25 -0000 Received: (qmail 78852 invoked by uid 500); 19 Aug 2010 02:10:25 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 78789 invoked by uid 500); 19 Aug 2010 02:10:24 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 78780 invoked by uid 99); 19 Aug 2010 02:10:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 02:10:24 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.p.ellison@gmail.com designates 209.85.212.49 as permitted sender) Received: from [209.85.212.49] (HELO mail-vw0-f49.google.com) (209.85.212.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 02:10:16 +0000 Received: by vws11 with SMTP id 11so1413225vws.36 for ; Wed, 18 Aug 2010 19:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=ALo2xtI7XjIVseU4giPln4FI6xuOjUMkYJtM9Ljay1w=; b=YgHF/ApOoH/5R4xNkeRxhOkBgNaKCpnLi3REBp4UWiwwEdihb36Lw7zNaxUoDk4Tkz f8tZnLDyHAO4Lm3RsTHfc+tayGuyy9mWpGrEblsyb8eZdCozjLcY9SUYvUK6T2/lhN+j 1VAq0eLcNb1l+c4HpDDDRRdnaMuZeXDSPOxnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=NHjqgdXwXi/l9wdmnAltjqRzp1jPWJbN2r7G9wF7KqYVK+TYdZ8n7l5lN4DUb1bP1N DHZOrYkLXeofHNDJAkTIDNSBzhtY6oto18lJdDT2V38LHIS/0l3wgeOhTxH6Xn33025H jo7V3JDW0C/lTRlXy8q/2Ei2Xu8Lq8abHrJZg= Received: by 10.220.124.211 with SMTP id v19mr5553388vcr.184.1282183795981; Wed, 18 Aug 2010 19:09:55 -0700 (PDT) Received: from [9.123.237.85] ([220.248.0.145]) by mx.google.com with ESMTPS id c24sm447204vcm.40.2010.08.18.19.09.53 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 19:09:55 -0700 (PDT) Message-ID: <4C6C926B.3060909@gmail.com> Date: Thu, 19 Aug 2010 03:09:47 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [legal?] Any implication in using Harmony's print module in Android? References: <000301cb3f26$d0df18a0$729d49e0$@biz> <20100818230433.E7E6A5DD@athena.apache.org> <000701cb3f35$0afc3af0$20f4b0d0$@biz> In-Reply-To: <000701cb3f35$0afc3af0$20f4b0d0$@biz> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 19/Aug/2010 01:25, Giampaolo Tomassoni wrote: >>> So, why nobody did yet do it? >>> >>> I posted a similar question in the "Android discuss" list, but nobody >>> replied. >> I'm reluctant to speculate when they chose not to answer for >> themselves. >> However, if you look at the manifest for the print.jar you will find >> that >> it imports: >> >> java.awt, >> java.awt.event, >> java.awt.font, >> java.awt.geom, >> java.awt.image, >> java.awt.image.renderable, >> java.awt.print, >> java.beans, >> java.io, >> java.lang, >> java.lang.annotation, >> java.lang.reflect, >> java.net, >> java.nio, >> java.security, >> java.text, >> java.util, >> javax.accessibility, >> javax.imageio, >> javax.swing, >> javax.swing.border, >> javax.swing.event, >> javax.swing.text, >> org.apache.harmony.awt.gl, >> org.apache.harmony.awt.gl.windows, >> org.apache.harmony.kernel.vm >> >> I'm not familiar with the set of modules that are included in Android >> but I am pretty sure some of these dependencies are not included. >> Therefore your question becomes: >> >> why nobody did yet port the print module and enough of awt, swing, >> beans, etc. to make it work? >> >> You are probably correct that porting the print module would be >> relatively trivial (since for linux it is pure java) but the same is >> likely not true of all the dependencies. > > Well, I was probably a bit too wide in scope. Porting into Android the > javax.print package means to me that only part of the package itself would > be needed. Notably, the UI stuff wouldn't. It wouldn't even need to support > any java.awt.print facility. > >>>From the application standpoint, the core classes of such a printing > facility in Android would then be the PrintServiceLookup one and its non-ui > relatives (PrintService, in example), then of course Doc, DocPrintJob, > StreamPrintService+Factory and their relatives. > > Then, the basic idea would eventually be to give access to printing from > Android using most of the features available from the well-consolidated > javax.print printing API. This is for ease of use to application coders, of > course. > > Document rendering could even use a completely different approach then the > AWT-based one, in example an application could use Apache FOP to allow > rendering in the printer's PDL. Or instead an application could simply > discover printers accepting a specific PDF (XHTML-Print, in example). > > Also, a re-packaging of the javax.print package makes of course sense to me. > > But anyway, many of the javax.print classes would be simply "stolen" from > the Harmony tree. That arose my question about legal issues. :-) You are most welcome to use any of the Harmony project's code subject to the terms of the Apache license here [1]. If you have any technical questions about the code just ask on this list. There are plenty of people to answer them (or say we don't know!) [1] http://www.apache.org/licenses/LICENSE-2.0 Regards, Tim >>> Is there any licensing issue with this? >> The license for the print module is the same as the others - ALv2. > > Which seems fine to me. > > >>> I'm quite new to the Android and Harmony world, so please forgive me >>> if I'm missing something. >> No problem. >> >> Regards, >> Mark. > > Thank you Mark. > > Giampaolo > >