java-me

Sending SMS using Java ME application

流过昼夜 提交于 2019-12-30 13:59:23
问题 I want to a Java ME application that transfers any SMS received to a PC using bluetooth. The PC can then direct the Java ME application via bluetooth to send a response SMS. Is there library available for this architecture or I have to design it myself? Is this approach correct or a better one exists? I want to use bluetooth as then I will not have dependency on the cable. 回答1: You'll need to create this yourself, however you'll find that you can't do what you want with J2ME. J2ME can't

Sending SMS using Java ME application

心不动则不痛 提交于 2019-12-30 13:58:07
问题 I want to a Java ME application that transfers any SMS received to a PC using bluetooth. The PC can then direct the Java ME application via bluetooth to send a response SMS. Is there library available for this architecture or I have to design it myself? Is this approach correct or a better one exists? I want to use bluetooth as then I will not have dependency on the cable. 回答1: You'll need to create this yourself, however you'll find that you can't do what you want with J2ME. J2ME can't

List with checkbox using LWUIT

我与影子孤独终老i 提交于 2019-12-30 13:00:20
问题 I am using LWUIT for getting a search facility for selection in the List . Now I want to know how can I display the list with CheckBoxes ? list=new List(vector); cform.addComponent(list); cform.addComponent(t); cform.show(); 回答1: I don't know if there is a more simple solution then mine, but mine is highly customizable and can serve for a lot of purposes. List l = new List; Vector v = new Vector(); for(int i = 0; i < 10; ++i){ v.addElement(new CheckItem("itemtekst")); } l.setListCellRenderer

j2me - How to create a master-details UI

无人久伴 提交于 2019-12-30 12:23:44
问题 I'm stuck in the middle of j2me project because I have no idea how to do something that would be easily done in other platforms, but that doesn't seem to have a direct solution in java me/j2me. What I need to do is this (it doesn't matter if it is with Netbeans MIDP components, LWUIT or plain lcdui) I have to display a list of customers (read from a web service) in some sort of table, and when the user navigates up or down the rows, a "Details" command must be shown so that the user can see

Blackberry date time string formatting

こ雲淡風輕ζ 提交于 2019-12-30 11:47:46
问题 I need to parse the date/time string, to add the raw offset and convert it according to local time zone. The date time that I get from server is in this format : "05-25-2012 02:30 PM" This format is not parsed by : HttpDateParser.parse(time) method But HttpDateParser does parse this format : "25-MAY-2012 02:30 PM" Can you tell me, how should I parse "05-25-2012 02:30 PM" String in BB to get a long value. I have 1 more problem, I need to display time zone in format GMT, IST, but all I can

BlackBerry - How to create sub menu?

五迷三道 提交于 2019-12-30 07:27:43
问题 i want to create sub menu for a BB application when i click on menu item it shows Option 1 Option 2 Option 3 When i click on option 3 it should display 1 2 3 as sub menu items.. using j2me + eclipse 回答1: Always wanted to do this ) alt text http://img380.imageshack.us/img380/3874/menugy.jpg class Scr extends MainScreen { SubMenu menu = new SubMenu(); public Scr() { for (int i = 0; i < 3; i++) { SubMenu sMenu = new SubMenu(); menu.add(new SubMenuItem(i + " item", sMenu)); for (int k = 0; k < 3;

Android and J2ME

你说的曾经没有我的故事 提交于 2019-12-30 06:54:13
问题 Can anyone please clear my doubt regarding the query that does Android Programming has anything to do with the J2ME? Does Android Development comes under J2ME Platform as J2ME is used basically for the Mobile Applications and Android is also the same one. Please let me know if anybody is knowing it. 回答1: Android has nothing to do with J2ME beyond using the core Java language. In fact, the standard library is more reminiscent of Java SE. 回答2: Like Yann mentioned , j2me is not Android and vice

algorithm for getting time zone from geo coordinates

旧巷老猫 提交于 2019-12-30 04:23:05
问题 I want to write app where user can point any place on map (not only cities) and get timezone in that place. What data structure (app will not have Internet connectivity) and algorithm should I use? Where I can obtain needed data (I wont more accuracy then divining map into 24 rectangles)? I will write my app in Java ME. 回答1: Given that time zones are based on political entities rather than simply a physical lat/lon computation, I would create a data structure that mapped polygons over lat/lon

java.lang.nullpointerexception in j2me

人走茶凉 提交于 2019-12-29 09:25:10
问题 I am writing an application for read the mifare card,but when I pass the APDU the error occur that on emulator "java.lang.nullpointerexception".I have successfully detect the ISO14443_CARD after that I pass the APDU like if (tp.hasTargetType(TargetType.ISO14443_CARD)){ form.append("Target is ISO14443_CARD\n"); try { static byte[] APDU_AUTH1 = { (byte) 0xff, (byte) 0x86, (byte) 0x00, (byte) 0x00, (byte) 0x05,(byte)0x01,(byte)0x00,(byte)0xfc,(byte)0x60,(byte)0x00}; static byte[] STATUS_BYTE = {

How to call HTTP URL using wifi in J2ME code for BlackBerry 5.0 and above?

爷,独闯天下 提交于 2019-12-29 09:17:09
问题 I am calling a web service from BlackBerry using J2ME code. When I try to open a connection using HttpConnection , it is checking only the GPRS connection. Now, I want to check the Wi-Fi connection and call a webservice through Wi-Fi. The following code is my connection section. How to change the code for a Wi-Fi connection? public boolean HttpUrl() { HttpConnection conn = null; OutputStream out = null; String url = "http://www.google.com"; try { conn = (HttpConnection) new ConnectionFactory(