java-me

Access google Maps API in nokia series 40

微笑、不失礼 提交于 2019-12-02 16:33:06
问题 I want to access the Google map API in series 40 mobiles. I tried with using http connection but the map displayed statically. I want to load the map and moving the location in the map so that I have to use the Google map dynamically. Please give an idea to do this. 回答1: The Google Maps API site does not contain a specific SDK for JavaME (or Series 40). The static Maps API can be used, but only for static images (no dynamic panning or zooming). A good alternative is to use Nokia's HERE Maps.

Barcode reading using picture taken using mobile phone camera

让人想犯罪 __ 提交于 2019-12-02 16:32:08
How do we do programmatic reading of a barcode that is captured using a mobile phone camera? For example, how do that using iPhone or Android or Java ME? Do we need separate hardware to read bar code or can we do image manipulation? Google has made this INCREDIBLY simple with their Zebra Crossing libraries. They have support for doing scanning via images on the following platforms: J2SE Android and others have ported to: J2ME CSharp CPP Rim iPhone Bug As another poster already mentioned, on Android you could also use an Intent to call Barcode Reader with something like: public Button

Blackberry - Google Maps (Sorry we have no imagery here)

戏子无情 提交于 2019-12-02 16:28:07
问题 Please find below the markup I am using within my BlackBerry application (OS version 6 and 7) to display locations on a google map. private String getHTMLText() { String HTMLText = null; HTMLText = "<script type=\"text/javascript\" src=\"http://maps.google.com/maps/api/js?sensor=false&libraries=drawing\"></script>" + "<body onload=\"initialize();\" topmargin=\"0\" leftmargin=\"0\">" + "<div id=\"map_canvas\" style=\"width:" + Display.getWidth() + "px; height:" + Display.getHeight() + "px;\">"

BlackBerry - Unicode text display

社会主义新天地 提交于 2019-12-02 15:19:50
问题 I would like to display some Arabic text into LabelField in j2me app on BlackBerry device. Presume that Arabic font is installed on device. In localization resources, if Arabic locale is used, all text is saved in Unicode sequences. But event if I use such format explicitly, also setting Arabic locale, it's not working: Locale.setDefault(Locale.get(Locale.LOCALE_ar, null)); add(new LabelField("\u0627\u0644\u0639\u0631\u0628\u064A\u0629")); Please advice: In what format or code page I should

Wrap AutoCompleteField List Item

↘锁芯ラ 提交于 2019-12-02 15:17:57
问题 My apps has AutoCompleteField that hold long text more than 100 Characters, if I use regular AutoCompleteField I cant read the rest of data. How can I make the text wrap into 2 or more lines in the autocompletefield options ? I try using '\r'+'\n' and '\n', its not giving new line. setting it size and also set row height doesnt give me the result I wanted AutoCompleteField autoCustomer = new AutoCompleteField(custList, style); autoCustomer.getListField().setSize(20); autoCustomer.getListField

what are the steps required to run a blackberry application created for the blackberry device?

北战南征 提交于 2019-12-02 14:23:28
问题 I created a BlackBerry application using java-me and the BlackBerry specific API. It works fine on the BlackBerry simulator. I want to know how I can deploy this application to a BlackBerry device. From the documentation I found that some code signing is required to run a BlackBerry application on a device. What is this meant for? Do all applications required this code signing? and what are the steps to build my application to run on a BlackBerry device? 回答1: There are basically two ways to

Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?

百般思念 提交于 2019-12-02 14:15:00
问题 I am using javax.microedition.lcdui.Canvas for drawing my string on the screen. But I also need one dialog window for some purpose. So I am using lwuit package ( com.sun.lwuit.Dialog ) for showing dialog window when key pressing. So in my program I just included that package and create the object of the Dialog box. While running my application, it is terminated unexpectedly. I just included the following lines... import javax.microedition.lcdui.Canvas; import com.sun.lwuit.Dialog; public

How to display a Form Screen on LWUIT Tabs?

拟墨画扇 提交于 2019-12-02 14:01:38
I have list items on form, I have to display that form on tabs, when the user clicked on a tab. How to add that form to tab, after form.show() or before? I need to display first tab as default with Form Screen? You can display form in Tabs. Form is also a component. Form frmObj = new Form("Tabs Example"); Form frmOne = new Form("One"); Form frmTwo = new Form("Two"); Tabs tabObj = new Tabs(); tabObj.addTab("Form One",frmOne); tabObj.addTab("Form Two",frmTwo ); frmObj.addComponent(tabObj); frmObj.show(); 来源: https://stackoverflow.com/questions/11862237/how-to-display-a-form-screen-on-lwuit-tabs

send email through j2me application

喜你入骨 提交于 2019-12-02 13:10:57
I am having an application build using j2me lwuit. I need to send e-mail from that app. To make your application smaller, I'd suggest to implement SMPT over a SocketConnection . For small e-mails this shall be pretty straightforward: SocketConnection connection = (SocketConnection)Connector.open("socket://your.smtp.server:25"); DataInputStream is = sc.openDataInputStream(); DataOutputStream os = sc.openDataOutputStream(); //now the SMTP chat with server Using this approach may allow you to make your application to be depend only on MIDP/CLDC profiles, thus to be easier portable to other phones

fetch the first date of the week

让人想犯罪 __ 提交于 2019-12-02 12:58:01
问题 I want to fetch the first date of the week in java using Calendar and Date with the inputs as :: 1. Week number of the month 2. Month 3. year Calendar cal = Calendar.getInstance(); int weekOfMonth = Calendar.WEEK_OF_MONTH; System.out.println("weekOfMonth : " + weekOfMonth); After this i do not know to proceed. 回答1: There is a method getFirstDayOfWeek() in Calendar class that will return the day in 0 for Sunday, 1 for Monday and so on.The following code snippet is based on this and will give