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
Contributor
Posts: 10
Registered: ‎08-29-2012
My Device: 9860
My Carrier: Relience

Hello world App

Hi,

can any one give my hello world app example!

 

Thanks,

Sahil

Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Hello world App

the samples are installed together with the blackberry eclipse plugin, including helloworld.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 10
Registered: ‎08-29-2012
My Device: 9860
My Carrier: Relience

Re: Hello world App

Thanks simon!

 

I have just installed eclipes!

 

 

Thanks,

sahil

Developer
Posts: 17
Registered: ‎08-23-2012
My Device: Bold
My Carrier: Vodafone

Re: Hello world App

HI Sahil,

 

You can see some sample in your eclipse installed path.

 

eg:-  E:\Eclipse 5.0\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.14\components\samples\com\rim\samples\device\

Highlighted
Developer
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: Hello world App

chek this code.

 

public class MyApp extends UiApplication
{
    
    public static void main(String[] args)
    {
        MyApp theApp = new MyApp();       
        theApp.enterEventDispatcher();
    }
    
    public MyApp()
    {        
        pushScreen(new MyScreen());
    }    
}

public final class MyScreen extends MainScreen
{
    	LabelField lblHello;
    public MyScreen()
    {             
        setTitle("MyTitle");
        lblHello = new LabelField("Hello World!");
        add(lblHello);
    }
}