midp

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

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

How do I read strings in J2ME?

拥有回忆 提交于 2019-12-18 09:03:06
问题 I'm using the MIDP 2.0 (JSR 118) and I just noticed that there is no reader for strings in J2ME. Does anyone know how you are supposed to read Strings from an InputStream or InputStreamReader in a platform independent way (i.e. between two java enabled cell phones of different models)? 回答1: Alternatively have a look at DataInputStream.readUTF(). It does required that the string being read off the InputStream be encoded appropriately (as in by a corresponding DataOutputStream.writeUTF(String))

Database in J2ME

扶醉桌前 提交于 2019-12-18 05:13:16
问题 I am new in J2ME. In my Application, I want to add the Multiple Records in the Record Store and also want to access it. How can I add the multiple Records in the Record Store and how can I access it? 回答1: Here is my library code for RMS, just study it, it is very easy to implement, all the methods like insert,updated, delete is there. import javax.microedition.rms.RecordEnumeration; import javax.microedition.rms.RecordStore; import javax.microedition.rms.RecordStoreFullException; import javax

FileConnection permission messages in j2me midp 2.0?

别说谁变了你拦得住时间么 提交于 2019-12-17 21:59:51
问题 I am using midp 2.0. Here, I am using FileConnection for read and write files on mobile memory. I am able to read and write files on mobiles successfully. But while I am trying to write file data on mobile, it asking message like below. Application wants to read from the local file system is it OK to read your files? if I press yes, then it again shows Application wants to write to the local file system is it OK to update your files? These message are continuously showing approximately 10

Image rotation algorithm

那年仲夏 提交于 2019-12-17 18:21:38
问题 I'm looking for an algorithm that rotates an image by some degrees (input). public Image rotateImage(Image image, int degrees) (Image instances could be replaced with int[] containing each pixel RGB values, My problem is that i need to implement it for a JavaME MIDP 2.0 project so i must use code runnable on JVM prior to version 1.5 Can anyone help me out with this ? EDIT: I forgot to mention that i don't have SVG APIs available and that i need a method to rotate by arbitrary degree other

Java ME help displaying calendar canvas from Nokia tutorial

浪尽此生 提交于 2019-12-14 03:28:31
问题 I've been following below tutorial on how to create a calendar widget in Java ME. I can't seem to get it to work. When I run the application it just says it's running in the background. I guess I'm not initializing it properly. Where exactly to put the code located at the bottom of the page to make it display to the java phone screen? The link to the tutorial is here apart from a few minor variable name differences the code is identical. http://www.developer.nokia.com/Community/Wiki/Building

Mp3 Streaming Using Player Switching

白昼怎懂夜的黑 提交于 2019-12-13 18:34:16
问题 I am developing a sample application which can play shoutcast mp3 streams (Developing for S40 platforms, CLDC 1.1, MIDP 2.0). I am using two players switching for continues play back. I used the below logic for streaming. Buffer enough chunks Start Player1 Wait Player1 to finish Start Player2 Wait Player2 to finish repeat... 2 The problem is, listener can feel 1 Second silence (Gap) while switching between players. I would like to know is it possible to stream audio from server without gaps

Desigining a Form in j2me [duplicate]

删除回忆录丶 提交于 2019-12-13 18:08:17
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Desigining a Form in j2me I have created a Form with str 1 and str 2 as StringItem and added them on Form. Then i have added addCommand() method to str1 and str2 and when I click on Next button it should display an alert as Category 1 when clicked on category 1 and When category 2 when clicked on category 2 StringItem. Please suggest a solution What should I write in if loop of Command Action () method so that

Local database in j2me midp 1.0

杀马特。学长 韩版系。学妹 提交于 2019-12-13 00:36:12
问题 I am developing one application in J2me MIDP 1.0 It requires local database management. I have heard about recordStore but can we use it for permanent storage? 回答1: Yes, your application can store data using a RecordStore, and you can get it back later even if the application or the phone has been shut down. EDIT: One example I found: http://www.roseindia.net/j2me/read-write-midlet.shtml 回答2: RecordStore, or more generally, MIDP RMS API is intended just for use for permanent storage : ...The