java-me

Barcode reading using picture taken using mobile phone camera

此生再无相见时 提交于 2019-12-03 01:13:59
问题 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? 回答1: 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,

Fast Fourier Transform (FFT) input and output to analyse the frequency of audio files in Java?

笑着哭i 提交于 2019-12-03 01:11:38
I have to use FFT to analyse the frequency of an audio file. But I don't know what the input and output is. Do I have to use 1-dimension, 2-dimension or 3-dimension array if I want to draw the spectrum's audio file? And can someone suggest me library for FFT on J2ME? @thongcaoloi, The simple answer regarding the dimensionality of your input data is: you need 1D data. Now I'll explain what that means. Because you want to analyze audio data, your input to the discrete Fourier transform (DFT or FFT), is a 1-dimensional sequence of real numbers, which represents the changing voltage of the audio

How to display a Form Screen on LWUIT Tabs?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 22:50:39
问题 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? 回答1: 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);

How to make Blackberry UI more attractive?

偶尔善良 提交于 2019-12-02 21:27:36
I am working on BlackBerry user interface. But the BlackBerry UIs are less attractive compared to Android UI. I want to make my BlackBerry UI more attractive like in Android. Anthony Rizk @Dave Markle is right, this is a fairly general question. Assuming that by 'attractive' you mean 'UI Controls that look better than the default' then you'll have to do a lot of custom control work. More an more in the BlackBerry industry it seems that leading applications are doing almost entirely custom UIs. I won't touch on specifics of graphic design, that seems outside the scope of SO, but a good place to

BlackBerry threading model

ぃ、小莉子 提交于 2019-12-02 19:37:26
I've read a lot of comments mention in passing that the BlackBerry threading model deviates from the Java standard and can cause issues, but no amount of googling has enlightened me on what this means exactly. I've been developing a fairly large business application for the BlackBerry and, although I don't really have any previous experience with Java multi-threaded applications, haven't come across any issue that we've been able to blame on threading, other than what we caused ourselves. Can someone describe exactly how the BlackBerry threading model is different, and how I as a developer

Which library is used to access the Gmail emails using J2ME?

帅比萌擦擦* 提交于 2019-12-02 19:02:29
问题 i want to develop gtalk application for the mobile please tell me the name of library that is used to access the gmail account thr J2ME 回答1: Your Question title says you want to access gmail emails , but in the description it says to develop gtalk application . If you are looking for gtalk client development check out the following resources Why you need to develop gtalk client for Mobiles , There is already a Plenty of gtalk . To learn you can try with Open Source Application to get started

Design a GUI for a J2ME app

会有一股神秘感。 提交于 2019-12-02 18:39:24
How do I create a J2ME app for cellphones with a GUI similar to the menus you see in Java games? I've tried MIDlets with Netbeans but they only show you one GUI element at a time. (textbox, choice, login, etc) And which Java IDE would you typically design these GUIs in? Netbeans or Eclipse? and is IntelliJ IDEA usable for this aswell? Do I have to write/get a library that draws GUI controls to screen via bitmap functions .. and keeps track of the keys pressed for focus? You can also use minime: http://code.google.com/p/minime/ It's an open source GUI library for j2me. miniME works on canvas

How to call Exit Command when I press Key # in Lwuit Mobile Application?

雨燕双飞 提交于 2019-12-02 18:15:37
问题 Can I assign the Exit Command to the # key in an Lwuit Application? When I press the key # , the Exit command should be called automatically and exit the application. 回答1: You should listen for a KeyPress or keyReleased event on the form with the keycode for # and exitApplication when the # key is pressed. protected void keyPressed(int key) { System.out.println("Key Pressed"); if(key==52) //change 52 to match keyCode for # key { Display.getInstance().exitApplication(); } } 来源: https:/

Why isn't J2ME able to create recursive directory creation?

≡放荡痞女 提交于 2019-12-02 18:07:48
问题 I want to create recursive directories ( for example : Connector.open("file:///Phone:/folder_1/folder_2/", Connector.READ_WRITE); ). The problem is that the two folders , here folder_1 and folder_2, are not mentioned explicitly but instead there is only one String parameter provided from a method. For example : private void myMethod(String path) { fcDir = (FileConnection) Connector.open("file:///Phone:/"+path+"/", Connector.READ_WRITE); ... } And in runtime the two folders are not created !

How to scan images using camera in Black berry?

邮差的信 提交于 2019-12-02 17:19:34
问题 I have started one project in which I want to implement QR code scanning functionality. Say for example: ZXing in android. I want to implement for blackberry OS 6 and above. I want to scan live images using camera. Is it possible? If yes, then how it possible? 回答1: You have to use the Barcode API. It was released for OS 6.0. Before that, there was ZXing (added in 5.0) but no livescan functionality. Here you are the how-to: http://supportforums.blackberry.com/t5/Java-Development/How-to-use-the