Search This Blog

Monday, 13 August 2012

Do something when app comes to foreground or background for Blackberry

Hello friends,
                    So its time for BB again....after all BB is the oldest smartphone company ........hehehehe.Ok Jokes apart here it is how to do something when your app comes in foreground from background and vice versa.

You just need to override the function in main class :

For Foreground:
public void activate(){
//Do something

And for Background :

public void deactivate(){
//Do Something


  1. You should publicize your blog on facebook to get maximum hits and more people to read your blog.

  2. Thanx for the opinion i m glad for this......but the motive behind this blog is to share knowledge and not business ;) happy programming