How do I create a tab bar like WhatsApp on BlackBerry in my BlackBerry app? I want that feature in BlackBerry OS 7.0. I have used managers -- HorizontalFieldManager and VerticalFieldManager -- to achieve it. But it doesn't look as attractive as Whats
I have gone over and over this code and can't see where this is happening it doesn't happen every time it only happens if I run through post twice but I have tried getting rid of each of these in turn by commenting them out and that still gives the e
Is it possible to run J2ME apps on Android phones? If so, what is the installation procedure? Otherwise, is it possible to convert .jad files to .apk? In this case, what is the procedure. (I have already tested the procedure offered by netmite but it
I use codenameone and I wanna change some labels text's or fill table with dynamic data from database. So, my question is : 1.what event is good for change component text on showing form? 2.how to create database and load data from it or insert data
In my Application, I need the Countdown timer(like a chronometer in Android) which is implemented on Canvas and display the countdown time to the user. How can I implement Countdown Timer on Canvas and display the Countdown time to the user?Its very
I have blackberry app (java). My app stores some informations in files (file:///store/home/user/app_name/). When user removes app, these files don't delete. I want to delete files when app is removed by user. What is solution?Don't store files this w
I am trying to read the length of my responce by using "getContentLength()" of HttpConnection class.. but I am getting method getContentLength() not available error.. Is there any workaround to find length of the responce in blackberry..?? Below
What is the difference between com.sun.lwuit.Form.show() and com.sun.lwuit.Form.showBack()? I think both are displays the form. I think both are same.If you choose form.Show() the form will slide in from the right side of the display and move to the
When I try to receive sms in j2me this code just does nothing. When app is launched from startApp() a new thread is started which calls run() where it starts listening for a message. Please have a look. import javax.microedition.io.Connector; import
I am writing one application which store user data into file. However, when I try to open phone memory my application raise security exception and won't allow me to write or read data. Here is my code. try { FileConnection fc = (FileConnection)Connec
I have some button on my form. When I click on every buttons run new form with same buttons. When I am clicking many times, show error OutOfMemory. I think this is because I create a lot of form objects. May be can clear stack or use form from stack
My J2ME program structure is like as follow. File Read -src -res -test -abc.txt -java libraries Here abc.txt is in test folder Now I am reading file as follow: InputStream is = getClass().getResourceAsStream("test/abc.txt"); after executing abov
I am trying to download xml files from server when my application starts. So i want to show splash screen until am done with downloading and then show next screen. below is my code: Here, i want to show My splash screen when getTopNotDoc() method is
I want to make an auto synchronize in my application that will happen every day at 9:00 pm. I am doing this in the way of : try { Thread.sleep(24hours); } catch (Exception ex) { } But the problem is when the user turns off his device before 24 hours,
Im developing an app that shows big images.. There are a lot of images which size is around 700x8100.. I can create an object of type EncodedImage, without throwing an exception, but when I try to execute getBitmap I receive an OutOfMemory error. Thi
I have cashform with atttributes pin,sendername,receivername,senderphone,amount and another form accountfrom with attributes pin,sendername receivername,senderphone,amount,bankname,account number.. both form have send Command Now, I want to check whe
Basically I am reading in a JSON string which contains a html entity like this: 一 And but in my app that is not useful. I need this: 一 (Japanese character for 1) What is the best way to do this? Both the JSON and my app are using UTF-8 I've parsed ou
I want to send mail using j2me application. I searched in google. Most of the code have invokes the servlet or web server to send mail. I don't like to post data to webserver to send mail. I want my j2me app to send mail. If anybody knows, please let
how to add a text box in blackberry java ? |--------------| |--------------| Have a look at the API: Blackberry JDE 4.3.0 API Specifically you should look at the TextField class. Then you should come back with specific questions relating to what you
I'm trying to download an image from server and save the image on mobile phone.I'm able to download the image but I need to resize the image and then store the image to mobile. the code is like this. public void requestPlatform(String strURL) throws
We have developed a J2ME application with PHP as backend hence our frontend is not HTML. We are handling HTTP request from mobile phone and writing data in the database and sending mail and data to mobile as well, which all are done by PHP and it is
We are developing a J2ME application and sometimes we face constraints while working with the default lcdui library. Whenever we want some extra in the UI, the only option is to work with canvas which is not so easy. Now we are thinking to use LWUIT
I want to display 3 rows on the screen for which table or gridlayout is needed. Is it possible without using frameworks? How should I implement for displaying 3 rows on the screen?You should try to use existing GUI libraries that help you use XML, CS
I want to know how to parse XML data on a BlackBerry. I read somewhere that JSON is good method to parse xml data. Are there any tutorials to parse XML data using JSON, or any other mechanism?Parsing XML in Blackberry Simple API for XML (SAX) was dev
I want to get the following code to work in the Java ME / J2ME environment. Please help: Hashtable <Activity, Float>scores = new Hashtable<Activity, Float>(); scores.put(act1, 0.3); scores.put(act2, 0.5); scores.put(act3, 0.4); scores.put(act5
Recent mobile phones have a clipboard where text can be copied from one application to another (E.g. from address book to file manager). Is there an API for placing things on this clipboard? I am targeting Sony Ericsson phones (including G705), so a
I have a method that looks like this: public static String escape(String text) { String r = replace(text, "\\", "\\\\"); r = replace(r, "\r", "\\r"); r = replace(r, "\b", "\\b"); r = replace(r, &
Coming from a C# Background I never used any pointers. I'm creating a vector of contacts objects. What is the best way to create a separate vector which references to elements in the big vector?You can iterate through the old Vector and add the eleme
I'm trying to create a J2ME app, which talks to webserver using HttpConnection connector. When I am talking to the WebServer, I have to authenticate using Basic HTTP auth, which normally goes like http://username:
[email protected]/rest/api/method
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("