AdvancedUI

Hi, I am a complete newbie (coming from Windows Mobile development) and I hope that this is not a ridiculous question, but I'm pulling my hair out trying to solve a problem.

Using Eclipse 3.6.2. Download the zip file of the advanced user interface and it imported in my workspace. Able to open the different classes and see new controls on Simulator.

You want to include these controls (for example, LabeledSwitch) in a new project. Finally figured out that I had to include the jar of AdvancedUi to the external address in order to access the packages and classes. However, when you run the project on the Simulator, I get the following message on the console:

C:\Eclipse_BlackBerry_Workspace\Advanced UI\deliverables\Standard\6.0.0\Advanced_UI.jar(Advanced_UI-5.cod): WARNING! : import a file is marked not analyzable
C:\Eclipse_BlackBerry_Workspace\Advanced UI\deliverables\Standard\6.0.0\Advanced_UI.jar(Advanced_UI-6.cod): WARNING! : import a file is marked not analyzable
com.samples.toolkit.ui.component.LabeledSwitch: WARNING! : not found definition
myPackage. MyScreen: WARNING! : reference to a non-defined class: com.samples.toolkit.ui.component.LabeledSwitch
com.samples.toolkit.ui.container.JustifiedHorizontalFieldManager: WARNING! : not found definition
myPackage. MyScreen: WARNING! : reference to a non-defined class: com.samples.toolkit.ui.container.JustifiedHorizontalFieldManager
Packaging project Test_5 succeeded (taken 1,781 seconds)

And the simulatorgives me

JVM error 104 - Eception: NoClassDefFoundErro

I am brand new with BlackBerry and I really don't have any idea how to solve this problem. I just want to be able to use the new controls in any new project, I create.

Thank you very much in advance for any help you are able to provide.

Sorry, I MTAs very distracted by a problem elsewhere.

