java-me

J2ME app File size

痞子三分冷 提交于 2019-12-25 04:54:06
问题 i have doing j2me app using LWUIT lib. it get nearly 600kb. then i have use net-bean default Obfuscation tool. but still it size is not less than 430kb. any idea? 回答1: check your resources, they might be too large. Also make sure there aren't any hidden files in your jar file, for example make sure the Thumps.db which generated in windows is not there! 来源: https://stackoverflow.com/questions/3931422/j2me-app-file-size

Using Ruby on Windows Mobile Devices

大憨熊 提交于 2019-12-25 04:38:07
问题 As far as I know, JRuby runs only on full JVM. I found this version of JRuby which runs on Java Micro Edition devices, however it's marked as EXPERIMENTAL AND RESEARCH ONLY Are there any other options for running Ruby application on Windows Mobile devices? 回答1: I'm not sure what you are asking. Your title and your question refer to Ruby, but your description talks about JRuby. Which are you asking about? I know regular Ruby can run on Windows Mobile (see Rhodes, for example, or RubyOnMobile).

Is it possible to save BBM chat in a text file using J2ME in Blackberry

不羁岁月 提交于 2019-12-25 04:05:46
问题 As far as i know, i can use javax.microedition.io.file.FileConnection for the required purpose. But i need an example. Why i can't i use java.io.FileOutputStream , and use this piece of code instead: FileOutputStream fout; try { // Open an output stream fout = new FileOutputStream ("myfile.txt"); // Print a line of text new PrintStream(fout).println ("I'm making an app on android!"); // Close our output stream fout.close(); } // Catches any error conditions catch (IOException e) { System.err

HashTable to Lwuit Table

回眸只為那壹抹淺笑 提交于 2019-12-25 03:52:43
问题 Hashtable iHashtable=new Hashtable(); iHashtable.put("Name", "Jhon"); iHashtable.put("Address","India"); Enumeration iEnumeration=iHashtable.keys(); while(iEnumeration.hasMoreElements()) { Object iresult1=iEnumeration.nextElement(); String iresult2=(String) iHashtable.get(iresult1); System.out.println(iresult1); System.out.println(iresult2); My problem is I want to put the value at LWUIT table dynamically using the HashTable key and value,here is iresult1 and iresult2,using the key and value

HashTable to Lwuit Table

独自空忆成欢 提交于 2019-12-25 03:51:08
问题 Hashtable iHashtable=new Hashtable(); iHashtable.put("Name", "Jhon"); iHashtable.put("Address","India"); Enumeration iEnumeration=iHashtable.keys(); while(iEnumeration.hasMoreElements()) { Object iresult1=iEnumeration.nextElement(); String iresult2=(String) iHashtable.get(iresult1); System.out.println(iresult1); System.out.println(iresult2); My problem is I want to put the value at LWUIT table dynamically using the HashTable key and value,here is iresult1 and iresult2,using the key and value

Which mobile operating systems support J2ME?

被刻印的时光 ゝ 提交于 2019-12-25 03:44:01
问题 I've been tasked with using WURFUL to determine whether or not a mobile browser is capable of downloading a J2ME app developed by my company. I first thought I could use the "device_os" tag and filter by that, however, I'm unsure what the complete list of J2ME OS's are... any ideas? I've been told there are no MIDP requirements, and that the application will run on any J2ME-supported handset (with two specific resolutions, which I already know how to query) Thanks in advance. 回答1: There is no

Custom creation of cells in a LWUIT Table in J2ME

ⅰ亾dé卋堺 提交于 2019-12-25 03:36:45
问题 I am trying to create a LWUIT Table in my J2ME application where all cells in one column are of a particular type e.g. TextField taking decimal input. Could anyone please suggest of achieving this or even another approach I could take? 回答1: I was looking in the wrong area. Instead of using ListCellRenderer I extended the Table object and overrode the createCell method. public class CustomTable extends Table{ public CustomTable(TableModel model) { super(model); } protected Component createCell

BouncyCastle provider in j2me

匆匆过客 提交于 2019-12-25 03:11:52
问题 Where can I find examples that implements ECDSA and ECDH using light weight version of bouncycastle and uses bouncy castle provider dynamically? 回答1: The bouncycastle java crypto library has two basic modes. It can be use as a JCE provider, and as a standalone library accessed through its lightweight API. You can even use both at the same time if you prefer, EXCEPT in J2ME (now known as JME). You can only use the lightweight API in J2ME. You can find the J2ME version of the bouncycastle

can i use java library for java se in java me

丶灬走出姿态 提交于 2019-12-25 02:32:59
问题 can i use java library for java se in java me. i use smack java library to create a chat client. can i use the same libary to create a chat client for javame. 回答1: Probably not. Java ME uses an old version of the Java language and the java byte code specification, also a lot of the basic standard library functions are not present. The networking library functions are completely different for instance. It is very unlikely that a modern Java lib can be used in java ME without serious

sending email with pdf attachment in blackberry

元气小坏坏 提交于 2019-12-25 01:49:12
问题 I need to integrate mail service in my application. My application should send the email, which has to attach a .pdf file (detailed report). PDF file is now at remote server. Can anyone help me to understand how to send mail with pdf attachment in blackberry? If, it is feasible to implement then how would i go with this? Below are the links, I have got from Blackberry knowledge base forum for sending mail in blackberry How To - Create an attachment How To - Create and send messages 回答1: I