java-me

Is HTTP PUT supported in J2ME?

时光怂恿深爱的人放手 提交于 2019-12-07 07:03:38
问题 I just noticed a strange thing in MIDP 2.0 API: The HttpConnection class apidocs make explicit references to methods GET, POST and HEAD, but no other methods. Does this mean that they are not supported? http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/io/HttpConnection.html I also tried checking the MIDP 2.0 spec, but couldn't find any hard facts about this. I can give this a try on some phone(s), but can't try them all. Does anyone know which HTTP methods are required to

BlackBerry - KeyListener with global scope

南楼画角 提交于 2019-12-07 05:59:34
问题 I am new to BlackBerry App development. I want to be able to listen for keypress events whenever the BlackBerry (8900 in my case) is on and on all screens is this possible? If so, it would be great for someone to direct me in the right direction. I am already having a look at Interface KeyListener. import net.rim.device.api.system.*; Thanks all 回答1: Implement a keylistenerClass like: import model.Profile; import net.rim.device.api.system.KeyListener; import net.rim.device.api.ui.Keypad;

How to silence an incoming call

半城伤御伤魂 提交于 2019-12-07 01:40:45
问题 I am trying to silence an incoming call and prevent the BlackBerry device from ringing. I tried Alert.setVolume(0) and some EventInjector keys but this didn't work. So how to silence an incoming call? 回答1: I was puzzled by your question and decided to take up the challenge. I tried different thing including Playing a "silence" audio file hoping to overlap the device's ringing or occupy the media player Hacking the phone screen via UiApplication.getUiApplication().getActiveScreen() Injecting

Disable TextField in J2ME

主宰稳场 提交于 2019-12-06 21:38:34
Is it possible to dynamically make TextField element disabled and enabled during the run time in Java ME? 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 above to disable, and to enable back, something like: setConstraints((getConstraints() & TextField

How to get and set JSONObject , JSONArray in J2ME

无人久伴 提交于 2019-12-06 19:53:23
I am new to JSON programming in J2ME. I discovered that Json is used to exchange data much like XML. I want to know about the exchange in Array object from JSONtoObject and vice versa Below written is code where I convert from JSON to Object and vice versa. But I don't know about how to do for complex data structure like arrays etc. // App Loader import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; public class AppLoader extends MIDlet { public AppLoader() { // TODO Auto-generated constructor stub // Converting Object to JSON UserData data=new

Png Image support of J2ME WTK Emulator

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 15:53:58
I use a png image in my project that is not displayed in emulator but it can be displayed in phone. Then i open it with photoshop, save as png and use that image. It is displayed both emulator and phone. I couldn't figure out the difference of original and edited one. And is there any setting of emulator for image display? And how can i understand any png file is supported or not? original image edited image I preferred PNG files is good for MIDP. You can check following links, It will helps you. What image types does MIDP support? Image Formats in J2ME 来源: https://stackoverflow.com/questions

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

ε祈祈猫儿з 提交于 2019-12-06 15:44:26
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 applications. I am looking at NetBeans 6.8 and Eclipse 3.6. Do you have any recommendations for why

How to run BlackBerry application in Background

巧了我就是萌 提交于 2019-12-06 15:12:59
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. BBdev 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 Background Application Ashish Agarwal RIM has posted an article about running applications in background on

How to implement auto-update feature in blackberry

六月ゝ 毕业季﹏ 提交于 2019-12-06 14:57:55
问题 I want to develop code which can be integrated with my blackberry applications. This will check server whether is there any new versions available and if it finds one, then it will automatically download, install or replace the old version, run the newly installed app. The goal is no user input required. 回答1: The following suggestion works for OTA installations. I'm not sure how BlackBerry World handles this. You can have a service that returns the latest version of the application. The

Adding JSpeex Jar file to Blackberry Project

◇◆丶佛笑我妖孽 提交于 2019-12-06 14:36:50
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. 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 Library Another way is to extract your jar file (change the file ending to .zip instead of .jar and extract