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: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier
Accepted Solution

I am at the sms screen and i want to bring my application in the foreground how to do it

I am at the sms screen and i want to bring my application in the foreground how to do it

 

I tried UIApplication.getApplication.requestForeground();

 

 

but it didn't worked post me some possible solution

 

 

Thanks in advance for any help/ suggestion

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

Re: I am at the sms screen and i want to bring my application in the foreground how to do it

send a global event to your application.

see
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/Application.html#addGlo...

http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html...

or you can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html...
----------------------------------------------------------
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: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: I am at the sms screen and i want to bring my application in the foreground how to do it

can you please help me with some sample code i will be really thankfull
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: I am at the sms screen and i want to bring my application in the foreground how to do it

the API doc is pretty descrptive and the task is not very difficult, you should be able to do that on your own.

code for a specific problem is usually not sample code...
----------------------------------------------------------
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
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: I am at the sms screen and i want to bring my application in the foreground how to do it

You might also add a menu itme to the SMS application that calls your app.

 

See ApplicationMenuItem and ApplicationMenuItemRepository.

Highlighted
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: I am at the sms screen and i want to bring my application in the foreground how to do it