<?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>MoDoFo.println(" &#187; j2me</title>
	<atom:link href="http://zhangv.com/archives/tag/j2me/feed" rel="self" type="application/rss+xml" />
	<link>http://zhangv.com</link>
	<description>Life for Idea - forever young</description>
	<lastBuildDate>Wed, 01 Sep 2010 10:44:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>how big should the byte array be in java me(j2me)</title>
		<link>http://zhangv.com/archives/1020</link>
		<comments>http://zhangv.com/archives/1020#comments</comments>
		<pubDate>Wed, 20 May 2009 04:32:07 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JME]]></category>

		<guid isPermaLink="false">http://zhangv.com/archives/1020</guid>
		<description><![CDATA[Keep getting the out of memory error when handling the image file in emulator(wtk) and device(e61i)
Just had a simple test and here is what I found:
The code is simple:
for(int i=1000;i&#60;Integer.MAX_VALUE;i++){
System.out.println(i);
byte[] buf = new byte[i];
}
and see when your program will crash. - Actually it won't crash, as the OOME(out of memory error), is an Error rather [...]]]></description>
		<wfw:commentRss>http://zhangv.com/archives/1020/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S60里的系统属性</title>
		<link>http://zhangv.com/archives/157</link>
		<comments>http://zhangv.com/archives/157#comments</comments>
		<pubDate>Wed, 12 Mar 2008 10:09:57 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[j2me]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=411</guid>
		<description><![CDATA[http://www.forum.nokia.com/document/Java_ME_Developers_Library_v1/index.html?content=GUID-545CA84A-8378-4DFA-9035-94479F5BE26E.html
一些常用的路径，比如图像路径，存储卡路径，相机路径
 System properties
The table below contains the File API system properties that return the localized names of common directories and the URLs to the most common directories. Several Strings are only supported in either S60 or Series 40. Refer to the individual tables for each implementation.




String
Description


Fileconn.dir.photos.name
Localized name for the photo directory, for example "Images".


Fileconn.dir.graphics.name
Localized name for [...]]]></description>
		<wfw:commentRss>http://zhangv.com/archives/157/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javablog » How MIDlet Signing is Killing J2ME</title>
		<link>http://zhangv.com/archives/155</link>
		<comments>http://zhangv.com/archives/155#comments</comments>
		<pubDate>Tue, 11 Mar 2008 12:54:32 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[翻译]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=321</guid>
		<description><![CDATA[Javablog » How MIDlet Signing is Killing J2ME
TODO: 翻译

	Tags: 翻译, j2me, Java
]]></description>
		<wfw:commentRss>http://zhangv.com/archives/155/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让VideoControl支持更高的分辨率</title>
		<link>http://zhangv.com/archives/154</link>
		<comments>http://zhangv.com/archives/154#comments</comments>
		<pubDate>Sun, 09 Mar 2008 02:38:03 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mofire]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=307</guid>
		<description><![CDATA[如果直接videoControl.getSnapshot(null)的话，得到的是默认的较低分辨率和画质-在我的e61i上是640*480，这样显然不能充分利用2M像素的相机。（当然也要看了，你指望从手机上传出多清晰的照片，而且也要有兼容的问题，万一其他手机支持不到这么高怎么办？）通过设置width和height即可以支持更高的分辨率。
videoControl.setVisible(false);
String enc = "encoding=jpeg&#38;width=800&#38;height=600";
byte[] raw = videoControl.getSnapshot(enc);
appendImage(raw);
在我的小6上测试:
1600*1200 - 无法处理的异常(应该是得到的byte[]太大，ME的Vector会溢出），1200*900 - MediaException : Symbian OS Error: -4，貌似不支持这个分辨率
1280*960 - 同上
1024*768 - 同上
800*600 -  成功
640*480 - 成功，默认的分辨率
参考：nokia.wiki

Powered by MoFire

	Tags: j2me, mofire
]]></description>
		<wfw:commentRss>http://zhangv.com/archives/154/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>转贴一些关于MMAPI的样例代码</title>
		<link>http://zhangv.com/archives/144</link>
		<comments>http://zhangv.com/archives/144#comments</comments>
		<pubDate>Sun, 02 Mar 2008 07:18:51 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[j2me]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=409</guid>
		<description><![CDATA[本文的目的是为读者提供处理不同情况的代码，您可以参考MMAPI DOC。
播放单音
try
{
Manager.playTone(ToneControl.C4, 5000
/* millisec */, 100 /* max vol */);
} catch (MediaException e)
{
}
简单媒体重放功能实现:
try
{
Player p = Manager.createPlayer
("http://webserver/music.mp3");
p.setLoopCount(5);
p.start();
} catch (IOException ioe)
{
} catch (MediaException me)
{
}
详细重放控制:
static final long SECS_TO_MICROSECS
= 1000000L;
Player p;
VolumeControl vc;
try {
p = Manager.createPlayer
("http://webserver/music.mp3");
p.realize();
// Set a listener.
p.addPlayerListener(new Listener());
// Grab volume control for the player.
// Set Volume to max.
vc = (VolumeControl)p.getControl
("VolumeControl");
if (vc != null)
vc.setLevel(100);
// Set a start time.
p.setMediaTime(5 * [...]]]></description>
		<wfw:commentRss>http://zhangv.com/archives/144/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>怎样使用MMAPI录音</title>
		<link>http://zhangv.com/archives/143</link>
		<comments>http://zhangv.com/archives/143#comments</comments>
		<pubDate>Sun, 02 Mar 2008 06:58:24 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[非技术(non-tech)]]></category>
		<category><![CDATA[j2me]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=408</guid>
		<description><![CDATA[try {
    // Create a Player that captures live audio.
    Player p = Manager.createPlayer("capture://audio");
    p.realize();
    // Get the RecordControl, set the record stream,
    // start the Player and record for 5 seconds.
    RecordControl rc = (RecordControl)p.getControl("RecordControl");
  [...]]]></description>
		<wfw:commentRss>http://zhangv.com/archives/143/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MoFire</title>
		<link>http://zhangv.com/mofire</link>
		<comments>http://zhangv.com/mofire#comments</comments>
		<pubDate>Wed, 27 Feb 2008 10:10:22 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[非技术(non-tech)]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mofire]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?page_id=224</guid>
		<description><![CDATA[
最新版本(latest version): 0.6.1 download
Source code:
http://code.google.com/p/mofire/
http://sourceforge.net/projects/mofire/
Download and try:
http://mosh.nokia.com/content/4897555AA597E7C5E040050A45306893
手机上的wordpress客户端(jme)
1.支持拍照并发布带图片附件的日志
2.可配置多个blog
3.可保存日志到手机
4.支持从本地载入图片并发布到blog
5.支持分类，标签，使用MetaWeblog API

类图:

mofire-uml-0.1
FAQs:
What is mofire?
It's a blogging client on your mobile phone.
 What blogging application mofire supports?
Initially, this is for my own wordpress blog. Theoretically, it supports all the blog application that support metaweblog API.
Why “mofire"?
"mo" is my prefix, means "nothing", "fire" is to after my favorite blogging client - [...]]]></description>
		<wfw:commentRss>http://zhangv.com/mofire/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用antenna时候的问题</title>
		<link>http://zhangv.com/archives/120</link>
		<comments>http://zhangv.com/archives/120#comments</comments>
		<pubDate>Sat, 02 Feb 2008 10:33:46 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[antenna]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mofire]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=166</guid>
		<description><![CDATA[编译时找不到List.deleteAll这个方法，因为默认的的antenna使用cldc1.0。而这个deleteall是1.1的方法，解决方法是覆盖默认的cldc版本
&#60;property name="wtk.cldc.version" value="1.1"/&#62;
Antenna是用来构建j2me项目的ant任务 扩展。让整个构建过程变的很简单和易于管理。
附我使用的构建脚本供参考：
&#60;?xml version="1.0"?&#62;
&#60;project name="MoFire" default="build" basedir="."&#62;
&#60;!-- Define the Wireless Toolkit home directory. Needed by the tasks. --&#62;
&#60;property name="wtk.home" value="D:\development\WTK2.5.2"/&#62;
&#60;property name="wtk.cldc.version" value="1.1"/&#62;
&#60;property name="wtk.midp.version" value="2.0"/&#62;
&#60;property name="wtk.proguard.home" value="D:\development\workspaceME\lib\proguard4.1\"/&#62;
&#60;!-- Define some additional properties for this project. Not required. --&#62;
&#60;property name="midlet.name" value="${ant.project.name}"/&#62;
&#60;property name="midlet.home" value="."/&#62;
&#60;property name="midlet.vendor" value="MoDoFo"/&#62;
&#60;property name="midlet.version" value="0.0.1"/&#62;
&#60;!-- Define the tasks. --&#62;
&#60;taskdef resource="antenna.properties" classpath="lib/antenna-bin-1.0.0.jar"/&#62;
&#60;target name="clean"&#62;
&#60;delete failonerror="false" dir="classes"/&#62;
&#60;/target&#62;
&#60;target name="dist" [...]]]></description>
		<wfw:commentRss>http://zhangv.com/archives/120/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
