Tab bar in blackberry without ToolBarManager

This is a sample code that how to create Tabs in blackberry. I had total 3 screens after statUp(which extends UiApplication) class LoadingScreen.java public class LoadingScreen extends MainScreen { int current_index=0; BottomPanel bottomPanel; public LoadingScreen(int current_index) { this.current_index=current_index; bottomPanel=new BottomPanel(current_index); } public void createGUI() { setTitle(“Loading Screen”); VerticalFieldManager vertical=new VerticalFieldManager(USE_ALL_WIDTH) { protected void sublayout(int maxWidth, … Read more

Is there any option for local database like Sqlite for j2me – CLDC devices?

from List of Database in J2ME: Apache Derby – an open source relational database / about 2 megabytes Java DB – Sun’s supported distribution of Apache Derby database / footprint of 2.5 MB Floggy – free object persistence framework for J2ME/MIDP applications / 11k API J2MEMicroDB – free object persistence framework for J2ME mDrawer – … Read more

Blackberry – Loading/Wait screen with animation

Fermin, Anthony +1. Thanks to all, you gave me the part of answer. My final solution: 1.Create or generate (free Ajax loading gif generator) animation and add it to project. 2.Create ResponseCallback interface (see Coderholic – Blackberry WebBitmapField) to receive thread execution result: public interface ResponseCallback { public void callback(String data); } 3.Create a class … Read more

How do I convert between ISO-8859-1 and UTF-8 in Java?

In general, you can’t do this. UTF-8 is capable of encoding any Unicode code point. ISO-8859-1 can handle only a tiny fraction of them. So, transcoding from ISO-8859-1 to UTF-8 is no problem. Going backwards from UTF-8 to ISO-8859-1 will cause “replacement characters” (�) to appear in your text when unsupported characters are found. To … Read more

Difference between Java SE/EE/ME?

Java SE = Standard Edition. This is the core Java programming platform. It contains all of the libraries and APIs that any Java programmer should learn (java.lang, java.io, java.math, java.net, java.util, etc…). Java EE = Enterprise Edition. From Wikipedia: The Java platform (Enterprise Edition) differs from the Java Standard Edition Platform (Java SE) in that … Read more

J2ME/Android/BlackBerry – driving directions, route between two locations

J2ME Map Route Provider maps.google.com has a navigation service which can provide you route information in KML format. To get kml file we need to form url with start and destination locations: public static String getUrl(double fromLat, double fromLon, double toLat, double toLon) {// connect to map web service StringBuffer urlString = new StringBuffer(); urlString.append(“http://maps.google.com/maps?f=d&hl=en”); … Read more

tech