java-me

Java ME Calendar not displaying

北城余情 提交于 2019-12-12 19:17:59
问题 I've been following this tutorial here: Link to tutorial. I can't seem to get the application displaying properly though. When I run the application I expect to see a screen like CalendarCanvas from tutorial, but I get this: Here is my code, I'm using standard MIDP classes. Class CreateCalendar: import java.util.Date; import java.util.Calendar; import javax.microedition.lcdui.*; import javax.microedition.midlet.MIDlet; public class CreateCalendar { /** * Array of strings which holds data for

In ListCellRenderer getListCellRendererComponent() method called more than once while showing list in LWUIT

两盒软妹~` 提交于 2019-12-12 18:27:18
问题 I'm running S60 with j2me using LWUIT in Eclipse. I'm using this Tutorial Link.. for reference to draw list. but as i printed the position of list element drawing but it called more than once (i think for 3-4 times) i don't understand why ? And also responsiveness of list is also poor, takes lot of time to scroll down . As i'e seen some video examples of LWUIT list they are working faster and smoother as my list can not why ?? My code to parse and add values to list from json received public

How to Transfer Files using Bluetooth in android and PC or another android device

不问归期 提交于 2019-12-12 18:10:08
问题 I am trying to transfer file from PC to android phone and then vice versa or b/w to android phones but got stuck. i know android programming at a expert level, i know the bluetooth API in android and in J2ME i know the bluetooth chat application but dont get exact idea to get from this. Please help me any code that works any Concept any idea that would help will be really appreciated. 回答1: Here are a couple of links, I don't know how much they will help you because you know programming very

Displaying Arabic Text in J2me Using Eclipse

非 Y 不嫁゛ 提交于 2019-12-12 16:13:05
问题 I am new to J2me, kindly can anybody tell me how can I do below in J2me? String salam="اَللّٰهُمَّ اِنِّىْ اَسْئَلُكَ رِزْقًاوَّاسِعًاطَيِّبًامِنْ رِزْقِكَ"; byte[] bytes = salam.getBytes("UTF-8"); str1=new String(bytes); System.out.println("Arabic :"+str1); it is displaying سلام char like that I am using Eclipse Indigo Service Release 1. 回答1: The below code can be use for displaying arabic text in J2ME String s=new String("\u0628\u06A9".getBytes(), "UTF-8"); where \u0628\u06A9 is the

J2ME backlight

谁都会走 提交于 2019-12-12 15:40:26
问题 Is there any reliable way to support back-light in J2ME on multitude of models, other then pre-processing? Is there any library available that may handle the back-light for various phones out there? Regards. 回答1: This is not a direct control as in Nokia UI API, but there is a method in MIDP that controls backlight, it is Display.flashBacklight(int duration) . Unfortunately, phones are not obliged to obey this method. But this method is at least part of MIDP, not some proprietary API. 回答2:

J2ME WebServices

寵の児 提交于 2019-12-12 14:49:22
问题 I have created J2me application (prototype) and now I have to add web services to it which are written in .Net. How to do that? I'm looking for the procedure for developing j2me client in which I can pass parameters which are similar as in .Net web service. 回答1: As the sreehari explained, first you need to have JAX-RPC API to include in your project. Once you have done that, the next thing comes, How to call web service. Web Service can be created in any language like Java ( servlets ), PHP

Midlet must not closed even press cut button of device

穿精又带淫゛_ 提交于 2019-12-12 12:24:41
问题 I am working in J2ME. I want that my MIDlet must run for infinite time. It must not close even I press any of key from my device. Please help me what should I do for this? 回答1: If you are using a Nokia handset you can add Nokia-MIDlet-No-Exit: true in Jad file: http://library.developer.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-C5D3E0F5-72B9-4EE7-8BA7-20DE4A538FB8.html This other question is also about this minimizing a mobile application on exit button press 回答2: I'm afraid that

How to change Nokia full touch lwuit form header color

ぐ巨炮叔叔 提交于 2019-12-12 11:59:33
问题 I want to to change the header color of nokia lwuit based full touch form and i have tried setTitleComponent method but it is not working. Please also check the following link http://projects.developer.nokia.com/LWUIT_for_Series_40/wiki/UsingSeries40FullTouchFeatures in which it is mentioned we cannot style the header but is it means we cannot change the bgcolor as well or put custom images in the header? 回答1: Note that when using LWUIT for Series 40 port, the default way of running LWUIT

How to get the stacktrace in a mobile device?

这一生的挚爱 提交于 2019-12-12 10:50:05
问题 I'm getting a NullPointerException in a Nokia S40. I want to know what is causing this exception. The device shows: NullPointerException java/lang/NullPointerException This error only occurs in the device, running in the emulator the application works fine. I use microlog to debug my application. But the application works fine if the log is enabled. Is there a way to get the stack trace when I get this NullPointerException? I don't need all details like the line number just which method cause

J2ME development without Java?

别等时光非礼了梦想. 提交于 2019-12-12 10:49:18
问题 I'm making my first foray into the J2ME world. I'd prefer to use a functional language to do the development. Scala used to have CLDC support, but it's no longer maintained. Bigloo seems to have disappeared. Interpreters (such as Jython) are a no-go, since J2ME apps have to be small (at least, mine has to be). I would like to know of anyone who has been able to use another JVM language to build J2ME apps. 回答1: Running a different language on top of CLDC might be cool but the devices are