java-me

BlackBerry - TreeField with CheckBoxField?

妖精的绣舞 提交于 2020-01-13 05:38:31
问题 Is it possible to add a CheckBoxField to a TreeField in BlackBerry ? If yes, how do I do it? 回答1: Same trick as with ListBox CheckBoxes: alt text http://img441.imageshack.us/img441/5120/checkboxtree.jpg class CBTreeField extends VerticalFieldManager implements TreeFieldCallback, DrawStyle { boolean[] mBooleanValues = new boolean[] {}; String[] mStringValues = new String[] {}; public boolean getNodeBooleanValue(int node) { return mBooleanValues[node]; } public void setNodeBooleanValue(int node

Which Version of Blackberry JRE is required for Developing BlackBerry OS6

谁都会走 提交于 2020-01-13 05:15:19
问题 I downloaded the Eclipse plugin for BlackBerry which has the BlackBerry OS 7 runtime by default. I need to target BlackBerry OS 6 and OS 7 devices. Will this work for BlackBerry OS 6 as well, or do I need to change the the JRE? If I need change the JRE, how do I do that? 回答1: What you have already downloaded will be fine for developing for BlackBerry OS 7. However, to also develop for OS 6 devices, you should install the OS 6.0 plugin SDK, too. Currently, this blackberry.com page describes

In J2ME and Android which one is more useful, useable and popular as mobile programming language or framework? [closed]

て烟熏妆下的殇ゞ 提交于 2020-01-12 01:58:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am very interested in mobile application development. But which language or framework is more popular, useful and usable? I know

JDBC support on J2ME

不打扰是莪最后的温柔 提交于 2020-01-11 11:55:49
问题 Currently I am trying to run an existing java application on a Windows Mobile 6.1 device. The java application had been developed for server side and uses JDBC. My problem is that the Java application uses the java.sql.DriverManager which is not supported either by J9 runtime or by any CDLC/CDC implementation. After doing a lot of research it seems that there is not a standard way to do that. The JSR 169 does not support this class as well. So, I was wondering whether any of you have similar

how to convert j2me running lwuit to android?

醉酒当歌 提交于 2020-01-11 10:38:48
问题 How can i convert a J2ME application which is using lwuit library to an android apk ? I tried to convert using mircoemulator but when I start the application it shows error and exits. 回答1: Read this article, LWUIT for Android. Here clearly telling about How to do LWUIT with Android. Follow the stpes carefully and change the your MIDlet code. Just checkout the LWUIT-Incubator repository and use this for android development with LWUIT. Also read the README_Android.txt on this repository. 回答2:

Split string logic in J2ME

梦想与她 提交于 2020-01-11 04:44:23
问题 I am developing a J2ME application. I want to split the following string at "<br>" & comma: 3,toothpaste,2<br>4,toothbrush,3 How can I do this? 回答1: private String[] split(String original,String separator) { Vector nodes = new Vector(); // Parse nodes into vector int index = original.indexOf(separator); while(index >= 0) { nodes.addElement( original.substring(0, index) ); original = original.substring(index+separator.length()); index = original.indexOf(separator); } // Get the last node nodes

Problem transmiting a RSA public key, javaME , bouncy castle

余生颓废 提交于 2020-01-10 03:12:07
问题 I'm working on the porting of an instance messaging application from Java to JavaME ,that also implements cryptography. The problem is that I want to send my public key to the server. The desktop client has this code for this job: byte[] encoded_public_key=publick_key.getEncoded(); And the server has this code to retrieve the key: EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(encoded_public_key); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); PublicKey puKey = keyFactory

Problem transmiting a RSA public key, javaME , bouncy castle

你说的曾经没有我的故事 提交于 2020-01-10 03:12:05
问题 I'm working on the porting of an instance messaging application from Java to JavaME ,that also implements cryptography. The problem is that I want to send my public key to the server. The desktop client has this code for this job: byte[] encoded_public_key=publick_key.getEncoded(); And the server has this code to retrieve the key: EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(encoded_public_key); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); PublicKey puKey = keyFactory

Render PDF on a Blackberry?

此生再无相见时 提交于 2020-01-10 03:00:26
问题 We are using Blackberries to display PDF reports. Here are background details on the problem: The PDF reports are created using JasperReports. Report format can be changed. Different report formats are available (as per the feature set of JasperReports). The PDF reports are on a website, too, so retaining a single source is ideal. The page setup is in Landscape. Here are the issues we have encountered: Users cannot see a full line of text on the Blackberry. The size of the PDF and UI makes

How can I get FilePicker working properly on certain BlackBerry handsets?

老子叫甜甜 提交于 2020-01-07 04:58:11
问题 I'm implementing a Filepicker in my app to allow users to choose photos from their phones. The code I'm using is as follows: Calling the Filepicker: try { UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { FilePicker fp = FilePicker.getInstance(); fileListener = new FilePickListener(); fp.setListener(fileListener); fp.show(); } }); } catch (Exception e) { UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { Dialog.alert("Please check