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
Regular Contributor
prash_bb_dev
Posts: 68
Registered: ‎03-17-2010
My Device: 9000,9500,8900
My Carrier: Airtel,Vodafone

Can I access a class of one application from other application?

Here is my requirement.

 

My application has two parts. Ui module and System Module. In my system module I am watching for incoming messages. And when it comes I show a pop up which has ok and cancle buttons in it.

 

What i want to do is to access a specific screen of Ui Module which is a different project from system module.

Suppose the public screen class is in

com.myUiapp.messageModule.MessageScreen

 

 

so how can I access this screen from

com.mySystemModule.SystemModuleEntryPoint

? Which is in different project?

 

 

 

 

Please use plain text.
Developer
NOTiFYPiNPOiNT
Posts: 55
Registered: ‎07-21-2009
My Device: Bold 9700 - 6.0 Bundle 1202 (v6.0.0.344, Platform 6.6.0.50)
My Carrier: Orange UK

Re: Can I access a class of one application from other application?

in Eclipse you can include other projects in the;

 

Project Properties

Java Build Path

Projects

 

and add your project.

 

Not sure if this is what you mean?

 

"It's all about quality (of posts) not quantity"
Please use plain text.
Regular Contributor
prash_bb_dev
Posts: 68
Registered: ‎03-17-2010
My Device: 9000,9500,8900
My Carrier: Airtel,Vodafone

Re: Can I access a class of one application from other application?

One question.

 

At the time of signing and deploying in device will both applications installed? Or is there any chance of missing any app?? And eventually creating a fatal error??

 

Please use plain text.
Developer
NOTiFYPiNPOiNT
Posts: 55
Registered: ‎07-21-2009
My Device: Bold 9700 - 6.0 Bundle 1202 (v6.0.0.344, Platform 6.6.0.50)
My Carrier: Orange UK

Re: Can I access a class of one application from other application?

[ Edited ]

I've only used "Projects" in builds of J2EE Apps, not Blackberry.

 

If you include other projects and build in Eclipse it will compile & generate the classes from the included Project.

 

In J2EE when I use ANT to build and deploy my EAR file with the JARs and WARs they get included.

 

Have a look in your bin (class output folder) and see if the the (missing) class(es) that are causing the error are there?

 

It's definitely public?

 

 

"It's all about quality (of posts) not quantity"
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: Can I access a class of one application from other application?

Hi,

 

If your System Module Application and UiApplication both are included/ added in the same Project, then both will be signed and also deployed together automatically, because there will be only .cod, .jad, .alx file for that project.

 

Thanks,

Kanak

 

 

 

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
Regular Contributor
prash_bb_dev
Posts: 68
Registered: ‎03-17-2010
My Device: 9000,9500,8900
My Carrier: Airtel,Vodafone

Re: Can I access a class of one application from other application?

Thanks @kanaksony and @NOTiFYPiNPOiNT for your replys.

 

I will surely try what you have said. And will post the oucome.

 

 

 

Please use plain text.
Developer
titakalpesh
Posts: 203
Registered: ‎07-30-2009
My Device: Bold(9780),Curve(8520)
My Carrier: Vodafone

Re: Can I access a class of one application from other application?

Dude,

 

to use a single class in multiple project you can set project dependency in JDE and also you can access the third party jar files and you have to sign that single application and just install it to device you can test it.

 

Regards,

Tita

Please use plain text.