java-me

left and right command menus in LWUIT form

元气小坏坏 提交于 2020-02-02 02:20:51
问题 Using LWUIT framework to develop mobile application. In LWUIT by default first command is placed in the left and subsequent commands will be placed in the right menu of the form including the command which is already placed in form left.I need to add two menus to form.Left menu contains general application specific commands such as "Minimize","Back" and "Exit". Right Menu contains screen specific commands such as "Play Audio","Play Video" etc... Initially left softbutton of the form contains

How Long Does it Take to Learn Java for a Complete Newbie? [closed]

点点圈 提交于 2020-01-30 14:05:50
问题 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 absolutely no programming experience but need to learn Java - enough to take a J2ME fasttrack course. I only have 10 weeks. Can

How to download images from a computer ( webserver ) to a phone mobile?

China☆狼群 提交于 2020-01-25 12:29:45
问题 I want to download photos from a computer webserver to a phone mobile device by using java j2me. How to achieve that ? 回答1: Use this method and pass the download URL. private Image getImage(String url) throws IOException { ContentConnection connection = (ContentConnection) Connector.open(url); DataInputStream iStrm = connection.openDataInputStream(); ByteArrayOutputStream bStrm = null; Image im = null; try { byte imageData[]; int length = (int) connection.getLength(); if (length != -1) {

Tunnel Failed, BlackBerry Curve 8900

泄露秘密 提交于 2020-01-25 10:34:05
问题 I have a MIDlet that sends TCP messages over the network to a server residing on the same internal network. Whenever I try to connect using this line: StreamConnection writeSock = (StreamConnection) Connector.open("socket://" + serverIp + ":" + serverPort, Connector.READ_WRITE); I get an error saying Tunnel Failed According to netstat, the port on which the server is set to listen is actually open and in listening mode. I printed the IP and Port values from the mobile application and they

static variables keep values from previous launch

五迷三道 提交于 2020-01-25 04:19:12
问题 My j2me application call destroyApp() and notifyDestroyed() when it wants to be closed when I run it on blackberry, in the second launch the static variables will have the same values they had in previous run. Why they don't get the initial value? How can I make sure the application initialize static variables? 回答1: This discussion at Blackberry support forums suggests that it is a known issue with BlackBerry MIDlets - at least with those using static push registries. Workarounds they suggest

How to skip the questions when using FileConnection?

限于喜欢 提交于 2020-01-25 00:16:14
问题 I want to display photos stored in the phone , and I use the FileConnection and the openInputStream stuff. The problem is that there are many questions that I must accept when launching the program ; they are all about access to the file system or a particular file. So how to "skip" these questions , that is accept all of them programmatically, so they do not appear when launching the application ? 回答1: Basically this type of alerts asking for security purpose. Because you are using

Is there any mobile testing tools?

Deadly 提交于 2020-01-24 21:40:12
问题 I want to ask about a tool or software to test j2me mobile app. On different screens and different devices. Also if available to test if application not certified or try to steal user data Preferred free if exist. 回答1: you can download the Emulators for testing from following sites, Sprint SDK Sony Ericsson SDK Samsung SDK Motorola SDK [ Link not found. ] Nokia SDK Oracle Java ME SDK And you can also test your application on Nokia RDA devices. see this site. Nokia RDA devices 来源: https:/

How to fix Netbeans 8.0 not detecting Java ME

佐手、 提交于 2020-01-24 19:33:15
问题 I am trying to set up NetBeans 8.0 for development in Java ME (I know this is legacy software, but it is the only software I know of that supports Java ME), however, NetBeans will not detect my Java ME platform in the platform manager any time I try to load it. You can view this error here. My version of Java is 1.8.0_201. The log from the Java ME SDK reads: [2019-02-16 09:20:12.444] INFO - lkit.bootstrap.DeployerManager - Registering custom property editors [2019-02-16 09:20:12.463] INFO -

Which phones support which J2ME (Java Micro Edition) spec?

自古美人都是妖i 提交于 2020-01-22 13:58:28
问题 I just can't find an up-to-date chart about which mobile devices support which Java Micro Edition version. I'm especially interested in Nokia smartphones and their support for the new JME 3.0 . (I wonder that Sun doesn't seems to provide such information.) Please, provide me some links, if you know any! EDIT: I'm probably mixing things up: MIDP seems to be the mobile Java platform , while J2ME 3.0 is a SDK for it, right? 回答1: Nokia device specs, including supported JSRs: http://www.forum

scroll change listener on blackberry

独自空忆成欢 提交于 2020-01-17 08:11:24
问题 When I execute the following code on a simulator it throws stackoverflow error. I think the error came for, Each newhorizontalScroll value when I scroll. How to avoid it or how to calculate the final horizontal scroll value? int customfiledwidth = Display.getWidth()/3; HorizontalFieldManager horizontalScrollLayout = new HorizontalFieldManager(HorizontalFieldManager.HORIZONTAL_SCROLL) horizontalScrollLayout.setScrollListener(this); // i add number of customfield on horizontalscrolllayout.....