java-me

Blackberry java show recieved push message

♀尐吖头ヾ 提交于 2019-12-08 04:13:33
问题 After referring tons of tutorials finally somehow I managed to develop java push client for Blackberry OS 7.0 (registering in RIM and server side are completely ok, this is the server script). Now the program running on the device and when new push massage revived there is a little arrow blinking on right up corner of the device, but I haven't that much knowledge to show that message in a label field or any other UI component. Please tell me how to show the revived push message in a screen. I

J2ME: platformRequest Issue

无人久伴 提交于 2019-12-08 04:12:29
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 wrong I am doing? Any alternative to platformrequest method? How to call a number in below format: *123

Control Volume Code for J2ME

十年热恋 提交于 2019-12-08 04:03:21
问题 I have nokia xpressmusic 5130 c-2 working on symbian (j2me) the volume buttons has been broken, so i decided to make a j2me program to control the volume (increase,decrease) I have found many codes through the internet but often not work or have many errors because not complied with the program flow diagram and screen regards 回答1: If the device have support to the JSR 256: Mobile Sensor API, then you can use your API: http://jcp.org/en/jsr/detail?id=256 My class that uses the JSR 256: /* *

Convert integer to character int j2me

雨燕双飞 提交于 2019-12-08 03:24:04
问题 I want to convert the integer into char. Example:- char c; for(int i=0;i<10;i++){ system.out.println(" char==="+c); } I want to print the c as 0,1,2,3,4..... I had tried :- c=(char)i; --gives error c=97-i; -----gives a,b,c 回答1: Use wrapper classes. c = new Integer(i).toString().charAt(0); by the way, you can also use this : c = (char)(i + 48); 回答2: Character.forDigit() http://download.oracle.com/javase/6/docs/api/java/lang/Character.html 来源: https://stackoverflow.com/questions/6210901/convert

Receive sms on specific port j2me

ぐ巨炮叔叔 提交于 2019-12-08 02:51:33
问题 I am developing j2me app. I need to receive sms on specific port. Which is the best port to define for receiving sms? Thanks for advice 回答1: The SMS spec (JSR 120) says you can't have a port that another app is using at that time, and also you can't have any of the ports that are specified in the following table. For security reasons, Java applications are not allowed to send SMS messages to the port numbers listed in Table A-4. Implementations MUST throw a SecurityException in the

Don't let the display go to stand-by in JavaME

纵然是瞬间 提交于 2019-12-08 02:29:04
问题 Im streaming video to my MIDLET. And while it is playing it, after 20 seconds (depends on a system setting) display on the phone goes to stand-by mode. How can I prevent this so I can watch the video for 5 minutes for example without having to tap something to wakeup the display? 回答1: Yeeeey I figured it out!!! But its a little hack and not the actual "Dont-Go-To-Stand-By" functionality... nevertheless it works PERFECT !!!! =D Ok so the idea is to define the timeout that the display needs to

What format should my Blackberry application be in to submit to App World?

时间秒杀一切 提交于 2019-12-08 02:21:40
问题 I already have an installation using .alx/.cod files that we use to install our Blackberry application via Desktop Manager, and also an "over the air" install version consisting of a .jad file and .cod files (uncompressed and no larger that 64K as specified by the mime type) that is downloaded from our website. What format should I upload the application to App World as? I gather all the files should be in a zip file but apart from that I'm struggling to find much more information on the RIM

J2me -Polish ---Problem related to create and build the project

别等时光非礼了梦想. 提交于 2019-12-08 02:15:46
问题 I am beginner of j2me-polish.I had installed j2me-polish2.1.4.As per the steps shown in below link:- http://www.j2mepolish.org/cms/leftsection/documentation/installation/ide-integration/netbeans/installation.html After installing it,I tried to create project by following the step in below link:- http://www.j2mepolish.org/cms/leftsection/documentation/installation/ide-integration/netbeans/creating-projects.html But i am unable to create the project.it is showing me reference problem.And wen i

Blackberry HttpConnection and query string

元气小坏坏 提交于 2019-12-08 02:15:01
问题 I've been having some trouble connecting to a uri when I append a query string... I always get back 400 http code... however when I try the browser, same url, everything goes smooth... This is what I have: String query = "q=hello"; byte[] queryBytes = query.getBytes(); Somewhere in my code I open an HttpConnection using the queryBytes like this: String uri = "https://www.google.co.ve/search" + "?" + new String(queryBytes); HttpConnection request = (HttpConnection) Connector.open(uri); request

J2ME development and native API

♀尐吖头ヾ 提交于 2019-12-08 01:43:04
问题 Is it possible to write a mobile application with J2ME and whenever we want to implement a functionality not offered by J2ME call native mobile API ? (kind of like what is done with .NET, whenever you need something not provided, you just call the Win32 API from the .NET platform). 回答1: No. That's not possible with Java ME. 回答2: While JNI is not officially supported in J2ME, the Symbian implementation of J2ME obviously uses something very similar. Since most J2ME APIs have a corresponding