Convert J2ME application in particular Blackberry

Hi all

I did a project on J2ME. This project is especially for BlackBerry. Although his works very well on BlackBerry devices, but J2ME support provides for the User Interface is not very attractive.

Now, I want my project to use BlackBerry APIs as well.

Is it possible to use the J2ME and BlackBerry classes and API in the same application?

Thank you

If you want to mix User Interface Classes of J2ME and Blackberry - is not possible.

You should make a choice - only UI J2ME classes or RIM API UI Classes.

If your application is only for Blackberry - redesign your UI with RIM API user interface Classes.

Tags: BlackBerry Developers

Similar Questions

  • Import in Blackberry JDE J2ME Application

    Hello

    I wrote a J2ME application using CLDC1.1 and Midp 2.1 in Java (TM) ME Platform SDK 3.0, now how can import this project in Blackberry JDE 4.7.

    I tried a lot of things, but I don't get how to import it in Blackberry JDE 4.7. Please suggest me in this regard

    What have you tried?

    I thought you just create a project, then add all the sources for this project?

  • Installation of Applications on the Blackberry via desktop software

    Hi all

    I'm a beginner and it is difficult to download my application on a blackberry phone (I tried the torch and "BOLD" phones) via the desktop software so that I can test it on the phone. I followed the tutorial on:http://supportforums.blackberry.com/t5/Desktop-Software-for-PC/Guide-to-installing-applications-on-t... but I get errors when I try to import files (files .alx and .cod files generate errors) and I don't know if the article is obsolete because it refers to Desktop Manager and Application Loader, which I assume is older versions of software.

    The steps that follow are:

    (1) connect my bb via the usb phone and open the desktop software

    (2) once connected, click on the Applications tab

    3) click Import files

    (4) search for the actual file (tried with files .alx and .cod files) on my filesystem (my computer)

    (5) and I select open to import the file (tried the .alx and .cod files also)

    Error message is: "there was an error importing files. No additional applications can be found. "Your file may contain applications that already exist in the list of applications, are not compatible for your device or errors.

    I certainly know that the application has no errors because it's the standard helloworldtheme that comes with the plugin for eclipse bb. I also know that the application does not already exist in my application list. I don't know how to check if the application is compatible with my device, but I have a feeling that is not the problem.

    I'm surprised how hard something that seems so simple doesn't seem to work.

    I would appreciate any help or someone who can point me in the right direction to do so.

    Thanks in advance...

    I found the solution and no thanks to the community does not help this.

    Pls contact me for the solution if you have the same problem

  • 10 blackBerry smartphones must have application for all BlackBerry...

    Please add list: 10 must have application for all BlackBerry phones + link to application...

    And can someone give list for BlackBerry 8100? I am new user of BB...

    Recommended freeware.

    ------------

    Nettwerk

    Stinsonddog Web site

    http://www.Stinsonddog.com/must-have-applications

  • Running J2ME Application in Blackberry 4. 7 JDE

    Hello

    I wrote an application in J2ME (CLDC 1.1) and Midp 2.1 in Java (TM) ME Platform SDK 3.0, it works fine, but when I try to run this app Blackberry JDE 4.7 it gives error like "error starting Application-Name: Module 'Application Name' has verification error". Please suggest me in this regard

    Thanks in advance

    This should help: http://www.blackberry.com/knowledgecenterpublic/livelink.exe/Support_-_Preventing_verification_error...

  • How to convert the Bitmap Image in BlackBerry

    Hello

    In my application, I get the picture from the server. Now, I want to convert this Bitmap Image to display on the screen. For this I use below codes. But it doesn't give me the same image does not mean with the clarity and the exact size. He's smaller than the picture.

    I used the codes below:

    private Bitmap getBitmapFromImg(Image img) {
            Bitmap bmp = null;
            try {
                Logger.out(TAG, "It is inside the the image conversion        " +img);
                Image image = Image.createImage(img);
                byte[] data = BMPGenerator.encodeBMP(image);
                Logger.out(TAG, "It is inside the the image conversion---333333333"+data);
                bmp = Bitmap.createBitmapFromBytes(data, 0, data.length, 1);
                } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return bmp;
            // TODO Auto-generated method stub
        }
    

    Here is the BMPGenerator class:

    public final class BMPGenerator {
    
            /**
             * @param image
             * @return
             * @throws IOException
             * @see {@link #encodeBMP(int[], int, int)}
             */
            public static byte[] encodeBMP(Image image) throws IOException {
                    int width = image.getWidth();
                    int height = image.getHeight();
                    int[] rgb = new int[height * width];
                    image.getRGB(rgb, 0, width, 0, 0, width, height);
                    return encodeBMP(rgb, width, height);
            }
    
            /**
             * A self-contained BMP generator, which takes a byte array (without any unusual
             * offsets) extracted from an {@link Image}. The target platform is J2ME. You may
             * wish to use the convenience method {@link #encodeBMP(Image)} instead of this.
             * 

    * A BMP file consists of 4 parts:- *

      *
    • header
    • *
    • information header
    • *
    • optional palette
    • *
    • image data
    • *
    * At this time only 24 bit uncompressed BMPs with Windows V3 headers can be created. * Future releases may become much more space-efficient, but will most likely be * ditched in favour of a PNG generator. * * @param rgb * @param width * @param height * @return * @throws IOException * @see http://en.wikipedia.org/wiki/Windows_bitmap */ public static byte[] encodeBMP(int[] rgb, int width, int height) throws IOException { int pad = (4 - (width % 4)) % 4; // the size of the BMP file in bytes int size = 14 + 40 + height * (pad + width * 3); ByteArrayOutputStream bytes = new ByteArrayOutputStream(size); DataOutputStream stream = new DataOutputStream(bytes); // HEADER // the magic number used to identify the BMP file: 0x42 0x4D stream.writeByte(0x42); stream.writeByte(0x4D); stream.writeInt(swapEndian(size)); // reserved stream.writeInt(0); // the offset, i.e. starting address of the bitmap data stream.writeInt(swapEndian(14 + 40)); // INFORMATION HEADER (Windows V3 header) // the size of this header (40 bytes) stream.writeInt(swapEndian(40)); // the bitmap width in pixels (signed integer). stream.writeInt(swapEndian(width)); // the bitmap height in pixels (signed integer). stream.writeInt(swapEndian(height)); // the number of colour planes being used. Must be set to 1. stream.writeShort(swapEndian((short) 1)); // the number of bits per pixel, which is the colour depth of the image. stream.writeShort(swapEndian((short) 24)); // the compression method being used. stream.writeInt(0); // image size. The size of the raw bitmap data. 0 is valid for uncompressed. stream.writeInt(0); // the horizontal resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the vertical resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the number of colours in the colour palette, or 0 to default to 2n. stream.writeInt(0); // the number of important colours used, or 0 when every colour is important; // generally ignored. stream.writeInt(0); // PALETTE // none for 24 bit depth // IMAGE DATA // starting in the bottom left, working right and then up // a series of 3 bytes per pixel in the order B G R. for (int j = height - 1; j >= 0; j--) { for (int i = 0; i < width; i++) { int val = rgb[i + width * j]; stream.writeByte(val & 0x000000FF); stream.writeByte((val >>> 8) & 0x000000FF); stream.writeByte((val >>> 16) & 0x000000FF); } // number of bytes in each row must be padded to multiple of 4 for (int i = 0; i < pad; i++) { stream.writeByte(0); } } byte[] out = bytes.toByteArray(); bytes.close(); // quick consistency check if (out.length != size) throw new RuntimeException("bad math"); return out; } /** * Swap the Endian-ness of a 32 bit integer. * * @param value * @return */ private static int swapEndian(int value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; int b3 = (value >> 16) & 0xff; int b4 = (value >> 24) & 0xff; return b1 << 24 | b2 << 16 | b3 << 8 | b4 << 0; } /** * Swap the Endian-ness of a 16 bit integer. * * @param value * @return */ private static short swapEndian(short value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; return (short) (b1 << 8 | b2 << 0); }

    Where an error in my code? Is there another way to do the same thing?

    Why you want to use a bmp image?
    You can just use png, jpg or whatever of the original image is.
    If there is a situation where you need the bitmap image call http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/EncodedImage.html#getBi...

  • Is it possible to access the Fm Radio of the third-party application on a Blackberry 10 layer?

    Hi all

    I'm interested in a custom application tuner FM Radio for Blackberry 10 (Q5, Q10 or Z30) device of programming - I know that they have the necessary equipment to receive the FM Radio and the operating system includes an application FM Radio, but can applications without any special authorization / access control the tuner FM Radio?  If so, where are the APIs for FM Radio on Blackberry 10 (I couldn't find it under the various options of SDK)?

    Assuming that the answer to this question is Yes, third-party applications can access the audio PCM received by the FM Radio chipset? If so, how?

    Thank you!

    I don't believe it. FM radio capacity up to 10.2.1, who did not have an associated, SDK version because there was no new API has not been added.

    If there is a feature you are interested in, the best option is to record about the developer Issue Tracker:

    SAID

  • BlackBerry Smartphones restore applications third-party blackberry ID account

    Hi all

    As a newb Blackberry I accidentally deleted the BB ID you find in OPTIONS > APPLICATIONS THIRD.

    There are net_rim_bbid_daemon, net_rim_bbid_common and net_rim_bbid_api of 3 modules.

    Where can I download and restore these modules.

    The phone and all its features work but wishes to correct the situation.

    Any help would be appreciated.

    Thank you

    skwinty

    Problem solved.

    Downloaded directly from my phone to the bz.bzlink.us/BZone/Blackberry/applications/blackberryID.2.0.0.17.

  • Application of Q10 BlackBerry ID blackBerry, possible malware

    Every day I receive notification:-"one or more applications/services require you to check your BlackBerry ID.

    I'm suspicious... is this some kind of trick?  How can I get rid of him? Why don't the app or service identifies?

    It's the BBID app on the device. It is safe. I saw that when I have not used a device in a while.

  • Hide the Application in the management of the applications in the Blackberry

    I want to hide my Application in the management of Blackberry applications.

    Is this possible?

    How can I achieve this?

    I guess you mean that when the user goes to the Option of Application Management on the device, he or she will not see your app in the list?

    If so, then the answer is it is not possible to hide your app in the list.

  • Import my application to my BlackBerry

    Hi all

    I am now using BlackBerry "BOLD" 9788 with OS version 6.0. After that I signed my application with the signature via BlackBerry Java plug-in for Eclipse tool. I click on "Load project (s) on the device". Then I found that my request was in BlackBerry Desktop Software--> Applications. But I can't find the app in my 9788 "BOLD"... Then click on the "dependencies" in the properties of the Office Application, I found "unavailable Application (net_rim_cldc, net_rim_bb_browser_field2).

    I wonder if I do well, and if the error message indicates anything. Can someone help my out here, please? Thanks in advance.

    set JRE 5.0 and change the level of compliance of the compiler for 1.4

  • How - to add options for application to the BlackBerry Options

    I generated the example "How - to add application options to the BlackBerry Options" of the knowledge base and run it on a Pearl Flip but I don't see any new added options. I could be looking in the wrong place, but I thought that the sample adds "Options Sample" to the list of options.

    No one knows where to look for the new option added by this example?

    I went back and Setup another entry point recompiled and still can't find where is the new option.

    Thanks Mark. That makes perfect sense as the mail app needs to retrieve incoming messages at any time.

    I've updated my code to close to the bottom of my library of applications by programming, I added a menu too. Is better to be sure that the library is closed and ready for the next event to use it.

  • BlackBerry Smartphones Can I install an application in two BlackBerry devices?

    Hi all!

    When I buy and install an application on a device of BlackBerryOS, so can I download and install again in another device BlackBerryOS without paying again? I use a BlackBerry 9900 and a 8310. The app I want to buy supports two devices.

    Thank you.

    Oops... Sorry about that... typo. Yes, BBWorld, no BBM surveys. As I said, some paid via BBWorld apps can be installed on multiple devices if they are all on the same BBID. Other applications may have controls within the application itself, which limits it to a single BB PIN. The developer of the app is the only person who can answer your question with certainty.

    Good luck!

  • Applications for Smartphones blackBerry desktop sw does not recognize do not

    This is a new BB - 8310 Curve 9360 upgrade

    Hello and welcome to the community!

    Download and install on your PC, the package of BB OS that you want to work:

    If you select the specific operating system that is already running on your BB Desktop software will expand what it offers to you in Applications. If you select another operating system package, then he will offer to change your operating system installed BB to what you have installed on your PC.

    If you choose a bundle of BONES which come else that initially manufactured for carrier of your BB, don't forget to remove, PC, at least one (and possibly two) copy of the SELLER. XML, the package will not work with your BB if you do not delete this file (s).

    Good luck!

  • Application icon missing blackBerry Smartphones

    Mine is a BlackBerry Torch 9800. My password Keeper icon disappear suddenly. Problem is that I stored too much in there that I use every day. Help!

    Connect to your BlackBerry Desktop Software > Applications and you don't see it listed as disabled?

    If so, check it out now to re - install.

Maybe you are looking for