java-me

J2ME: platformRequest Issue

送分小仙女□ 提交于 2019-12-08 07:12:33
问题 I want to call a number in below format using platformRequest: platformRequest("tel:*123*33584744#"); But it gives me error Invalid number on the phone. But if i call this number manually by typing on phone then it works fine. Even below works fine: platformRequest("tel:33584744"); So i suspect problem lies when i put * or # chars in the number. As i said when i type these chars in the number manually and press the call button on the mobile it works fine but not with platformrequest. What is

Application cannot be deleted when has multiple entry points

你离开我真会死。 提交于 2019-12-08 07:02:25
问题 EDIT: Using simpler code. I have a blackberry app that until recently (I upgraded to 6.0.0.600 on my torch) could be deleted. Now I can't even if I use javaloader -u erase (module in use) and the UI context menu or physical menu has no option for delete. The code below just requires an app descriptor with an alternate entry point on startup with parameters "startVibrate". The entry points code is below. package mypackage; import net.rim.device.api.system.Alert; import net.rim.device.api

J2ME: Convert transparent PNG image to grayscale

ε祈祈猫儿з 提交于 2019-12-08 06:17:20
问题 is there any possiblity in J2ME to convert an image (loaded from a png file with alpha) to a new transparent grayscale image? Until now I only got the rgb values, but not the alpha. Thanks. Edit: yes, it should be 32 bit grayscale. 回答1: I found the solution and here is the code: public Image getGrayScaleImage() { int[] rgbData = new int[getWidth() * getHeight()]; image.getRGB(rgbData, 0, getWidth(), 0, 0, getWidth(), getHeight()); for (int x = 0; x < getWidth() * getHeight(); x++) { rgbData[x

Developing photo gallery application

半世苍凉 提交于 2019-12-08 06:15:07
问题 I want to develop a photo gallery in Blackberry. Please give any suggestions about functionality and implementation. 回答1: There are couple things to do: gallery layout variations (table, list, tape) several thumbnail size variations info from file (format, resolution, size, etc) file browser component send mail/publish web etc camera integration Additional features: slide show rating functionality converter functionality synchronization device-device, device-desktop, device-web home screen

J2ME Stub generates an unknown exception with JPA Entity types

只谈情不闲聊 提交于 2019-12-08 05:30:13
问题 I created a web service stub using NetBeans 7.0 and when I try using it, it throws an unknown Exception . I don't even know what part of my code to show here, all I know is that bolded line generates an unknown Exception: public Businesses[] findBusiness(String query) throws java.rmi.RemoteException { Object inputObject[] = new Object[]{ query }; Operation op = Operation.newInstance(_qname_operation_findBusiness, _type_findBusiness, _type_findBusinessResponse); _prepOperation(op); op

Adding JSpeex Jar file to Blackberry Project

早过忘川 提交于 2019-12-08 05:23:06
问题 I am trying to add JSpeex's jar file to Blackberry project. Compilation fails if I add it. Also, if I add source files to the project, compilation fails as JSpeex is pure Java and classes are not supported in Blackberry app. Please help me to resolve the issue... Thanks in advance. 回答1: Pure Java? Keep in mind that the Blackberry JVM is still based on J2ME, which is kind of a subset of java. To include external JAR follow the Knowledge Base Entry How To - Compile a jar file into a BlackBerry

How to instantiate X509Certificate from a P12 file in Blackberry

拟墨画扇 提交于 2019-12-08 05:20:40
问题 I have a valid P12 file. I need to instantiate an X509certificate object, so that I can use it as a client side certificate. I realize that there is already a similar question answered here, How to instantiate javax.security.X509Certficate object from a p12 certificate (contains certificate + private key) But in Blackberry, the getInstance(String) method is not available for KeyStore. It's available for DeviceKeyStore and TrustedKeyStore. But we can't pass the "PKCS12" parameter to the

IDE pros and cons for J2ME and Android development [closed]

折月煮酒 提交于 2019-12-08 04:40:49
问题 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 8 years ago . I have been tasked with updating my teams dev. environment. This environment will be used to develop and test J2ME and Android mobile

How to run BlackBerry application in Background

怎甘沉沦 提交于 2019-12-08 04:32:24
问题 I am working on a BlackBerry Application which requires the application be running once its sent to the background also. I would really appreciate it if someone could guide me to any tutorials related to running background services in BlackBerry. 回答1: Background Application is a kind of process so you should extend Application instead of extending Uiapplication . In your main class implement all your code. You can also see this StackOverflow question for an example: Blackberry - Running

Disable TextField in J2ME

[亡魂溺海] 提交于 2019-12-08 04:26:06
问题 Is it possible to dynamically make TextField element disabled and enabled during the run time in Java ME? 回答1: according to API documentation, setConstraints(TextField.UNEDITABLE) could do something like that: Sets the input constraints of the TextField... Note if you need to preserve contents and modifier flags, parameter passed to above method might require some tweaking, like setConstraints((getConstraints() & TextField.CONSTRAINT_MASK) | TextField.UNEDITABLE) // "disable" - set UNEDITABLE