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
Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810
Accepted Solution

Screen stack access ?

Hi all.Is there a way to access the screen stack?

 

I would like my background thread to write the name of the topmost screen while moving through the various applications on the bb (address book, sms ... ).

 

(I need it for testing purposes)




"Listen carefully, I shall say this only once"
Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Screen stack access ?

[ Edited ]

What do I need to do for:

 

public Screen getActiveScreen()

 

to always retrieve the topmost screen (not only for my application) ?

 In which thread should I use it ?

 

Thank you in advance. 

Message Edited by myraddin on 10-21-2008 03:29 PM


"Listen carefully, I shall say this only once"
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Screen stack access ?

Not in the way you want,  You can only see screens in your application, and you can go through the stack starting with the top using

UiApplication.getUiApplication().getAciveScreen();

 

As far as I know, there is no way from your application to see other application's screens, I think that would be regarded as a security exposure.

Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Screen stack access ?

Thank you for the answer.


"Listen carefully, I shall say this only once"