<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Coltware - AIR/Flex/ActionScript 3</title>
	<atom:link href="http://flex.coltware.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex.coltware.com</link>
	<description>AIR/Flex/ActionScript blog</description>
	<lastBuildDate>Tue, 06 Mar 2012 03:54:41 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ane: Sample App for java application runs on Windows AIR</title>
		<link>http://flex.coltware.com/2012/03/06/ane-sample-java-on-ai/</link>
		<comments>http://flex.coltware.com/2012/03/06/ane-sample-java-on-ai/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 03:54:28 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[ANE]]></category>
		<category><![CDATA[ANEj]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Netty]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=217</guid>
		<description><![CDATA[I made AIR Native Extension that can run java applications on Windows AIR.
The following image is a capture.

You can download the sample application on
http://code.google.com/p/anej/downloads/list
How to use

Please set jvm.dll path on your pc. Maybe 64bit Java doesn&#8217;t work well. So please set 32bit jvm.dll
Skip class name so far. I will explain 
Push start button. When you  [...]]]></description>
			<content:encoded><![CDATA[<p>I made AIR Native Extension that can run java applications on Windows AIR.</p>
<p>The following image is a capture.</p>
<p><a href="http://www.coltware.com/wp-content/uploads/2012/03/anewin.png"><img src="http://www.coltware.com/wp-content/uploads/2012/03/anewin.png" alt="" title="anewin" width="512" height="408" class="alignnone size-full wp-image-2553" /></a></p>
<p>You can download the sample application on<br />
<a href="http://code.google.com/p/anej/downloads/list">http://code.google.com/p/anej/downloads/list</a></p>
<h5>How to use</h5>
<ol>
<li>Please set jvm.dll path on your pc. Maybe 64bit Java doesn&#8217;t work well. So please set 32bit jvm.dll</li>
<li>Skip class name so far. I will explain </li>
<li>Push start button. When you can see &#8220;java vm start&#8221; message, It means java vm start well.</li>
<li>Push call button, then you can see current time strings on the screen.<br />
      The time was provided by java application.</br><br />
      If you access http://localhost:9991/ , then you can see current time strings on your browser.
  </li>
<li>Push stop button, then java vm will be destroyed. </li>
</ol>
<h5>Inside a little</h5>
<p>Please see the folder you installed the application.<br />
Then you can see the following files or directory.</p>
<p>classes<br />
|- log4j.xml<br />
libs<br />
|- *.jar</p>
<p>ANEj ( I named  ) will call the following static method in the class you specified.<br />
static boolean init();<br />
static boolean start();<br />
static boolean stop();</p>
<p>So If you want to try another java program,<br />
Please change or add classes / *.jar.<br />
( If you put some.jar on libs folder, the sample application add some.jar on the java classpath )</p>
<p>I will start ANEj project on Google Code, and add c code and as code in the near term. </p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li><li>04/21/2011 -- <a href="http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/" title="airxmail: release V0.7 ">airxmail: release V0.7 </a> (2)</li><li>02/02/2011 -- <a href="http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/" title="air: using syslog output for Adobe AIR">air: using syslog output for Adobe AIR</a> (0)</li><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2012/03/06/ane-sample-java-on-ai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxzip:Unzip Directory or File</title>
		<link>http://flex.coltware.com/2012/02/25/airxzip-directory-and-file/</link>
		<comments>http://flex.coltware.com/2012/02/25/airxzip-directory-and-file/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 07:21:53 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxzip]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=211</guid>
		<description><![CDATA[ZipFileReader class can NOT make directory or file.
So you should make directory or file according to ZipEntry.isDirectory() method.
[as3]
var file:File = File.desktopDirectory.resolvePath(&#8220;sample.zip&#8221;);
var reader:ZipFileReader = new ZipFileReader();
reader.open(file);
var fileList:Array = reader.getEntries();
var baseDir:File = File.documentsDirectory();
for each(var entry:ZipEntry in fileList){
	var filename:String = entry.getFilename();
	if(entry.isDirectory()){
		//  If entry is directory
		var dir:File = baseDir.resolvePath(filename);
		dir.createDirectory();
	}
	else{
		var unzippedBytes:ByteArray = reader.unzip(entry);
		var file:File = baseDir.resolvePath(filename);
		var fs:FileStream = new  [...]]]></description>
			<content:encoded><![CDATA[<p>ZipFileReader class can NOT make directory or file.<br />
So you should make directory or file according to ZipEntry.isDirectory() method.</p>
<p>[as3]<br />
var file:File = File.desktopDirectory.resolvePath(&#8220;sample.zip&#8221;);</p>
<p>var reader:ZipFileReader = new ZipFileReader();<br />
reader.open(file);<br />
var fileList:Array = reader.getEntries();<br />
var baseDir:File = File.documentsDirectory();</p>
<p>for each(var entry:ZipEntry in fileList){<br />
	var filename:String = entry.getFilename();</p>
<p>	if(entry.isDirectory()){<br />
		//  If entry is directory<br />
		var dir:File = baseDir.resolvePath(filename);<br />
		dir.createDirectory();<br />
	}<br />
	else{<br />
		var unzippedBytes:ByteArray = reader.unzip(entry);<br />
		var file:File = baseDir.resolvePath(filename);<br />
		var fs:FileStream = new FileStream(FileMode.WRITE);<br />
		fs.writeBytes(unzippedBytes,0,unzippedBytes.length);<br />
		fs.close();<br />
	}<br />
}<br />
reader.close();<br />
[/as3]</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>05/03/2011 -- <a href="http://flex.coltware.com/2011/05/03/airxzip-unzipasync/" title="airxzip: how to use unzipAsync() method ">airxzip: how to use unzipAsync() method </a> (2)</li><li>05/06/2010 -- <a href="http://flex.coltware.com/2010/05/06/actionscript3-how-to-make-unix-zip-file-on-windows-airxzip/" title="actionscript3: How to make Unix zip file on Windows ( airxzip )">actionscript3: How to make Unix zip file on Windows ( airxzip )</a> (1)</li><li>01/12/2011 -- <a href="http://flex.coltware.com/2011/01/12/androidconvert-oreilly-ebook-appfileapk-to-epub-file/" title="android:convert o’reilly ebook appfile(apk) to epub file.">android:convert o’reilly ebook appfile(apk) to epub file.</a> (0)</li><li>05/01/2010 -- <a href="http://flex.coltware.com/2010/05/01/as3-zip-unzip-lib-airxzip/" title="actionscript3: Zip/Unzip library for AIR">actionscript3: Zip/Unzip library for AIR</a> (8)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2012/02/25/airxzip-directory-and-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Started to develop Mail WEB API Server</title>
		<link>http://flex.coltware.com/2012/01/12/mail-web-api-server/</link>
		<comments>http://flex.coltware.com/2012/01/12/mail-web-api-server/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 03:13:03 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Yahoo Mail Server]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=201</guid>
		<description><![CDATA[I started to develop Mail WEB API server.
I inspired by Yahoo Mail Service.
It doesn&#8217;t depends on Any specific mail service.
So you can choose Gmail , Yahoo mail , Any other SMTP/IMAP4/POP3 server. 
I&#8217;d like to show the demo implementation until April 2012.
The following picture is technical stack so far.
 
The feature plan
* Text EventStream connection  [...]]]></description>
			<content:encoded><![CDATA[<p>I started to develop Mail WEB API server.<br />
I inspired by <a href="http://developer.yahoo.com/mail/" target="_blank">Yahoo Mail Service</a>.<br />
It doesn&#8217;t depends on Any specific mail service.<br />
So you can choose Gmail , Yahoo mail , Any other SMTP/IMAP4/POP3 server. </p>
<p>I&#8217;d like to show the demo implementation until April 2012.</p>
<p>The following picture is technical stack so far.</p>
<p><a href="http://flex.coltware.com/wp-content/uploads/2012/01/20120106.png"><img src="http://flex.coltware.com/wp-content/uploads/2012/01/20120106.png" alt="" title="20120106" width="600" height="239" class="alignnone size-full wp-image-202" /></a> </p>
<h5>The feature plan</h5>
<p>* Text EventStream connection for server push event.<br />
   etc ) to know new incoming mail<br />
* Auto-reconnect for POP3/IMAP4<br />
   ( Username/Password saved instance memory )<br />
* use Database System.<br />
* ActionScript Client API<br />
* Network layer authority<br />
  Example:<br />
　If you see messages from LAN , No limitation exists.<br />
  But you see messages from Internet, You can&#8217;t download any attachments files.<br />
  Or you can&#8217;t see very important message.<br />
  etc, etc..<br />
* Full text-index search</p>
<h5>Requirement:</h5>
<p> Java :<br />
  Not work on Android so far. But I don&#8217;t want to use the library that does NOT support to work on Android.<br />
  So I don&#8217;t use Tomcat or Any J2EE application server.<br />
 DB:<br />
    MySQL, PostgreSQL, Apache Derby, H2, SQLite</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>03/17/2010 -- <a href="http://flex.coltware.com/2010/03/17/mail-attachements-airxmail-smtp/" title="actionscript 3 : how to send email attachements ( use airxmail library) ">actionscript 3 : how to send email attachements ( use airxmail library) </a> (27)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2012/01/12/mail-web-api-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxmail:need info about airxmail and ipad</title>
		<link>http://flex.coltware.com/2011/11/10/airxmail-ipad/</link>
		<comments>http://flex.coltware.com/2011/11/10/airxmail-ipad/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 14:14:21 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=197</guid>
		<description><![CDATA[I need information whether airxmail work well on ipad or not.
Recently I got same question from some peoples. in Japan and us and etc&#8230;
They says.
airxmail work well on ipad simulator, but does NOT work well on real ipad.
But I don&#8217;t have ipad or iphone.
So I need information.
If somebody have any information,
Please write comment or send  [...]]]></description>
			<content:encoded><![CDATA[<p>I need information whether airxmail work well on ipad or not.</p>
<p>Recently I got same question from some peoples. in Japan and us and etc&#8230;<br />
They says.<br />
airxmail work well on ipad simulator, but does NOT work well on real ipad.<br />
But I don&#8217;t have ipad or iphone.<br />
So I need information.</p>
<p>If somebody have any information,<br />
Please write comment or send me e-mail.</p>
<p>Regards</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>11/22/2010 -- <a href="http://flex.coltware.com/2010/11/22/airxmail-and-imap4/" title="airxmail: IMAP4 draft implementation">airxmail: IMAP4 draft implementation</a> (19)</li><li>11/19/2010 -- <a href="http://flex.coltware.com/2010/11/19/airxmail-how-to-get-mail-attachemnt-files/" title="airxmail: How to get mail attachemnt files">airxmail: How to get mail attachemnt files</a> (8)</li><li>08/25/2010 -- <a href="http://flex.coltware.com/2010/08/25/airxmail-plain-text-mail-with-attachments/" title="airxmail: plain text mail with attachments">airxmail: plain text mail with attachments</a> (25)</li><li>04/22/2011 -- <a href="http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/" title="airxmail: How to save e-mail to local file and re-parse the data">airxmail: How to save e-mail to local file and re-parse the data</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/11/10/airxmail-ipad/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AIR:Update GravityMail( Mail Client Application)</title>
		<link>http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/</link>
		<comments>http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 03:53:57 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[airxzip]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[Mail Client]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=191</guid>
		<description><![CDATA[I updated Gravity Mail.
This version features is &#8220;Tag&#8221; based management messages.
I want to make e-mail client application like my blog site using e-mail for my private purposes.
This page is Gravity Mail information page in Japanese.
But some images help you to understand it. I hope&#8230;.
Related Posts07/10/2011 -- Mail Client Application on Adobe AIR (0)04/21/2011 -- airxmail:  [...]]]></description>
			<content:encoded><![CDATA[<p>I updated Gravity Mail.<br />
This version features is &#8220;Tag&#8221; based management messages.</p>
<p>I want to make e-mail client application like my blog site using e-mail for my private purposes.<br />
<a href="http://www.coltware.com/labo/gravitymail/" target="_blank">This page</a> is Gravity Mail information page in Japanese.<br />
But some images help you to understand it. I hope&#8230;.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li><li>04/21/2011 -- <a href="http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/" title="airxmail: release V0.7 ">airxmail: release V0.7 </a> (2)</li><li>03/07/2010 -- <a href="http://flex.coltware.com/2010/03/07/airxmail-google-buzz/" title="Airxmail &#8211; sample for google gmail buzz">Airxmail &#8211; sample for google gmail buzz</a> (5)</li><li>03/06/2012 -- <a href="http://flex.coltware.com/2012/03/06/ane-sample-java-on-ai/" title="ane: Sample App for java application runs on Windows AIR">ane: Sample App for java application runs on Windows AIR</a> (0)</li><li>04/01/2011 -- <a href="http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/" title="airxmail:How to get html part of e-mail message">airxmail:How to get html part of e-mail message</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mail Client Application on Adobe AIR</title>
		<link>http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/</link>
		<comments>http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 20:13:00 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[airxzip]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[Mailer]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=174</guid>
		<description><![CDATA[I am making e-mail client application using Adobe AIR.
Please see the details.
But this application is in development.
Related Posts07/25/2011 -- AIR:Update GravityMail( Mail Client Application) (2)04/21/2011 -- airxmail: release V0.7  (2)03/07/2010 -- Airxmail &#8211; sample for google gmail buzz (5)03/06/2012 -- ane: Sample App for java application runs on Windows AIR (0)04/01/2011 -- airxmail:How to  [...]]]></description>
			<content:encoded><![CDATA[<p>I am making e-mail client application using Adobe AIR.<br />
Please see the <a href="/air-gravity-mail">details.</a></p>
<p>But this application is in development.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>04/21/2011 -- <a href="http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/" title="airxmail: release V0.7 ">airxmail: release V0.7 </a> (2)</li><li>03/07/2010 -- <a href="http://flex.coltware.com/2010/03/07/airxmail-google-buzz/" title="Airxmail &#8211; sample for google gmail buzz">Airxmail &#8211; sample for google gmail buzz</a> (5)</li><li>03/06/2012 -- <a href="http://flex.coltware.com/2012/03/06/ane-sample-java-on-ai/" title="ane: Sample App for java application runs on Windows AIR">ane: Sample App for java application runs on Windows AIR</a> (0)</li><li>04/01/2011 -- <a href="http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/" title="airxmail:How to get html part of e-mail message">airxmail:How to get html part of e-mail message</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxzip: how to use unzipAsync() method</title>
		<link>http://flex.coltware.com/2011/05/03/airxzip-unzipasync/</link>
		<comments>http://flex.coltware.com/2011/05/03/airxzip-unzipasync/#comments</comments>
		<pubDate>Tue, 03 May 2011 02:11:16 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[airxzip]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[unzipAsync]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=169</guid>
		<description><![CDATA[[as3]
var zipReader:ZipFileReader = new ZipFileReader();
zipReader.addEventListener(ZipEvent.ZIP_DATA_UNCOMPRESS,uncompressData);
zipReader.open(file);
var entries:Array = zipReader.getEntries();
for(var i:int = 0; i]]></description>
			<content:encoded><![CDATA[<p>[as3]<br />
var zipReader:ZipFileReader = new ZipFileReader();<br />
zipReader.addEventListener(ZipEvent.ZIP_DATA_UNCOMPRESS,uncompressData);<br />
zipReader.open(file);<br />
var entries:Array = zipReader.getEntries();<br />
for(var i:int = 0; i<entries.length; i++){<br />
     var entry:ZipEntry = entries[i] as ZipEntry;<br />
     zipReader.unzipAsync(entry);<br />
}<br />
[/as3]</p>
<p>sample unzipAsync event handler<br />
( save file )<br />
[as3]<br />
private function uncompressData(e:ZipEvent):void{<br />
    var entry:ZipEntry = e.entry;<br />
    var file:File = dir.resolvePath(entry.getFilename());<br />
    var fs:FileStream = new FileStream();<br />
    fs.open(file,FileMode.WRITE);<br />
    fs.writeBytes(e.data);<br />
    fs.close();<br />
}<br />
[/as3]</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>02/25/2012 -- <a href="http://flex.coltware.com/2012/02/25/airxzip-directory-and-file/" title="airxzip:Unzip Directory or File">airxzip:Unzip Directory or File</a> (2)</li><li>05/06/2010 -- <a href="http://flex.coltware.com/2010/05/06/actionscript3-how-to-make-unix-zip-file-on-windows-airxzip/" title="actionscript3: How to make Unix zip file on Windows ( airxzip )">actionscript3: How to make Unix zip file on Windows ( airxzip )</a> (1)</li><li>05/01/2010 -- <a href="http://flex.coltware.com/2010/05/01/as3-zip-unzip-lib-airxzip/" title="actionscript3: Zip/Unzip library for AIR">actionscript3: Zip/Unzip library for AIR</a> (8)</li><li>01/12/2011 -- <a href="http://flex.coltware.com/2011/01/12/androidconvert-oreilly-ebook-appfileapk-to-epub-file/" title="android:convert o’reilly ebook appfile(apk) to epub file.">android:convert o’reilly ebook appfile(apk) to epub file.</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/05/03/airxzip-unzipasync/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to debug application on Adobe Android AIR ( Android phone )</title>
		<link>http://flex.coltware.com/2011/04/27/debug-app-on-android-air/</link>
		<comments>http://flex.coltware.com/2011/04/27/debug-app-on-android-air/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 03:47:49 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[rsyslog]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[TCPSyslogTarget]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=163</guid>
		<description><![CDATA[Recently, I started developing application on Adobe Android AIR.
But I wonder how I can debug my application on Android Phone.
I searched it, but many solutions can&#8217;t fit my case.
My requirements are
1 ) No USB connection
2 ) No Android SDK on my PC.
3 ) Can support on production mode ( No debug player )
In other words,  [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I started developing application on Adobe Android AIR.<br />
But I wonder how I can debug my application on Android Phone.</p>
<p>I searched it, but many solutions can&#8217;t fit my case.<br />
My requirements are<br />
1 ) No USB connection<br />
2 ) No Android SDK on my PC.<br />
3 ) Can support on production mode ( No debug player )</p>
<p>In other words, The limitations move to outer enviroment from app and android phone.<br />
And I want to control the outer environment.</p>
<h4>My solution</h4>
<h5>Requirements</h5>
<p>1 ) Need syslog server that can support TCP connetcion ( these are &#8220;rsyslog&#8221; or  &#8220;syslog-ng&#8221; as I know )<br />
2 ) TCPSyslogTarget as3 class ( can download on <a href="http://code.google.com/p/airxlib/downloads/list">airxlib_log</a> )<br />
3 ) Wifi connection ( optional )<br />
&#8220;optional&#8221; means .. I don&#8217;t think it is easy to make syslog server on the global network.</p>
<h5>setup syslog server</h5>
<p>The following config is a part of &#8220;rsyslog.conf&#8221;.</p>
<pre>
$ModLoad imtcp.so
$InputTCPServerRun 514
$AllowedSender TCP, 127.0.0.1, 192.168.1.0/24
:
local1.*                                                /var/log/air.log
</pre>
<h5>setup logging functions on your source code</h5>
<p>[as3]<br />
import com.coltware.airxlib.log.TCPSyslogTarget;</p>
<p>//  my syslog server&#8217;s ip is &#8220;192.168.1.5&#8243;. please change </p>
<p>var syslog:TCPSyslogTarget = new TCPSyslogTarget(&#8220;192.168.1.5&#8243;);<br />
syslog.program = &#8220;AdobeAIR&#8221;;<br />
syslog.filters = ["*"];<br />
syslog.level = LogEventLevel.DEBUG;<br />
syslog.facility = TCPSyslogTarget.LOG_LOCAL1;<br />
syslog.includeCategory = true;<br />
Log.addTarget(syslog);<br />
[/as3]</p>
<p>use flex logging functions.<br />
[as3]<br />
import mx.logging.ILogger;<br />
import mx.logging.Log;</p>
<p>private static var log:ILogger = Log.getLogger(&#8220;foofoo&#8221;);<br />
log.debug(&#8220;mmmmmm&#8230;.&#8221;);<br />
[/as3]</p>
<p>At first, I tried to use UDP connection. But I can&#8217;t. ( I don&#8217;t know the reason )</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>02/02/2011 -- <a href="http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/" title="air: using syslog output for Adobe AIR">air: using syslog output for Adobe AIR</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/27/debug-app-on-android-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxmail: How to save e-mail to local file and re-parse the data</title>
		<link>http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/</link>
		<comments>http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 03:31:07 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[airxmail]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[parse file]]></category>
		<category><![CDATA[save file]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=159</guid>
		<description><![CDATA[Save e-mail to local file
[as3]
private function handleMessage(event:IMessageEvent):void{
　var msg:MimeMessage = event.getMimeMessage();
　var file:File = File.desktopDirectory.resolvePath(&#8220;mail_&#8221; + msg.messageId + &#8220;.eml&#8221;);
　var fs:FileStream = new FileStream();
　fs.open(file,FileMode.WRITE);
　fs.writeBytes(event.source);
　fs.close();
}
[/as3]
Re-parse and make MimeMessage from local file
The following example is required v0.7 or more.
[as3]
// var dir:File = File.someDirectoryYouWantToUse
var list:Array = dir.getDirectoryListing();
var length:int = list.length;
for(var i:int = 0; i]]></description>
			<content:encoded><![CDATA[<h5>Save e-mail to local file</h5>
<p>[as3]<br />
private function handleMessage(event:IMessageEvent):void{</p>
<p>　var msg:MimeMessage = event.getMimeMessage();<br />
　var file:File = File.desktopDirectory.resolvePath(&#8220;mail_&#8221; + msg.messageId + &#8220;.eml&#8221;);</p>
<p>　var fs:FileStream = new FileStream();<br />
　fs.open(file,FileMode.WRITE);<br />
　fs.writeBytes(event.source);<br />
　fs.close();<br />
}<br />
[/as3]</p>
<h5>Re-parse and make MimeMessage from local file</h5>
<p>The following example is required v0.7 or more.</p>
<p>[as3]<br />
// var dir:File = File.someDirectoryYouWantToUse</p>
<p>var list:Array = dir.getDirectoryListing();<br />
var length:int = list.length;<br />
for(var i:int = 0; i<length; i++){<br />
	var file:File = list[i];<br />
        if(!file.isDirectory){<br />
	        var fs:FileStream = new FileStream();<br />
	        fs.openAsync(file,FileMode.READ);<br />
	        fs.open(file,FileMode.READ);</p>
<p>	        var parser:MailParser = new MailParser();<br />
	        var msg:MimeMessage = parser.parseStream(fs);<br />
	        var text:String = msg.bodyText;</p>
<p>	        log.debug("subject : [" + msg.subjectUTF8 + "]");<br />
	        log.debug(text);</p>
<p>	       fs.close();<br />
	}<br />
}<br />
[/as3]</p>
<p><a href="http://code.google.com/p/airxmail/downloads/list" target="_blank">download airxmail</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>11/10/2011 -- <a href="http://flex.coltware.com/2011/11/10/airxmail-ipad/" title="airxmail:need info about airxmail and ipad">airxmail:need info about airxmail and ipad</a> (5)</li><li>04/01/2011 -- <a href="http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/" title="airxmail:How to get html part of e-mail message">airxmail:How to get html part of e-mail message</a> (3)</li><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>01/12/2011 -- <a href="http://flex.coltware.com/2011/01/12/airxmail-how-to-use-starttls-extension-to-smtp2/" title="airxmail: How to use STARTTLS extension to SMTP(2)">airxmail: How to use STARTTLS extension to SMTP(2)</a> (3)</li><li>12/03/2010 -- <a href="http://flex.coltware.com/2010/12/03/airxmail-how-to-use-starttls-command/" title="airxmail: How to use STARTTLS extension to SMTP">airxmail: How to use STARTTLS extension to SMTP</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>airxmail: release V0.7</title>
		<link>http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/</link>
		<comments>http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 17:52:50 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[airxmail]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[imap4]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=154</guid>
		<description><![CDATA[I released airxmail version 0.7.
New feature
IMAP4
If you use draft implementation, please change this version.
google code download
Related Posts11/22/2010 -- airxmail: IMAP4 draft implementation (19)07/25/2011 -- AIR:Update GravityMail( Mail Client Application) (2)07/10/2011 -- Mail Client Application on Adobe AIR (0)01/22/2011 -- airxmail: How to know the communication between server and Airxmail. (0)11/19/2010 -- airxmail: How to get  [...]]]></description>
			<content:encoded><![CDATA[<p>I released airxmail version 0.7.</p>
<h3>New feature</h3>
<p>IMAP4</p>
<p>If you use draft implementation, please change this version.</p>
<p><a href="http://code.google.com/p/airxmail/downloads/list">google code download</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>11/22/2010 -- <a href="http://flex.coltware.com/2010/11/22/airxmail-and-imap4/" title="airxmail: IMAP4 draft implementation">airxmail: IMAP4 draft implementation</a> (19)</li><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>11/19/2010 -- <a href="http://flex.coltware.com/2010/11/19/airxmail-how-to-get-mail-attachemnt-files/" title="airxmail: How to get mail attachemnt files">airxmail: How to get mail attachemnt files</a> (8)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

