java-me

Is this scenario suitable for WeakReferences ?

I am working on querying the address book via J2ME and returning a custom Hashtable which I will call pimList. The keys in pimList {firstname, lastname} maps to an object (we'll call this object ContactInfo) holding (key, value) pairs e.g. work1 -> 44232454545, home1 -> 44876887787 Next I take firstName and add it into a tree. The node...

How to create a browser window in J2ME ?

How can i create a browser component in J2ME which can display web pages inside an application? Is there any API available for this ? or is this really possible ? ...

split string logic in J2ME

I am developing a J2ME application. I want to split the following string at "<br>" & comma: 3,toothpaste,2<br>4,toothbrush,3 How can I do this? ...

JavaME-suitable grammar compiler recommendations?

I want to parse some data, and I have a BNF grammar to parse it with. Can anyone recommend any grammar compilers capable of generating code that can be used on a mobile device? Since this is for JavaME, the generated code must be: Hopefully pretty small Low dependencies on exotic Java libraries Not dependant on any runtime jar files. ...

Help with J2ME project

I want some help that is related to J2ME. I don’t know a lot about J2ME and now I am required to do a mobile application (it is a course project). My application must be connected to the database, so I don’t know what should I do to do this project! Some students said that I should to do a web server that connects to the database and ...

Does anyone know how to convert a datefield to a string in java j2me?

I need to get the data from a datefield calender and be able to display it in a string and later store it in a recordstore. I tried the toString() method but i had an error once run. StartDate = new DateField("Start Date ", DateField.DATE); StartDate.setDate(Calendar.getInstance().getTime()); I now have this code ...

Can anyone help with a Java problem?

I have this code and for some reason I can't get it to work? Can anyone see the problem? I need this data to be able to return all the records that contain the same name that is entered in the mNameSearchDelete textbox. however no records are returned which should be there. thank you protected void searchForNameToDelete() { carry...

Can anyone help with a java problem regarding record stores?

I have this code. And basically this returns the correct data without the town qualities. When I add the town qualities the method returns nothing, not even the orginal data that it has been and I dont know why. Can anyone see a problem? protected void listRecords() { mListForm.deleteAll(); // clear the form try { Recor...

Does anyone know how to extract a date from a record in java?

I have a date propety set up like this cal1.setTime(StartDate.getDate()); strStartDate = cal1.get(cal1.DAY_OF_MONTH) + "/" + (cal1.get(cal1.MONTH) + 1) + "/" + cal1.get(cal1.YEAR); And I need to extract it when a search is performed. I so far have this int endOfName = rec...

Can anyone help with a java problem regarding date properties?

I basically want to say if the date is unchanged run this alert my date field is set up like this StartDate = new DateField("Start Date ", DateField.DATE); cal1 = Calendar.getInstance(); cal1.set(Calendar.YEAR, 2009); cal1.set(Calendar.MONTH, 3); cal1.set...

Getting Device IMEI

How to get the IMEI of a Java ME device in a common way that is applicable to all devices ...

Does any one know how to extract a date field using a calendar in Java J2ME?

I want to be able to run an alert if the user does not change the date/calender field. My data is set up like this StartDate = new DateField("Start Date ", DateField.DATE); cal1 = Calendar.getInstance(); cal1.set(Calendar.YEAR, 2009); cal1.set(Calendar.MONTH, 0); cal1.set(Calendar.DAY_OF_MONTH, 1); StartDate.setDate(cal1.getTime()); ...

Run j2me jar file

Hi, I have downloaded Opera mini from http://www.opera.com/mini/download/nokia/nokia_6600/ I downloaded both the jad and jar files, opera-mini-4.2.13918-advanced-en.jad opera-mini-4.2.13918-advanced-en.jar and copied them to the bin directory of Sun java wireless toolkit, [C:\j2me emulator\emulator\bin] For running the file i'm using f...

Can Jython replace Java?

So many server side and the mobile Java applications use the native Java language for Java. Can we use Jython instead to build the enterprise applications, e.g. websites, application servers etc. Also what do you feel about Java ME applications in Jython. P.S. Comments on question also welcome. ...

Help with a RecordStore Update problem in java j2me?

I have this code that I have shortened to the most important bits that I think affect the outcome but basically I have an error regarding the bytes. I'm not sure why because this code works in a different program as I have borrowed the code. This is meant to extract the data from the record store with the retrieve button then update it w...

Changing video resolution in n95 with J2ME

We've tried using the parameters in the capture url as documented: capture://video?height=480&width=360 No combination of width and height works. We always get an error -6 when creating the player. capture://video works fine but the videos are ridiculously small. Is it possible to record at a higher resolution on the N95? ...

how can i save data in mobile phone using j2me...?

how can i save data in mobile phone using j2me...? i want code examples which describes how to store data in mobile phones using j2me. furtur how to give access permision to read/write in mobile phones. I am using netbeans 6.5 and motorola L6 phone. Can any one tell me a code example giving how to store,give read/write permission ? ...

WebDAV with J2ME

Is there a way to use WebDAV with J2ME (some libraries or manual coding)? I've tried: - javax.microedition.io.HttpConnection, but "SEARCH" method not supported there - javax.microedition.io.SocketConnection with Http request - nothing returns in response Maybe something wrong with my code or HTTP header: String response = ""; Strin...

Intercepting the Nokia Ctrl/Chr key press in Java

I'm trying to intercept the Ctrl/Chr key on a full QWERTY Nokia device (E71). It seems like the keyPress event isn't generated for this particular key. Any ideas? ...

Why does my J2ME DateField not display the correct date?

I am storing values and date values in a record store. I have my date field set up like this: StartDate = new DateField("Start Date ", DateField.DATE); cal1 = Calendar.getInstance(); cal1.set(Calendar.YEAR, 2009); cal1.set(Calendar.MONTH, 0); cal1.set(Calendar.DAY_OF_MONTH...