java-me

How to solve this error when using kXML for Midlet (java)

I downloaded kXML and included this in my Build Path (Eclipse). Now I'm running a simple Midlet and I get an error: java.lang.NoClassDefFoundError: org/kxml2/io/KXmlParser at clientlibrary.googlecalendar.TestParser.startApp(+8) at javax.microedition.midlet.MIDletProxy.startApp(+7) at com.sun.midp.midlet.Scheduler.schedule(+270) at ...

BlackBerry - How to create sub menu?

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 ...

How to make this: J2ME encrypt C# decrypt And J2ME decrypt C# encrypt?

C# string keystr = "0123456789abcdef0123456789abcdef"; string plainText = "www.bouncycastle.org"; RijndaelManaged crypto = new RijndaelManaged(); crypto.KeySize = 128; crypto.Mode = CipherMode.CBC; crypto.Padding = PaddingMode.PKCS7; crypto.Key = keystr.ToCharArray().Select(c=>(byte)c).ToAr...

J2ME : Edit RecordStore Manually

Can I edit the stored values of a RecordStore manually? If so, which programs do i need, or JVM stores those data in a file without any encryption? Any help or advice will be appreciated. ...

Looking for proven libraries for Blackberry or J2ME (HttpConnection)

I have an application that makes many subsequent calls to a REST service for batching data to a database on the BlackBerry devices. I have tried several methods of using HttpConnection with various streams to see which might perform the best. So far to the same service other Platforms like Windows Mobile and iPhone can handle the downloa...

How to open a file with JSR 211 CHAPI (Content Handler API)

Please note that this is a question about MIDlets, i.e. Java ME (not "ordinary" Java SE). I'm looking for the correct way to invoke content on a mobile phone using JSR 211, i.e. CHAPI - Content Handler API. I always get to the IOException in the code below. The mobile phone I'm running on supports JSR 211 (it's a Sony Ericsson C902). d...

JavaME: ProximityListener destroyed/unregisterd after one use?

Hello, I got the following problem: We registered different ProximityListeners in JavaME to a LocationProvider. Everything works fine with the external events emulation, and the proximityEvent method is triggered correctly. Problem: After "one usage", the method is not triggered anymore. The LocationProvider still works good, because th...

Send text message to email using sms from j2me phone

I am developing a j2me application and I was wondering if anyone knew how to send an sms message to an email address. I need to use sms since I am trying to send data through it using an unlimited text plan instead of an unlimited data plan. I modified a code sample from http://freecode-freecode.blogspot.com/2008/06/how-to-send-sms-in...

Develop on mobile phones(Java), using SDK or not?

Recently I have to develop on mobile phones using Java and I am planning to do the development on the following brands: Nokia Samsung SonyEricsson Motorola LG I've browsed the "developer site" of each company and looks like they all have provided their own SDKs for J2ME development. I am really new to this field and I have a few q...

Unable to open socket connection with J2ME application on HTC P3400i

I am unable to open socket connection with J2ME application on HTC P3400i. I am able to use the same application Nokia phones. It is working good on Nokia phones. Can anybody help me? ...

Parsing cookie headers in J2ME/BlackBerry apps

When using an HttpConnection in a BlackBerry app, you often get HTTP cookies in the response headers. Unfortunately there are no built-in APIs to assist with the parsing of the cookie headers. Has anyone found a third-party library to assist with the parsing of the cookie header(s) into a more useful data object? Creating some custom ...

Java ME MD5 string using bouncy castle - cannot hash multiple times (3rd year project dissertation plz hlp)

Hi there, I've noticed that a lot of my Google searches took me here so i thought perhaps i could borrow your apt minds :) I'm working on a One Time Password generator for a mobile device (as well as website to log in to) as part of my third year degree dissertation. Using the org.bouncycastle.crypto.digests.MD5Digest library i am ta...

BlackBerry - How to create alarm event?

I want to acces alarm. in my application i have successfully accessed calender and have set the appointment but how i can access alarm. please help me. following is my code public class Alarm { private Event event; public void myAlarm() { try { EventList eventList = (EventList)PIM.getInstance(). ...

GPRS attach attempt success/failure in BlackBerry.

How could I measure the GPRS attach attempt success/failure in the device(could be by any application) but I want to capture these parameters in my application. Please let me know If I could do this? ...

amr not playing on samsung S5233A

Hello I am facing problem on playing recorded audio on S5233A. As its supporting audio capture and encoding supported audio/amr. From my application its successfully recording voice. but on play its not giving error but nothing happens. I tried recording using following strings, capture://audio capture://audio?encoding=amr capture:...

blackberry method to replace strings?

so, again, due to blackberry's api limitation, i have 2 questions: the response that i get back from my IOUtilities.streamToBytes(httpInput); call contains "&lt;" characters. so what blackberry class/method can i use to replace my "&lt;" with "<"? there is ONLY 1 replace() method in the String class and that method can only replace 1 c...

How big is an empty Hashtable object

What is the size (in bytes) of the Hashtable object in J2ME? I mean what is the overhead for using a Hashtable? ...

Is it possible to use Twitter and Facebook APIs on J2ME platform?

I googled and I can't find it is possible, someones said that j2me don't support REST communication or there are problems with login. Is it possible? ...

J2ME SMS IOException

I am trying to send a text message to a phone and I get an error Fail to send because of unknown reason. -java.io.IOException import javax.microedition.io.Connector; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Form; import javax.microedition.midlet.*; import javax.wireless.messaging.MessageConnection; impor...

Interact with the blackberry browser?

How could I get the number of URL errors and number of URL hit in the BlackBerrybrowser in a particular time interval. I want to track those hits and errors in my applications. ...