java-me

BlackBerry Data Usage

Using the RIM APIs. is there an accurate way of collecting the amount of data coming in and out of a service provider (Not including WiFi/Bluetooth data). ...

J2ME Location API on the N95 - Need to open Nokia Maps to warm up GPS?

The location API only seems to work for me when I warm up the GPS by opening Nokia Maps or Google Maps. The Google Maps app has a status balloon which shows the number of satellites and lets the user know when the connection is active, however I have not found anything in the J2ME Location API docs which specifies how to do this. It ...

Can I open a ".pdf" document on a blackberry using java?

Can I open a ".pdf" document on a blackberry using java? If yes, then how? ...

How to make a midlet from source?

Hey I got some sources files for midlet application. How can I compile these to a midlet that I can run on my mobile. ...

Why can't I update my J2ME RecordStore?

I basically want my Midlet the ability to edit records. I have this code the information is added as follows protected void searchForNameToEdit() { Editrecord.deleteAll(); try { rs = RecordStore.openRecordStore("Detail", true); RecordEnumeration re = rs.enumerateRecords(new NameMatcher(EditSearc...

Need some help to create .jar file using NetBeans

I downloaded NetBeans 6.5 complete pack with Java ME. And then I downloaded and installed Sun Java Wireless Toolkit too. And I have tried in all ways to go to New Project -> And in under Java ME -> Mobile Application Then I enter name and location. And then when to select the emulator platform, "Sun Java Wireless Toolkit 2.5.2 for CLDC...

Reading text file in J2ME

I'm trying to read a resource (asdf.txt), but if the file is bigger than 5000 bytes, (for example) 4700 pieces of null-character inserted to the end of the content variable. Is there any way to remove them? (or to set the right size of the buffer?) Here is the code: String content = ""; try { InputStream in = this.getClass().getRes...

Java J2ME: How to get record size?

How can I get the record size store by which method? midp2.0 specification uses sand box model(t or false)? textbox(int maxsize,int contraints,string title,string text) Is it right? ...

Blackberry - Adding mp3 files to an sdcard folder from application resources

Hi My blackberry application has some mp3 files bundled with the application. I want to add these files from the app to a folder in the sdcard or a folder in my phone memory through program. How can I do this? Is it possible? Thanks. ...

In J2ME, how can I tell whether or not Daylight Saving Time is enabled?

How can I get whether or not daylight saving time is switched on? (Because if it is on, the Calendar.HOUR_OF_DAY is (for example) 11 instead of 12.) Or should I use another way to get the hour of day? ...

Why does an update overwrite a date value to null in j2me?

I display the data to be edited as follows private void carryOutNameSearch(TextBox theInputScreen, Form theOutputForm, int formType) { listOfIDs = new Vector(); // save IDs of records in case we want to delete theOutputForm.deleteAll(); // clear the form try { //RecordStore rs = RecordStore.openRecordStore...

(Calendar) Hour of day doesn't return the right hour

Calendar.getInstance(TimeZone.getTimeZone("GMT+1")).get(Calendar.HOUR_OF_DAY) is an hour "slow", (possibly because they does not detect the daylight saving +1 hour.) In J2SE, there are a lot of available time zones (Europe/Budapest too, and it works perfectly), but in J2ME there are only GTM and UTC. How can I get the "right" hour? ...

Connect web server with database and J2ME

I do a mobile application which the user can use it get the required place’s number. The user must select the appropriate city and category to get the place’s information. All the information stored in the database. What I want to know that .. 1) What is the benefit from the web service? 2) How to connect the web service and MySQ...

How to determine tomorrow's date in J2ME for use in a DateField?

I basically want to be able to show tomorrows date I have this which shows today date private Date date = new Date(); i tried this but this gave me jan 1 1970 private Date date = new Date(+1); please help ...

Trying to play music in Java ME, but I get an Exception "Incompatible Types"

I need to play music (this is the only sound in my game). So far I've written this, but it keeps giving me errors: "incompatible types" Here's my sound code: try { InputStream is = getClass().getResourceAsStream("/sound.wav"); Player p = Manager.createPlayer(is, "/X-wav"); p.start(); } catch (IOException ioe) { } catch (...

Why is my NullPointerException not being caught in my catch block?

I have a thread in which I catch all errors in a big, all-encompassing catch block. I do this so that I can report any error, not just expected ones, in my application. My Runnable looks like this: public final void run() { try { System.out.println("Do things"); /* [1] */ doUnsafeThings(); } catch (Throw...

How to hide midlet icon in sonyericsson

help me on this issue which you have stated here "Some newer Sony-Ericsson phones (with the JP8.3 platform onward) have a proprietary java application management API that can only be accessed if your MIDlet is signed by Sony-Ericsson, along with jad properties that allow you to hide your MIDlet icon from the user." I have developed an...

.NET to J2ME

I have a .NET class that implements the SNMP protocol and I've been asked to port it to J2ME. Would I just create Java class and redist as a compiled .class file for the J2ME developers to use or is it more in depth than that? ...

Can a datefield be set by a string value in J2ME?

I was just wondering if a DateField can be set by a String value. Would help me out thanks. ...

Alternatives to rotating buffers into Players in J2ME?

Due to (quite annoying) limitations on many J2ME phones, audio files cannot be played until they are fully downloaded. So, in order to play live streams, I'm forced to download chunks at a time, and construct ByteArrayInputStreams, which I then feed to Players. This works well, except that there's an annoying gap of about 1/4 of a secon...