[Solved] How to check Internet Connection in Java ME?

[ad_1] You can use the getResponseCode() & getResponseMessage() of HttpConnection‘s API for the checking of Successful Connection. getResponseCode() will return integer value 200 which means it is successful connection with server. 404 means Page not found. 0 [ad_2] solved How to check Internet Connection in Java ME?

[Solved] Java.io.IO.Exception; there is not enough space on the disk while running J2ME application

[ad_1] With respect to your question, as per the given information, Java.io.IOException; there is not enough space on the disk is thrown, say if you try copying something to a destination drive, if the drive is full, you get the exception. The Java.io.IOException exceptions produced by failed or interrupted I/O operations, in this case an … Read more

[Solved] Java ME help displaying calendar canvas from Nokia tutorial

[ad_1] …it just says it’s running in the background. I guess I’m not initializing it properly. Without seeing your code it’s hard to tell for sure but assuming that you did not introduce errors copying tutorial code, the most likely reason for the behavior like you describe is that you didn’t invoke Display.setCurrent. This would … Read more

[Solved] Blackberry Version checking

[ad_1] There’s a better approach than you described. Use preprocessor and alx-task to build different application versions for different OS version. Then you will have one alx + set of folders with cod files, where every folder has cod files for particular platform version. Alx file will contain directives to install cod files from the … Read more

[Solved] save data from servlet to recordstore in j2me

[ad_1] Put this function call where you show the response data alert writeToRecordStore(sb.toString().getBytes()); The function definition is as below: private static String RMS_NAME = “NETWORK-DATA-STORAGE”; private boolean writeToRecordStore(byte[] inStream) { RecordStore rs = null; try { rs = RecordStore.openRecordStore(RMS_NAME, true); if (null != rs) { //Based on your logic either ADD or SET the record … Read more

[Solved] GPS in j2me enabled mobiles

[ad_1] Just because a phone can run J2ME it does not mean that it’s manufacturer placed a GPS unit in it. As far as I know there are mobiles which can run Java applications but do not have a built in GPS. If you want to find the location of your phone, you can resort … Read more