Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
fluffy85
Posts: 1
Registered: ‎01-23-2010
My Device: storm 2
My Carrier: o2

GlobalEventListener not working

I am developing two applications using JDE 5, testing using the simulator. 

 

Both applications  need to listen for Global Events, I wrote the first one and everything and It works just fine.  I have written the second one in the same workspace and the eventOcurred method just doesn't get executed (except for once if I start the other application).

 

I've stripped the code for the second one right back in an attempt to find out what is wrong, its seems to be the same as I have used before, it just doesn't work.  The code for the second one is:

 

public class Test extends Application implements GlobalEventListener

{

    public static void main(String[] args)

    {

        Test app = new Test();

        app.enterEventDispatcher();

    }

    public Test()

    {

        addGlobalEventListener(this);

    }

 

    public void eventOccurred(long guid, int data0, int data1, Object object0, Object object1)

    {

         System.out.println(guid);

    }

}

Please use plain text.
New Developer
ramakrishna172
Posts: 4
Registered: ‎01-23-2010
My Device: blod 9700
My Carrier: software

Re: GlobalEventListener not working

Hi,

can i develop application using  JAVA AWT (Applet) or swings that run in black berry.

 

is it black berry support JAVA  Swings  application or not?

 please reply back urgent........

 

R

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: GlobalEventListener not working

Blackberry does not support AWT.

 

PLease refrain from hijacking threads - this post has nothing to do with the original subject.

 

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: GlobalEventListener not working

Your code looks fine.

 

What actually starts this Application?

Please use plain text.