Just to confirm, the way I use these components (there are a few that I use, but to be honest, I've changed all!) is the copy of the source of all the classes I want to use in my project.  Say so my project has a package name

com.mycompany.myProject

I usually have a "sub project" user interface, so the classes in there will have the name of the package

com.mycompany.myProject.UI

I usually create a subproject under the present for the user interface components I copy, say

com.mycompany.myProject.UI.advancedUI

Now in this directory I'll copy the java source for the classes that I want to use, and then change the name of the package for all these:

com.mycompany.myProject.UI.advancedUI

In my code where I want to use these classes, I import now

com.mycompany.myProject.UI.advancedUI. *.

The source is now part of my project.

But if you want to use as an external jar, the problem is you need to get these classes on the Simulator.  One option is to create a project with all of these inside classes, compile and load this project - now all classes are on the Simulator.  Then reference the jar created from your project and it should work.

But the source of the copy is a much more robust solution, in my opinion.

Tags: BlackBerry Developers

Similar Questions

  • Detection of selection of model AdvancedUI

    Hello

    I changed the UIExampleListStyleButtonFieldScreen of the AdvancedUI code sample class.  I have problems performing actions based on the users choice.  I see that 'field' is equal to the appropriate label, but I can't seem to get the right URL or take other actions based on selection.  I am trying to create an if statement in public Sub fieldchanged to determine who has been selected.  Something to point me in the right direction would be much appreciated:

    SerializableAttribute public class UIExampleListStyleButtonFieldScreen extends UIExampleScreen implements FieldChangeListener
    {
    Private UIExampleScreen _explanation;

    public UIExampleListStyleButtonFieldScreen() {}

    Super (NO_VERTICAL_SCROLL |) USE_ALL_HEIGHT);

    setTitle ("TU Mobile");

    Accent circumflex bitmap = Bitmap.getBitmapResource ("chevron_right_black_15x22.png");

    ListStyleButtonField a = new ListStyleButtonField ('News', circumflex accent);
    one.setChangeListener (this);
    Add (a);

    Two ListStyleButtonField = new ListStyleButtonField ('Events', circumflex accent);
    two.setChangeListener (this);
    Add (two);

    Three ListStyleButtonField = new ListStyleButtonField ('Admissions', circumflex accent);
    three.setChangeListener (this);
    Add (three);

    Four ListStyleButtonField = new ListStyleButtonField ('Track and field', circumflex accent);
    four.setChangeListener (this);
    Add (four);

    Five ListStyleButtonField = new ListStyleButtonField ('Donner de TU', circumflex accent);
    five.setChangeListener (this);
    Add (5);

    ListStyleButtonField 6 = new ListStyleButtonField ('Répertoire', circumflex accent);
    six.setChangeListener (this);
    Add (or six);

    Seven ListStyleButtonField = new ListStyleButtonField ('Photos', circumflex accent);
    seven.setChangeListener (this);
    Add (seven);

    Eight ListStyleButtonField = new ListStyleButtonField ('Map of the Campus', circumflex accent);
    eight.setChangeListener (this);
    Add (eight);

    Nine ListStyleButtonField = new ListStyleButtonField ('Weather', circumflex accent);
    nine.setChangeListener (this);
    Add (new);

    Ten ListStyleButtonField = new ListStyleButtonField ('About', circumflex accent);
    ten.setChangeListener (this);
    Add (RTE);

    _explanation = new UIExampleScreen();
    _explanation. SetTitle ("selection");

    LabelField explanationLabel = new LabelField ("detail screen");
    explanationLabel.setPadding (5, 5, 5, 5);
    _explanation. Add (explanationLabel);

    }

    ' Public Sub fieldChanged (field field, int context)
    {

    If statement would go here?

    UiApplication.getUiApplication () .pushScreen (_explanation);
    Dialog.Alert ("FIELD:" + field);
    }

    }

    The usual practice, when you try to use the fieldChanged method as you do here, is to have the fields as "global" features to your entire class.

    So, rather than create, and not being able to reference them in your constructor, you define them in the class itself.

    Here's a quick example:

    SerializableAttribute public class UIExampleListStyleButtonFieldScreen extends UIExampleScreen implements FieldChangeListener
    {
    Private UIExampleScreen _explanation;

    Accent circumflex bitmap = Bitmap.getBitmapResource ("chevron_right_black_15x22.png");

    ListStyleButtonField a = new ListStyleButtonField ('News', circumflex accent);

    Two ListStyleButtonField = new ListStyleButtonField ('Events', circumflex accent);

    public UIExampleListStyleButtonFieldScreen() {}

    Super (NO_VERTICAL_SCROLL |) USE_ALL_HEIGHT);

    one.setChangeListener (this);
    Add (a);

    two.setChangeListener (this);
    Add (two);

    ...

    }

    ' Public Sub fieldChanged (field field, int context)
    {

    If (field == a) {}

    ...

    }
    UiApplication.getUiApplication () .pushScreen (_explanation);
    Dialog.Alert ("FIELD:" + field);
    }

    }

  • Use a shape to draw a bitmap

    I wonder if there is a way to change the shape of a Bitmap, using a mask or something similar in this regard. Here's the problem:

    I have a bitmap rectangle, and I need to cut corners in order to get a Bitmap rounded (with transparent angles). Is it possible to do?

    In Android, I can specify a form of 'cut' a bitmap...

    Take a look at the DevCon 2010 session downloads. In particular sessions DEV18 through DEV21.  Here you will find an update for the RIM AdvancedUI samples, include the use of a mask bitmap to do exactly what you ask.

  • Question-40 px width button!

    Hi, im wondering why I have to subtract 40 pixels for the width of the button to fit the screen? ...

    This is a problem with the margins...

    public static int getBorderAndPaddingWidth( Field field )
        {
            int width = 0;
          //#ifdef VER_4.1.0 | VER_4.2.0 | VER_4.2.1 | VER_4.3.0 | VER_4.5.0
            width = field.getWidth() - field.getContentWidth();
          //#else
            width = field.getPaddingLeft() + field.getPaddingRight();
            Border border = field.getBorder();
            if( border != null ) {
                width += border.getLeft() + border.getRight();
            }
          //#endif
            return width;
        }
    

    I found the answer in the AdvancedUI library...

Maybe you are looking for

  • Re: Satellite L300 - made recovery but disc does not work

    I have a Satellite L300 and did a few sets of recovery discs from what I read some brands work and some don't, and none have so far. Insert Diskette 1, press the button and hold F12 key until the startup option appears.Select CD/DVD and then back typ

  • Lack ETHERNET LAN controller driver

    HP pavilion dm1 4035au driver help I need help please, I need driver for windows 7 Pro 32-bit ethernet Hardware ID PCI\VEN_10EC & DEV_8168 & SUBSYS_18D413C & REV_06 PCI\VEN_10EC & DEV_8168 & SUBSYS_18D413C PCI\VEN_10EC & DEV_8168 & CC_020000 PCI\VEN_

  • Question OS/Hardware Dell Precision 690

    Hello I have a 690 w a single dual core running Windows 2003.  It has Mo MY171 rev A01. I put processors Dual quad X 5300 inside? What are the chances of getting work Windows 2008? What are the chances of getting work Windows 2012? Will be one of the

  • I want to load the home office xP on a vista computer

    I bought a portable Toshiba which has Vista on it.  My Top Desk has Home Office XP, which has been downloaded to a Compaq who works on Vista.  I was told that I can not load my XP Home Office on my Lap Top because it has been implemented for a Dell o

  • PowerCLI datastore report

    Hellocould you please provide me with the script to report data format below storeNameCapacity GBGB provisioned%(Provisined/capacity) capacityUse GBGB free% Freedatastore11290.949218750.740.9492187512899