java-me

Need a function that adds a new record to TableItem using TableModel in J2ME

こ雲淡風輕ζ 提交于 2019-12-10 22:59:27
问题 How to create dynamic table model in J2ME? like from arrays i use kxml parser to parse my data and show that data in table. Could you please give me directions? source code is welcome as well!! my bean looks like this public class FIDS { private String FNo; private String AirCraft; private String OnDate; private String Gate; private String AirCompany; private String Remark; private String FTime; private String BRegTime; private String ERegTime; public FIDS(){} public void SetFN(String fno)

wrap label text in j2me

为君一笑 提交于 2019-12-10 22:48:58
问题 I've built a list and inserted labels in each cell. For now the text that is too long simply disappear. I'd like to wrap the text so it is entirely visible inside each cell. Can you please help? update: issue solved For those who need an answer, I used LWUIT's HTMLComponent inside a container. The HTMLComponent allows you to use HTML code. That would allow you to format your list the way you want it to be. Here is more details on the solution. In Java ME with LWUIT, I used a HTMLComponent to

Is there a round off function in J2ME?

こ雲淡風輕ζ 提交于 2019-12-10 21:54:52
问题 I need roundoff function in J2ME. Math.round() does not seem to exist. Please provide some assistance! 回答1: Or you can use another approach: float value; int base; //base to round int round_down=(int )((int )(value/base))*base; int round_up=(int )((int )(value/base+0.5))*base; 回答2: Math.ceil() or Math.floor() probably but these again are available only for CLDC 1.1 :) 来源: https://stackoverflow.com/questions/4930598/is-there-a-round-off-function-in-j2me

What are the best remoting technologies for mobile applications?

北城余情 提交于 2019-12-10 21:21:52
问题 I have a java back-end that needs to expose services to clients running in the following environments : J2ME Windows Mobile iPhone I am looking for the best tool for each platform. I do not search a technology that works everywhere. I need something "light" adapted to low speed internet access. Right now I am using SOAP. It is verbose and not easy to parse on the mobile. The problem is that I have not seen any real alternative. Is there a format that works "out of the box" with one of these

Reading Content from File in J2ME

瘦欲@ 提交于 2019-12-10 19:49:13
问题 I am trying to read the content of a file but it seems not to work. I surfed the net and found different implementations as shown(read(), read2(), readLine()) but each time a run the codes they all give a NullPointer exception. Please what can I do to rectify this problem. private String folder; static String filename; //IMPLEMENTATION 1 private void readFile(String f) { try { InputStreamReader reader = new InputStreamReader(getClass().getResourceAsStream(f)); String line = null; while ((line

Java NFC (JSR 257)

妖精的绣舞 提交于 2019-12-10 19:26:02
问题 I developed some small applications for the Nokia 6131 that supported NFC. The SDK was special for this device, and it implemented the JSR 257. Now, I see different mobile platforms with proprietary SDKs, each one proposing different features (Android ICS, Meego, iOS). I would like to know which platform still support JSR 257? Also, I want to know if learning JSR 257 is still interesting or which way I could take? NFC is currently expanding, and it would be interesting to know which are the

Unable to connect to j2me device emulator

房东的猫 提交于 2019-12-10 19:06:34
问题 I am having trouble in testing a Midlet. I am using j2me sdk 3, the Midlet builds successfully, but when i try to run it, it fails and it shows the following message in the log: Failed to connect to device {0}! Reason: Emulator {0} terminated while waiting for it to register! 回答1: I had the same problem. On the next system restart there where message about runMidlet crash due to DEP (Data Execution Prevention). After turning off DEP all started to work perfect. In case it could help, it was

Symbian: Is it possible to get access to a list of contacts through an application?

天大地大妈咪最大 提交于 2019-12-10 18:59:02
问题 There are at least two ways that I know of to write a Symbian application: 1. J2ME 2. A native application. My question is, does the SDK/API for either of those methods (or any other method) grant me (at least) read-only access to contact information (names/numbers/etc) on the phone itself? Does this in any way depend on the specific phone being used? 回答1: In C++, you can use e.g. the Contacts Model API. There's an example in Forum Nokia. In J2ME, you need to be working on a phone that has

How to hide the midlet icon on Nokia phones in J2ME?

给你一囗甜甜゛ 提交于 2019-12-10 18:49:21
问题 I have developed a midlet that is supposed to be invoked using Push Registry only. The user must not be able to manually start the app. I have achieved this by checking if the midlet was not invoked through Push Registry, then exit the midlet immediately. but is there any way to hide the app from application folder on Nokia devices? It seems that it can be done for sonyericsson: How to hide midlet icon in sonyericsson 来源: https://stackoverflow.com/questions/3349477/how-to-hide-the-midlet-icon

How to use Lwuit Resource Editor for Creating Theme or GUI?

痞子三分冷 提交于 2019-12-10 18:38:47
问题 I am just downloaded lwuit resource editor. I trying to create theme but i don't have idea how to create theme or gui. Can any one give me information how to use it? How to create gui or theme? And also i have one question how to use the created theme in netbean for j2me application. Please help me friends. 回答1: Lot of video's available on the Shai's blog. Here you can know about how to use latest LWUIT ResourceEdit. Current version of LWUIT ResourceEdit is little bit differnet from old