`
jacky-zhang
  • 浏览: 319342 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
以下是经验总结: *只优化需要的代码 *只在有价值的地方优化 *用profiler来找要优化的地方 *在具体的设备上profiler无能为力,在硬件上使用System timer *在于用低级技术之前,总是先研究你的代码并且试着改进算法 *绘图是慢的,所以尽量节俭地使用图形调用 *在可以减少绘制区域的地方使用setClip() *尽可能的把东西放到循环之外 *拼命地预先计算和暂存 *字符串带来垃圾,垃圾不好,所以使用StringBuffers来代替 *什么都不假设 *可能就使用static final方法,避免synchronized修饰符 *传递尽可能少的参数到经常调用的方法 *如果可能,完 ...
import javax.microedition.lcdui.Graphics;   /*   * 图片任意角度翻转算法   * 同时实现了Nokia特有API   * author. BB   * Sprite.java   *   *   */ public class Sprite {    /** SIN TABLE **/    public final static int SIN_TABLE[] ={     0, 4, 8, 13, 17, 22, 26, 31, 35, 39,     44, 48, 53, 57, 61, 65, 70, 74, 78, 83,     ...

英语词典软件

一个英语词典软件

OpenBaseMovil

    博客分类:
  • j2me
http://www.openbasemovil.org/download/#binary
  Forum Nokia Technical Library is a documentation package compiled by Forum Nokia. 3 Java™ known issues, 2 Java technical solutions, 4 Symbian C++ known issues, 14 Symbian C++ technical solutions, and Java FAQ have been added. 3 Java known issues, 1 Java technical solution, 1 Symbian C++ known issue ...

mwt

    博客分类:
  • j2me
自己写了一个demo及一些练习
package opusmicro.keycode.test; //import game.MainCanvas; import javax.microedition.lcdui.Canvas; /** * Class redefines codes of mobile phone to our constant values. * Class can give to developers following information: * <ul> * <li/><i>defined platform name</i ...

floggy

    博客分类:
  • j2me
As J2ME developers we couldn't handle anymore the idea of writing so many code lines to persist so few attributes. For each class we want to persist we had to generate the source code to transform an object into a byte array and vice-versa. We have tried to find free persistence frameworks for this t ...

Canvas翻页效果

    博客分类:
  • j2me
 
仅供交流学习
示例程序。
在使用MotoJ2SDK进行J2ME应用程序的开发,经常会遇到中文的显示,存储,传输和编码的问题。首先要对388手机上开发Kjava程序时,对于中文的支持情况有所了解。           中文的支持有三种编码方式:           -ISO10646 and ISO8859_1 编码格式;           -UTF8编码格式;           -UNICODE           下面我们来看一下各种不同的编码方式有什么区别。在目录Text下有三个.txt文件,它们是分别用ANSI、UNICODE、UTF8方式编码的一段中文,内容为“摩托罗拉”。我们用UltraEdit分别打开三个 ...

camera support

    博客分类:
  • j2me
microedition.platform   平台名称,如j2me   microedition.configuration   CLDC或CDC版本,如CLDC-1.0   microedition.profiles   MIDP版本,如MIDP-1.0   microedition.encoding   默认的系统编码,如GBK   microedition.locale   默认的区域设置,如zh-CN   MMAPI相关      microedition.media.version   MMAPI的版本,如1.1   supports.mixing   是否支持混音,如true    ...
Device UP DOWN LEFT RIGHT CK LSK RSK Clear Call Hangup Back Menu Input Mode Vol Vol- Camera Focus Snapshot LG U8290 -1 -2 -3 -4 -5 -6 -7 -16 -10 TA NSK NSK NSK -13 -14 LG KG800 -1 -2 -3 -4 -5 -202 -203 -204 -200 TA NSK NSK NSK NSP ...
原文(http://www.jum.cn/bbs/archiver/?tid-8155.html) 各品牌手机键值 1.机型:三菱M350/M750    键         键值     对应16进制 左右软键   无定义     - OK键       -6         FA 上键       -1         FF 下键       -2         FE 左键       -3         FD 右键       -4         FC 拨号       -5         FB =========================================== ...
J2ME technologies What are the main differences between programming for a J2ME JVM, and programming for a J2SE JVM? Most obviously, the J2ME programmer has access only to a reduced range of basic API classes. There is no built-in API support for file handling, RMI, JDBC, JNDI, multimedia (but this is ...
Global site tag (gtag.js) - Google Analytics