java-me

Compression in J2ME

佐手、 提交于 2019-12-24 07:56:49
问题 Are there any OSS compression libraries (gzip) available for J2ME? 回答1: Have a look at the TinyLine GZip library. Download link here. 回答2: software.informer.com/getfree-gzip-library-for-j2me/ swik.net/j2me+Library try this link you can download free here 回答3: Jazzlib-j2me (java.util.zip implementation in J2SE ported to J2ME) is available here: http://code.google.com/p/staff/downloads/list?q=jazzlib gzip and gunzip is supported. 回答4: The two compression algorithms which I have used for JavaME

Is it possible to use Twitter and Facebook APIs on J2ME platform?

核能气质少年 提交于 2019-12-24 07:40:03
问题 I googled and I can't find it is possible, someones said that j2me don't support REST communication or there are problems with login. Is it possible? 回答1: Sure, it's definitely possible. There are plenty of examples of Twitter and Facebook Java code. Update: I missed that the question was about J2ME. While it looks like none of the existing Twitter and Facebook libraries would work, you can make HTTP connections in J2ME, so REST queries should be possible. 来源: https://stackoverflow.com

LWUIT Localize MenuBar

巧了我就是萌 提交于 2019-12-24 07:38:07
问题 I'd like to localize the MenuBar of an LWUIT form . I don't want to show the users "Menu" / "Select" / "Cancel". I've successfully localized single commands, which get shown when the Menu opens, via back.setCommandName("bk"); searchCommand.setCommandName("search"); exit.setCommandName("ex"); mainMenu.addCommand(back, 0); mainMenu.addCommand(searchCommand, 1); mainMenu.addCommand(exit, 2); For the MenuBar I tried MenuBar m = NameOfMyForm.getMenuBar(); m.setName("test"); mainMenu.setMenuBar(m);

Available RecordStore size

谁说胖子不能爱 提交于 2019-12-24 06:36:10
问题 How can I get the total ROM memory size available for Recordstore in a midlet ? 回答1: You can try creating an empty record store and using the methods RecordStore.getSizeAvailable() and RecordStore.getSize() to determine the total maximum size of a single record store. From experience most devices don't put a restriction on the number of record stores your application can create. 来源: https://stackoverflow.com/questions/3792074/available-recordstore-size

EclipseME - Network permission

a 夏天 提交于 2019-12-24 05:01:44
问题 I have a j2me project that works fine in netbeans. Since i need to develop a android version i have moved to Eclipse. I have downloaded Eclipse ME and imported the j2me project. Im able to run the app, but i dont get "Is It Ok To Use Airtime" permission. I checked the jad and all the permissions are there. Emulator is "Sun Java(TM) Wireless Toolkit 2.5.2_01 for CLDC". Any idea why the internet connection is not working? 回答1: See this article. Here clearly described briefly. Even you can check

Accesing a function via string stored in Hashtable

孤人 提交于 2019-12-24 04:25:05
问题 If I have function names stored as strings in a Hashtable. Is there a way to access the functions via the stored strings? EDIT I'm afraid the platform that i'm working on CLDC1.1/MIDP2.0 does not support Reflection. Any workaround possible? 回答1: Just use a big long list of else-ifs: [...] } else if ("foo".equals(function)) { target. foo(); } else if ("bar".equals(function)) { target. bar(); [...] (Although I generally don't like attempting vertical alignments in source, I think in cases like

Upload a wav file using J2ME

这一生的挚爱 提交于 2019-12-24 04:07:13
问题 I am trying to upload a wav file to server using j2me httpconnection. However I am not able to do it. It throws null pointer exception when it's writing the bytes to the server. Sample is below. Exception is thrown at os.write(postBytes); line. Anyone with any idea? And the file I am uploading is test.pcm . public String send() throws Exception { form.append("Inside Send()"); bos = new ByteArrayOutputStream(); try { form.append("Making connections"); hc = (HttpConnection) Connector.open(url,

Stub files using a WSDL file in j2me

青春壹個敷衍的年華 提交于 2019-12-24 04:04:26
问题 Is it possible to generate stub files using a "WSDL" file? I know how to generate stub files using wscompiler in j2me. I have a wsdl file is it possible to create stub files using it? I am using these stub files in my j2me application. 回答1: there are several ways to generate stub files Using wscompile you can generate stubs follow this link. The wscompile command line reference can be found here. Using net beans creating j2me web service client . 回答2: you can use J2ME's Wireless Toolkit for

Stub files using a WSDL file in j2me

我们两清 提交于 2019-12-24 04:04:25
问题 Is it possible to generate stub files using a "WSDL" file? I know how to generate stub files using wscompiler in j2me. I have a wsdl file is it possible to create stub files using it? I am using these stub files in my j2me application. 回答1: there are several ways to generate stub files Using wscompile you can generate stubs follow this link. The wscompile command line reference can be found here. Using net beans creating j2me web service client . 回答2: you can use J2ME's Wireless Toolkit for

access to sms inbox

雨燕双飞 提交于 2019-12-24 04:01:34
问题 How can I access the SMS inbox from an application (on Symbian s60)? Us it possible with j2me? How about C++ or Python? 回答1: Reading message from inbox in j2me is not possible if you want to read sms then you can send message using particular port and your j2me application should listen on that port otherwise you can go with symbian c++ where it is possible. 回答2: In j2me, you can't access the native message box related stuff like Inbox, Sent Message or etc. But it is possible in c++. I don't