自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 资源 (4)
  • 收藏
  • 关注

原创 J2ME中读取Unicode和UTF-8编码文件

一、读取Unicode文件    /**     * 读取Unicode编码文本文件     * @param resource String - 文件名     * @return String - Unicode文本     */    public static String read_Uni(String resource) {        byte word_uni[] = new b

2008-07-10 15:50:00 420

原创 J2ME如何获取手机型号

这个很简单的。 System.getProperty("microedition.platform");这样就可以获取一个字符串,里面包含了你想要的东西,你输出看下                  MOTO系列的可以通过读取系统的IMEI属性获得,代码如下: String imei = System.getProperty("IMEI"); 2 SIEMENS系列的可以通过读取系统的com.si

2008-07-05 13:01:00 1426 1

转载 J2ME Custom Text Input

Here is a sample Midlet: Media:CustomInputMidlet.zipHere is a basic example showing how to create a custom text input using J2me and Canvas, things that is often needed when using low level graphics

2008-04-20 11:30:00 594

转载 kuneriLite入門

記錄一下初次使用kuneriLite的筆記。簡介kuneriLite是可以擴充Flash Lite對硬體控制功能(S60 only)的開發工具,讓FlashLite可做到原來做不到的事,如對Camera, GPS, File System等功能的控制。能力在kuneriLite裏,這些擴充能力稱為"plug-in",目前支援的plug-ins如下:-Accelerometer plugin-Cam

2008-04-20 10:16:00 818

转载 J2ME Customizing Game Sprites Color

Often in games a nice feature to give to users it the possibility to customize their own character, for example changing colors of the different parts (hairs, eyes, shirt, and so on). To support t

2008-04-20 10:09:00 361

转载 J2ME Tabbed Menu

We will build a reusable Tabbed Menu using J2ME. You can find a midlet showing this component in action here. Our component will support: Full styling of tabs (bg color, fore color, fo

2008-04-20 09:58:00 481

转载 J2me Scrollable Text

Here is a J2ME example showing how scrollable text can be implemented. (Will post full midlet source code soon) This is a sample midlet showing the following code in action: Media:ScrollableTextFi

2008-04-20 09:56:00 393

转载 J2ME Drawing Collapsible Trees

This code will show how to draw trees with J2me with the following features: collapsible/expandable nodes vertical scrolling You can see a sample midlet showing this code in acti

2008-04-20 09:55:00 476

转载 J2ME Draw Gradient

Here is a J2ME class for gradients drawing, supporting both horizontal and vertical gradients. This could be useful to substitute background gradient images with graphics drawn by code. package

2008-04-20 09:53:00 896

转载 手机开发平台指南、教程和资料介绍

近来无事,把手机开发平台的学习指南、教程和资料总结一下,方便大家参考。 手机客户端软件开发最大的困难就是平台不统一,手机开发平台太多。 手 机可分为智能手机开发和feather phone手机。开发平台可分为开放式平台和封闭式平台,开放式平台包括symbian、windows mobile、linux、Android、BlackBerry、j2me、brew等,支持手机应用程序通过OTA下载和安装

2008-03-16 22:03:00 833

转载 Connecting to databases like Mysql, SQL Server or Oracle on J2ME devices

CLDC framework, do not support JDBC APIS. To connect to databases from devices that have CLDC configuration, you can call a Servlet from MIDLets. Connection to database, running the queries and other

2008-03-03 12:13:00 708

转载 How to use GET and POST methods in HTTP from a MIDlet

This example shows how to use GET and POST methods in HTTP from a MIDlet. /***  Chapter 5 Sample to demonstrate Http GET and POST from MIDlet ***/import 

2008-03-03 12:08:00 476

转载 MIDP 2.0安全机制 与 MIDlet 数字签名

本文档是 WoTrust 根据 Forum Nokia 提供的技术文档《MIDP 2.0: Tutorial On Signed MIDlets》翻译整理的,请同时参考此英文原文文档。请用户在编写 MIDlet 和签名 MIdlet 之前阅读此文档,以便对 MIDP2.0 的安全机制有一个深刻的理解,有助于用户能用好 MIDlet 代码签名证书。 一、概述     MIDP2.0 采用了全

2008-03-03 12:03:00 348

转载 Sending Email from J2ME devices

When you send mail, you connect to a server that supports the Simple Mail Transfer Protocol (SMTP). A MIDLet connects to the server through HTTP protocol interface. Send Email facility is coded in a s

2008-03-03 12:00:00 520

转载 如何在MIDP中实现图片放缩(转自linuxmine)

设计游戏的朋友经常会遇到对图片资源的操作。今天浏览web发现此贴不错。所以抄过这边来原文:www.linuxmine.com/45911.html无论在midp1.0还是在 midp2.0中,系统都没有给我们提供对图片进行伸缩操作的api.但是其实我们只要在程序代码中略施小计,就能达到这个效果,只是效果要比美术做出来 的图片,呵呵,差多啦,同时也会造成性能损失。伸缩图片的构造原理就是简单沿x,y轴

2008-03-03 11:49:00 335

原创 A Simple Ordered Hashtable

This class implements an ordered hashtable, which maps keys to values. Any non-null object can be used as a key or as a value. Because in the MIDP API there is no support for the Java Collection API

2008-03-02 19:33:00 448

转载 Using MIDP 2.0 PushRegistry

Class BasicPushMIDlet shows a MIDlet that uses the MIDP 2.0 PushRegistry API. Please refer to The MIDP 2.0 Push Registry for the corresponding article that explains how to use PushRegistry API. The

2008-03-02 18:34:00 642

转载 Simple URL Encoder

Before a client communicates with a web server it must first encode URLs to ensure URL correctness. This encoding is necessary because some characters within the URL may be considered reserved. This

2008-03-02 18:07:00 1090

转载 The MIDP 2.0 Push Registry

"Push" is a very powerful concept and typically refers to the mechanism or ability to receive and act on information asynchronously, as information becomes available, instead of forcing the applicatio

2008-03-02 17:55:00 1359

转载 Implementing a Local Cache to Manage Resources

MIDlet resources such as images, icons, video clips, and ringtones can be stored within the MIDlet suite JAR file. But keeping such resources within the MIDlet suite itself can be expensive in terms o

2008-03-02 15:33:00 531

转载 Accessing a Resource over HTTP-NetworkUtils

The Hypertext Transport Protocol (HTTP) is a very important application-level network protocol. Most of the access to web resources, including web pages, Extensible Markup Language (XML) documents,

2008-03-02 14:55:00 464

转载 Externalizing Resources - Persisting Images in RMS-ImageRmsUtils

If you are encountering size restrictions when provisioning your MIDlet, you have a couple of options to consider. One of the options, using obfuscation to reduce the application size, was previousl

2008-03-01 23:24:00 369

原创 cookie技术在Java ME平台的应用与实现

Cookie在Web应用程序中被广泛采用,维护浏览器和服务器之间的状态。遗憾的是这一特性在Java ME平台中并没有得到支持。因此,要想维持客户端和服务器端的状态则必须使用URL重写的方式。URL重写操作起来比较麻烦,所以研究一下cookie的原理并在Java ME平台上实现cookie是不错的尝试。首先,我们来看一下cookie的原理。当服务器需要和浏览器维持某一状态的时候,例如需要记录

2008-03-01 23:14:00 339

转载 Hashtable Interface to MIDP RecordStore

The javax.microedition.rms package provides the Record Management System (RMS) implementation. It is a kind of DBMS, but its API doesnot resemble JDBC or any of other J2SE APIs. The primary concept

2008-03-01 22:52:00 333

原创 在Canvas类中输入文字

import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Font; import javax.microedition.lcdui.Graphics; public class MyTextBox extends Canvas implements Runnable{ private final stat

2008-03-01 22:45:00 1610

原创 java.lang.OutOfMemoryError学习笔记

java.lang.OutOfMemoryError这个错误我相信大部分开发人员都有遇到过,产生该错误的原因大都出于以下原因:JVM内存过小、程序不严密,产生了过多的垃圾。             在一年多的工作过程中,遇到该问题的印象最深有两次。             一次是用hibernate查询数据时,一次查询过多的数据,例如30000条,此时程序出错,该死的java.lang.O

2008-02-28 10:56:00 453

原创 J2ME可选包FileConnection

本文将介绍J2ME的可选包FileConnection Optional Package(以下简称FCOP),事实上FCOP是在JSR75中和Personal Information Management(PIM)一起发布的。这篇文章将简单介绍一下FCOP的基本概念。    如果读者还不了解J2ME可选包的概念,请参考介绍J2ME可选包的概念;如果读者想了解PIM的详细概念和使用请参考J2ME可选

2008-02-19 14:36:00 608

转载 j2me 出色的开源项目

MWT#y yL@ZS M*^Tt#X0Micro Window Toolkit(MWT)是一个用于开发J2ME用户界面(UI)的工具包。它具有友好,强大,快速,开源等特性。因为它的"灵感"来自 AWT,Swing和SWT。可以使用bitmap fonts等来自定义组件。它专门为嵌入式开发而设计和优化。基于LGPL发布。以下是它的Demo截屏:c#K[k+zd^*f2

2008-02-10 21:12:00 727

转载 J2me中实现淡入淡出效果【收录】

J2me中实现淡入淡出效果3["ixQ`KE0飘飘白云([email protected])    在J2me中实现淡入淡出效果,据我所知至少有三种方法。3GEYE5u1q$o,}?-Kk第一种是取得需要变换图片的像素,依次设置每个象素的alpha通道值,让它在0~100之间变化。 N{"Bt P0~0    第二种是修改图片的调色板数据,让其在调色板原始数据到255之间变化

2008-02-10 20:53:00 504

转载 JBuilder 单步调试J2ME心得

单步调试是一种挑战,有些很隐蔽的错误,只要你认真去调试,是可以重现出来,并可以解决了。以前我调试一般都不用debug,而是3GEYE"BgvN4Ll{F打印(print)出来,这样的做法很吃力,要比拼经验,一些问题也只是猜想,很多内在的东西是想不到的,所以靠print的方法是不行3GEYE#@9^e:Q&kS"EH/~"[的。不过到了新公司,公司很是重视调试,所以也慢慢的改掉以前

2008-02-10 20:48:00 482

转载 J2ME手机网游解秘

前言:    目前国内真正掌握手机网游核心技术的公司并不多,能独立架构手机网游客户端和服务器端的人更是少数。这些资料也在很多公司被视为机密,网上开源的资料,从网络游戏“水果机”,到基于socket通信的“Slug”,基本上讲解的都是一些技术上的细节,看完后也是模糊不清。我由于工作上的原因,从参加工作伊始,一直从事手机网络游戏的开发。虽然谈不上多么精通,但自问也知其皮毛。所以在这里就不吝这点知识,贡

2008-02-10 20:33:00 500

翻译   MGtalk即Mobile Gtalk(移动版Gtalk)

 移动版Gtalk——MGtalk 由. Ken Wong 将文章归档于 G源共享 <!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"xmln

2008-02-10 00:02:00 1000

原创 如何中设计一款优秀的J2ME软件

JAVA ME 这个技术出现到现在也有好多年了,这段时间,大家对这项技术的褒贬不一。我们暂且不讨论这些,我今天就拿我做项目的经验来说。该怎么样设计一款优秀的 JAVA ME手机软件。这篇文章不是纯技术性的文章,只要稍微做过项目的朋友都是可以看的明白了,里面的观点只是代码自己的个人观点。说的不对的地方望大家多多指 教。        首先我们来说说J2me的高级UI应用情况吧: 1.  游戏,根

2008-02-09 23:59:00 420

原创 J2ME获取手机号码

J2ME本身的API是没有提供这个方法的,但是我们通过CMWAP连接的时候,通过移动的网关来获取,当然,前提是移动的网关要提供这个功能。 如果网关支持这个功能的话,我们就可以通过服务器端来获得手机号码了,以下代码可以做为测试,看看你连接的移动网关是不是支持: public static string GetPhoneNumber(HttpRequest request)

2008-02-09 00:04:00 1101 2

原创 j2me 绘制透明的背景

  前一段要设计一个菜单,弹出菜单的时,背景是透明的。看代码吧,不啰唆了 /** 绘制透明色 * */ public void drawRGB(Graphics g) { int ai[] = new int[Platform.WIDTH]; for (int j1 = 0; j1 ai[j1] = 0x90000000;

2008-02-02 21:09:00 393

原创 j2me 减少三次握手的时间(减少连结网络的时间)

相信很多开发过J2ME 应用程序的 开发员, 都有一个烦恼如何减少三次握手的时间:      本人就在这里说说自己的经验:       当你的应用程序有很多资源要从网络上加载时,就可以,将所有的需要加载的资源,以字节流打包个一个文件, 这样就大大减少了,三次握手的时间,特别是那种很少需从无线网络加载的应用程序.    当然, 这个技术的实现,少不了,服务器对它的技持.

2008-02-02 20:35:00 554 2

Foursquare

Foursquare GPS 定位地图交友, 并获取商家打折信息。

2010-08-09

Symbain OS 开发性能优化诀窍

Symbain OS 开发性能优化诀窍 PDF

2008-03-17

Rapid Mobile Enterprise for Symbain OS

Rapid Mobile Enterprise for Symbain OS , 对开发企业级的手机应用软件的开发者会有很大帮助. PDF版

2008-03-17

developing software for symbain OS

developing software for symbain OS PDF版

2008-03-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除