midp

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

Java VM Best choice for windows CE [closed]

被刻印的时光 ゝ 提交于 2019-12-12 19:13:35
问题 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 . What is, currently, the best choice to run MIDP applets in a Windows CE based System? 回答1: We use IBM's J9 JVM on Win CE. You don't

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

Data in J2ME RecordStore does not persist across sessions

只愿长相守 提交于 2019-12-12 07:22:40
问题 I'm building a mobile app with J2ME, and I've found that the data I write into a RecordStore can be accessed while the program is still running but it is lost after quitting and restarting it. No exception is thrown, the data is simply lost. UPDATE: Thanks everyone for your suggestions. I'm using NetBeans on Windows 7. I'm not sure if it is using the WTK version I have previously installed or another one it has installed somewhere else. I've checked my WTK folder for the files Pavel wrote

Can I have CustomItem and Canvas class on same Screen in j2me

可紊 提交于 2019-12-12 02:57:14
问题 Can I have CustomItem object and Canvas class on same screen in j2me? I created a Tab Menu which extends Canvas and then a custom Header class which extends CustomItem class so I want it to integrate in one form. Can I do it? 回答1: As long as Tab Menu extends Canvas, there is no way to integrate it into Form with MIDP 2 API. To integrate it into Form I would probably just redesign that Tab Menu to extend CustomItem instead of Canvas. That way would make it possible to have it on same form

Xml Dom Parsing in J2ME

谁说我不能喝 提交于 2019-12-12 00:21:59
问题 In my J2ME Application, I can get the xml data as a string from Server, but I can't be able to read the tag and its elements through code. Please suggest me some solution for it. 回答1: If your target device has JSR 172 you can use SAX or DOM . If not you can try kxml2. There is a nice introduction to it at http://www.developer.nokia.com/Community/Wiki/XML_Parser_in_Java_ME 来源: https://stackoverflow.com/questions/12858576/xml-dom-parsing-in-j2me

Make j2me Alert Dismiss button invisible

吃可爱长大的小学妹 提交于 2019-12-11 13:19:32
问题 Is there any way to not show the default dismiss button when I set Alert to FOREVER? I was following the following post but it shows me a button with no characters. http://code-gotcha.blogspot.com/2011/09/dismiss-button-in-nokia-alert.html?showComment=1346738220258#c4876777871081894195 alert.addCommand(new Command("\u200B", Command.OK, 1)); //we dont like to see the DISMISS command, so adding an invisible command I am using LWUIT forms but have just invoked j2me native alerts to give the app

Insert Form with gauge in Canvas J2ME

北城余情 提交于 2019-12-11 10:45:48
问题 I want to know if it is possible to somehow show a gauge in a canvas? I want to make a custom alert with a spinner. But I want to reduce the height of the form to let's say 1/4th of the screen size. Could anyone tell me if its possible? 回答1: If you want something like a spinner in a Canvas you need to draw it yourself using graphics primitives, and animate using Display.callSerially(). Instead of drawing it yourself you could include each frame of the spinner as an image. You'd still need to

In J2ME, is that possible to operate an Alert dialog box with Yes & NO command?

﹥>﹥吖頭↗ 提交于 2019-12-11 06:28:15
问题 I have created an Alert dialog box in my J2ME app to alert user when user press exit button to terminate an app and ask user confirmation to exit from app with yes and no command. When user press Yes button app will terminate and when user press No button app will return to its Main form. To do this I developed a code from scratch which are as follows: public class CustomAlert extends MIDlet implements CommandListener { Alert ExitAlrt; Display d; Command MainListSelect, Exit, YesCmdAlrt,

WebDAV with J2ME

元气小坏坏 提交于 2019-12-11 06:07:24
问题 Is there a way to use WebDAV with J2ME (some libraries or manual coding)? I've tried: - javax.microedition.io.HttpConnection, but "SEARCH" method not supported there - javax.microedition.io.SocketConnection with Http request - nothing returns in response Maybe something wrong with my code or HTTP header: String response = ""; String query = "<?xml version='1.0'?> " + "<g:searchrequest xmlns:g='DAV:'> " + "<g:sql> " + "SELECT 'DAV:displayname' " + "FROM 'http://exchangeserver.com/Public/' " +