java-me

android Dx warning: Ignoring InnerClasses attribute for an anonymous inner class jar file issue

北战南征 提交于 2019-12-19 07:48:13
问题 i have used lcrypto-j2me-144.jar jar file to encrypt the user name and password in my application it is running fine but when i look into console it is giving me , basically it is j2me jar file, please guide me to get rid of this issue. Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.bouncycastle.asn1.ASN1Sequence$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class

The Cause of InterruptedException

浪子不回头ぞ 提交于 2019-12-19 07:09:26
问题 From J2me doc we know that: java.lang.InterruptedException Thrown when a thread is waiting, sleeping, or otherwise paused for a long time and another thread interrupts it. The question is if it's posible to get such exception if from one thread i call Thread.Interupt() for other thread where Run() method of other thread waiting on InputStream.Read(char[]buf) ? 回答1: The behavior of blocking read in response to thread interrupt is, in fact, undefined. See this long-standing bug for details. The

BlackBerry - How to add content to the Home Screen?

自古美人都是妖i 提交于 2019-12-19 04:50:18
问题 In the Windows Mobile world you can create a so-called Today plugin that adds content to the phone's main screen -- the one where you see the number of missed calls, unread sms and upcoming events. Is it possible to do something similar on the BlackBerry? I'd like to show some important info there, so that they are as visible and as easily reachable as possible. 回答1: To provide some information on the Home Screen you can use App Icon: Add a notification icon at the status bar in BlackBerry

Issue in PopUpScreen

╄→гoц情女王★ 提交于 2019-12-19 04:07:48
问题 OnClick of an image I am popping up a screen which has dropdown code, where I have to select the data and pass it to the screen from where it was popped up, after selecting the data from the dropdown the popupscreen should disappear passing the selected ocf value to the firstscreen. I am not able to hide the popupscreen after selection and am not able to pass the data back to the first screen This code will call a popup screen if (field==bitmapField1) { UiApplication.getUiApplication()

Why can't we directly call the run() method?

笑着哭i 提交于 2019-12-18 19:24:14
问题 If the start() method of a thread internally calls the run() method, then why don't we directly call the run() method in our code? What are the issues involved in doing so? 回答1: The start method makes sure the code runs in a new thread context. If you called run directly, then it would be like an ordinary method call and it would run in the context of the current thread instead of the new one. The start method contains the special code to trigger the new thread; run obviously doesn't have

How to get IMEI for J2ME supported all devices? [duplicate]

我与影子孤独终老i 提交于 2019-12-18 12:37:49
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: how to dynamically get mobile IMEI number in J2me? is there any way to get IMEI for J2ME supported all devices??i did some googling and find out the below solution but it is for device specific. Nokia. System.getProperty("com.nokia.IMEI"); SonyEricsson System.getProperty("com.sonyericsson.imei"); Motorola System.getProperty("com.motorola.IMEI"); is there any generic way to fetch IMEI for all devices?? 回答1: There

J2ME Midlet - Self-signed certificate

北城以北 提交于 2019-12-18 09:31:28
问题 I want to sign my application but I don't want its users to install certificates on their phones before installing my application. Is it possible to sign j2me midlet with self-signed certificate? 回答1: This is possible, for this you need to purchase signing certificate from the verisign. I do have same sign certificate, which costs 20000 Rs ( one time ). 来源: https://stackoverflow.com/questions/8164122/j2me-midlet-self-signed-certificate

j2me/BlackBerry - How to send Email with Attachment from Application?

守給你的承諾、 提交于 2019-12-18 09:23:14
问题 hey i am building an application in which user can send an email to a person. The user enters the email id of the person to whom email is to be sent in a Edit field and then presses a send button the email must be delivered with an attachment. how can i do it?????? i m really confused after googling. can someone tell me the exact way also,cant i send email from simulator if my cod file is unsigned thanks in advance 回答1: Try this. Address[] address = new Address[1]; try { address[0] = new

XML parsing not working on android build of lwuit app

有些话、适合烂在心里 提交于 2019-12-18 09:08:21
问题 I use Kxml2 parser to parse the xml response I get as a response from a remote page. It is for user authentication, and the returned xml gives several details about the user. The app is built with LWUIT 1.5 and it works on MIDP and Blackberry versions. On the Android version it doesn't work. Is there any extra specification I am supposed to add, for Android to work properly? 回答1: There is a XMLParser in LWUIT, is very easy to use. You can try to use it. It works fine in my MIDP and BB apps. I

ClassFormatError: 56 while using hessian in j2me

浪尽此生 提交于 2019-12-18 09:07:14
问题 I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone mentions the usage for j2me. The application builds without any errors/warning. But, the moment the line where MicroHessianOutput is instantiated is hit, a ClassFormatError ( java.lang.Error: ClassFormatError: 56 ) is thrown. Heres the trace : TRACE: <at java.lang.Error: ClassFormatError: 56>, startApp