Duplicate versions of the various classes in the libraries of the RIM.

Different libraries in the API under different packages have classes with the same name as in

a few more...

javax.microedition.lcdui.Display vs net.rim.device.api.system.Display

javax.microedition.lcdui.Graphics vs net.rim.device.api.ui.Graphics

.. .and there are one bunch of others, like order, etc, etc...

How do you know when to use which class?

You can make assumptions that the version of the RIM should always be taken in the generic version or... you should always take the javax version if it works and then the RIM so it won't. This way your app is more likely to be scross portable devices?

There are rules and policies that we have to follow when developing using classes with several existing.

Thank you

-Donald

I think he's asking what package to develop with, not how to specify which. Microedition packages are used for projects of Midlet/j2me, RIM packages are for specific projects of straight-up BlackBerry. The two do not always mix well when you are working with a user interface. So if you want that your application is running on other devices desides a BlackBerry, go with the desktop, otherwise stick with RIM packages.

Tags: BlackBerry Developers

Similar Questions

  • What version of the PCI Express x 16, it's my motherboard has

    I am running:

    Pavilion - p6320y

    -AMD Phenom II X 4 820

    -8 GB RAM

    -SATA HARD DRIVE 1 TB (7200 RPM)

    -Motherboard model: Violet6-GL8E

    Question: What version of the PCI Express x 16 is the slot on this motherboard: 1.x, 2.0 or 2.1?

    Can't get this information anywhere.

    Hello:

    I don't think that anyone will be able to give you a definitive answer.

    This article gives the date for the PCIe ranges various x versions.

    http://en.Wikipedia.org/wiki/PCI_Express

    Since you have a relatively new PC, I would say that it is certainly not less than PCIe 2.0 and probably PCie 2.1.

    I have a HP 8200 Elite CMT. I think that it is released at the beginning of this year, or very end of last year. 6570 PCIe 2.1, I use an AMD Radeon card in my PC.  It works very well.

    Paul

  • Duplicate name on the network with WRT160N v1

    I get the error "a duplicate name exists on the network" on all my computers.  I just started getting this error about a week ago.  I don't change anything on the network and have had this router WRT160N v1 (with the latest version of the firmware) for about 6 months now.  I spoke with Linksys support and they told me to rename all my computers and reboot the router... which only bypassed the question for 1 day.    In addition to the inconvenience of the error, the only thing it crashes me to connect to any other computer via a mapped network drives.  Print on network printers and internet work very well.

    I wonder if a Windows Update is the cause of this, but not sure.

    Here is my network configuration:

    I have a simple network of peer to peer with 5 workstations and 1 portable wireless.

    All workstations use DHCP except 1 which behaves like a file server with a static IP address.

    All the workstations are XP Pro and laptop is Vista professional.

    WRT160N v1 router DHCP running

    Help or direction would be great!

    I guess when you renamed your computers, you have given a different name to each computer and restarted the entire network after the name change.  If this isn't the case, it is the cause of your problem.

    What LAN IP address static (fixed) do you use for your server?   What is your range of DHCP server?    If you use "DHCP Réservation" to give your server a static LAN IP address, then the address must be within the range of the DHCP server.  However, if you have assigned manually your server an address LAN IP fixed, by entering information in the server, then this fixed LAN IP address must be outside the range of the DHCP server, and it may not end with 0, 1 and 255.

    At least part of your problem (drive mapping) sounds like a problem with computer software firewall.  Go to the software firewall for computer on each computer and set it to "trust", other computers on your network.

    Using an unsecured wireless network?  If so, maybe your neighbor put his computer to use one of your computer names, and it connects to your network (accidentally or intentionally).   If you have an unsecured wireless network, secure it.

    In addition, check the MAC addresses on all your cards, ethernet and wireless adapters and see if both is the same.   Surprisingly, some manufacturers do not give MAC addresses unique to their network devices and perhaps is to confuse the router.

    In addition, you use a wireless Repeater in your network?  Sometimes this problem with duplicated names occurs when a wireless Repeater is used.  Yet once, if you have an unsecured wireless network, maybe your neighbor runs the Repeater of fire!

    Do one of the computers that are connected to the router, also have a wireless adapter?  If so, make sure it's off.

    If you would like more information, please state the brand and exact model of the card number wireless laptop.

  • Universal application for both versions of the OS

    Hi all

    What is the best way to create applications that will work on different OS version with the help of the old OS functions? For example, the application must check something in the background and inform the user if a problem occurs. 4.6 + we can use the "ApplicationIndicator" class for this. But how do you divide the app to be exploitable in 4.5, for example with an another user - a popup notification?

    Thank you!

    Yes, there is a way to do it in a single generation. Maybe not for the feint of heart.

    You will need to put all the code 4.5 in a COD, type of library.

    Put all the code 4.6 (and nothing other than the 4.6 code) in an another COD, also the type of library.

    4.6 library depend on the library of 4.5.

    Your application COD depend on these two libraries.

    In the library of 4.5 create interfaces for classes that have different implementations in 4.5 and 4.6.

    Create a factory class classes used for these interfaces, as follows:

    (here Foo is an interface, and Foo45 implements Foo).

    public class UiFactory {
    
        private static UiFactory instance;
    
        public static UiFactory getInstance() {
            if (instance == null) {
                try {
                    Class clazz = Class.forName("com.company.project.UiFactory46");
                    instance = (UiFactory) clazz.newInstance();
                } catch (Exception ex) {
                    instance = new UiFactory();
                }
            }
            return instance;
        }
    
        public Foo getFoo() {
            return new Foo45();
        }
    }
    

    In the library of 4.6 you Foo46 implements Foo. And a factory as follows:

    public class UiFactory46 extends UiFactory {
    
        // Over-rides getFoo() in UiFactory    public Foo getFoo() {
            return new Foo46();
        }
    }
    

    Now the application, you can do UiFactory.getInstance () .getFoo () and get a Foo45 or a Foo46.

    On a 4.6 device, UiFactory.instance will be an object of UiFactory46.

    On a 4.5 device, the Class.forName in UiFactory line will throw a ClassNotFoundException. The exception is caught and switch to a normal UiFactory object.

    Presto! Unique construction for several versions of the OS. Works for me. YMMV, of course.

    A few last words.

    When a single class fails to load into a BlackBerry COD ignores the whole cod. So the code 4.6 should be isolated in its own library.

    The compiler does not allow a library to depend on an application. And the 4.6 library must depend on the 4.5 (for interfaces and code to be able to extend UiFactory). Thus, the 4.5 code must also be in a library.

    Here the COD of the Application only has pictures and a single class that contains a main method.

    Cheers, Barak.

  • Code that runs on a lower version of the OS

    Hello guys,.

    First of all: Happy New Year!

    I have a question for you: it is possible to have in a two different implementations of the application of a substance, one of them using the 4.5 API and the other using the API 5.0 and based on the version of the OS (found "DeviceInfo.getSoftwareVersion ()" "") to call one of the track when running, BUT this app to exist and run on a device 4.5?

    Thank you in advance,

    Tibi.

    No sorry.

    The existence of classes included in the code is verified at the time of loading, not run time, if the loader expects classes to be there, even if you never use them.

  • Version of the application how

    Hi guys '

    I know the version of the application is placed in the MIDlet-Version: 'Version' of the .jad file.

    How to get a version own application?

    TNX'

    Hello

    You can use the ApplicationDescriptor class for this problem

    and if you want to read the *.jad file you can use the getAppProperty() function

    Kind regards

    Rajat Gupta.

  • I signed up for CC. I don't know that this Dreamweaver will come into conflict with my older version of CS5. You can run two versions of the DW on a single computer?

    I signed up for CC. I don't know that this Dreamweaver will come into conflict with my older version of CS5. You can run two versions of the DW on a single computer?

    You can run two versions of the DW on a single computer?

    Yes.  Please do not duplicate messages.

    Nancy O.

  • ADF |  Duplicate validation in the field.

    Hello

    Jdev: 11.1.1.1.6.0

    I have a requirement to allow the user to edit the data in an editable table. My question is, for one of the column, I should not allow the user to enter the duplicate on the JSF page levelvalue.

    It is not a primary key field. How to validate the duplicate column during the click on the button Save.

    Validation should work only on the page, not DB or OS level.

    Where is the duplicate, it should show an error message.

    I'm looking for the JAVA Bean code, instead of using the unique key validator in business-> validator entity rules.

    Please help me with the java code if any knows

    Thank you

    Hello

    Finally I got the answer, thank you for helping me.

    I used the code is:

    private void ItemIdValidator() {}

    P2PWebAMImpl am = (P2PWebAMImpl) resolvElDC ("P2PWebAMDataControl");

    PoShipmentLinesVOImpl shipmentlineView2 = (PoShipmentLinesVOImpl) am.getPoShipmentLines2 ();

    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get ("PoShipmentLines2Iterator");

    Line r = dciter.getCurrentRow ();

    Number of itemidValue = (Number) r.getAttribute ("ItemId");

    Row [] filteredRowsInRange = shipmentlineView2.getFilteredRows ("ItemId", itemidValue);

    int i = filteredRowsInRange.length;

    String msg = "ItemId with the same number found. Please select another ItemId. « ;

    JSFUtils.addFacesErrorMessage (regClientIDPrefix + msg);

    {if(i>1)}

    throw new ValidatorException (new FacesMessage (FacesMessage.SEVERITY_ERROR, msg, null));

    }

    }

    Private Object resolvElDC (String data) {}
          FacesContext fc = FacesContext.getCurrentInstance ();
          Application app = fc.getApplication ();
          ExpressionFactory elFactory = app.getExpressionFactory ();
          ELContext elContext = fc.getELContext ();
          ValueExpression valueExp =
              elFactory.createValueExpression (elContext, "#{data." + data + ".dataProvider}", Object.class);
          Return valueExp.getValue (elContext);
      }

    Sainaba...

  • MAF: LifeCycleListener.Start ("is installed App have new version to the PlayStore AppStore")?

    Nice day:

    I spent time trying to decode how get my application to check a program if there is a newer version on AppStore or PlayStore launch.  Now that the MAF is out, I wonder if the framework provides a direct solution for this?  Here's what my research has revealed so far:

    • the code will be called LifeCycleListener.Start method (application) that is triggered during the launch of
    • I found these code solutions:

    ANDROID OPTION:

    String response = SendNetworkUpdateAppRequest(); // Your code to do the network request
      
    // should send the current version to the server
    if(response == "YES") // Start Intent to download the app user has to manually install it by clicking on the notification
      startActivity
    (new Intent(Intent.ACTION_VIEW, Uri.parse("URL TO LATEST APK")));

    ANDROID OPTION:

    intent.setDataAndType (Uri.fromFile (new File (Environment.getExternalStorageDirectory () + "/ Download /" + ApkName.toString ())), "application/vnd.android.package-archive"); startActivity (intent);

    The MAF framework has a solution?

    There is no built-in feature to do this.  What I understand iOS & Android SDK do not have this feature either, it's something that you, the developer must create.

    A google for "ios check new version on the app store" Stackoverflow shows various solutions for iOS at least: https://stackoverflow.com/questions/6329396/check-update-available-app-store/6569307#6569307

    A google for "check android new version on the app store" reveals some tailor-made approaches: https://code.google.com/p/android-query/wiki/Service

    CM.

  • Duplicates in all THE PHOTOGRAPHS can be deleted automatically?

    I didn't realize that whenever I have edit a photo, it is apparently added to "all photographs".

    Browsing the 5 362 currently included in this topic I note several versions in many cases. If they are not needed can the duplicated by automatically deleted or must they be made to disappear one by one?

    Cliff

    Screen Shot 2015-11-08 at 9.47.56 p.m..png

    I didn't realize that whenever I have edit a photo, it is apparently added to "all photographs".

    Your statement is inaccurate.

    All photographs are not duplicates, they are the EXACT SAME picture that you have edited. Lightroom displays your image in multiple views, but it's the same image.

    Removal of all photographs delete photos in all views and photos are no longer in Lightroom.

  • Find the Version of the Firmware HBA CLI

    I'm trying to find the version of the firmware of our blade HP Proliant BL460c G7 "804 Brocade 8 Gbps FC HBA for HP Bladesystem c-class" via the command line.

    The blade is running 5.5u2d.

    I am aware of the method described here, VMware KB: identify a Qlogic or Emulex FC HBA firmware , but since this is a Brocade with a bfa method driver HBA does not help.

    I also tried the keyval command that works on our G7 BL685c blades.

    / usr/lib/VMware/vmkmgmt_keyval/vmkmgmt_keyval - a

    but that only outputs vacuum of information that I can tell.

    Screen Shot 2015-02-03 at 6.46.16 PM.png

    HP management in the vsphere client page shows the information of the firmware, but I found that to be wildly inaccurate in the goes directly to the host.

    Thank you

    Try this method: VMware: how to check the HBA firmware version without restarting the host ESX | VMpros , but don't forget to search the/proc/scsi/bfa.

  • Can I make different versions of the pages of Muse?

    Hello

    I know I can do another master page. But can I make different versions of the single pages?

    As the customer wants just the logo to be blue instead of green.

    For the moment I want to take screenshots of pages with blue logo, then apply the new master page with different logo to all pages and export it again.

    You can also save the project muse together under a different name.

    I guess that's because you're still in the design process and the client does not know what works for their logo.

    The approach I would take is to fool the Muse project and separately to each site on the export.

    If it's a small site with a few pages and only one master assigned, you could duplicate all the slides (right click on a page in outline view and bookmark duplicate),

    Move them all at the end of the first design and assignment of a new master for them, when you export the site that you will have two sites under a URL.

  • Hi, is there an easy way to copy an entire site from the desktop to the version of the tablet version?

    Hi, is there an easy way to copy an entire site from the desktop to the version of the tablet version?

    It is not possible to duplicate content en masse. You can copy the page structure, backgrounds, and metadata when you initially create mobile sites. The content should be created from the ground up; Although you can copy and paste (or drag and drop) Office-Tablet pages page and rework. You can also use the content panel to create a synchronized text - the scale of the site, which will save you a lot of time.

    David

  • Failed to sync files - missing the most recent version of the file

    I have two files in the cloud: my Lightroom Catalog and previews file support and work between my desktop and laptop. I have not opened the file LR catalog of the workstation from the 3/10, but have used in on my laptop at all times. After you install the updates today, he asked me to sign the creative cloud, which I did. When I look at my creative cloud file, my two files had been replaced by the OLD version of the file on the desktop, changed the 3/10. The most recent version, current disappeared that I worked for a month. None of the work I did on Lightroom, hours and hours, no longer appears. Please help me find the latest version of my file!

    Also: it does not appear on the files "Archived" on my account. The last archived version was 3/10. If the file I used for the past month, never synced to the cloud, why it has been replaced by an older version of the file?

    With the recent update of the application of Creative Cloud Desktop (1.9.1.474), we have unfortunately introduced a bug that causes the creation of a new Creative Cloud Files folder and re-synchronization of all content. This will happen only the first time that the synchronization application runs after the update. This caused an understandable pain and confusion, for which we really apologize.

    Creative application Cloud Files contains a logic that supports the use of several Adobe ID. This allows to disconnect from an ID and in, but keeps the contents of your separate creative cloud. When you sign out and change identifiers, the app moves the previous creative Cloud Files folder and it's content and he adds with the already signed in ID (User@AdobeID). Then, it creates a main folder and begins to synchronize the content of the identification of new.

    The bug I mentioned earlier occurs, as the app believes an ID selector took place and as such, moves the current record of Creative Cloud Files and attempts to annex the already signed in ID. As no switch actually took place, it manifests as (unknown).  The application then creates a main folder to synchronize the data.

    What you end up with is essentially a creative Cloud Files folder with your new synchronized data and a creative Cloud Files (unknown) folder that contains duplicate data.

    This happens once, after the last update.

    The solution is to simply delete the (unknown) Creative Cloud Files folder.

    I recommend that ensure you that you have no pending change you can do offline and you check the contents of the folder new, main designer Cloud Files contains everything you expect of him.  If this is not the case, check the contents of the creative Cloud files (unknown).

    If there is still an incompatibility with your data, you can check on creative.adobe.com to confirm that your data is there.

    If you have any other problems or questions on this topic please email [email protected]

  • How can I build with precision for horizontal and vertical display on the versions of the tablet or phone

    I am trying to build the version of the tablet of my site, but when I test in preview horizontally the vertical display is out of wack & vice versa (super frustrating). I am at a loss, and I didn't even to the version of the phone. Also is it a better platform look another overview which simulates the tablets & phones, because you can not display in the browser accurately?

    I am at a loss.

    Hello

    The best way to get an overview of the site on devices (tablets and telephone) is to publish a temporary site in Business catalyst and the generated link will show the output on various devices.

    Publish site temp in Muse, please go to file > publish to Business catalyst. Please check the following URL for more details.

    https://helpx.Adobe.com/Muse/using/publishing-websites.html#id_83339

    Concerning

    Vivek

Maybe you are looking for

  • "Sleep mode" trackpad

    After updating to El Capitan, the trackpad on my MacBook Air goes to a mode "sleep" after a few seconds of inactivity. "Activating" the trackpad requires clicking on it. It's very frustrating, especially because time is so short. Is it possible to di

  • The device debugging

    Please tell me what device Debug in cascades of bb...

  • BlackBerry Passport actually have Paratek antenna technology?

    The passport there? Technology transfer on optimized BlackBerry® Paratek antenna with the ability to dynamically tune itself to its environment and offer strong and fast data connectivity even in areas with low coverage. The Z30 does, but there is no

  • Restore the default program for the *.exe Extension

    Someone has associated the *.exe (all apps) Windows Photo Viewer. Now, I can not use any application or tool that starts from an exe file. Whenever I start a program that opens the Windows Photo Viewer. Can I restore the settings so that I can use th

  • Hardware error to Windows Media Player/Audio

    I run Windows 8 on a HP Pavilion laptop. Lately, I get the following error message during playback of MP3 files on Windows Media Player "Windows Media Player has encountered a problem while playing the file. When you use magic Audio Cleanic I get the