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
Highlighted
Contributor
Posts: 12
Registered: ‎01-19-2013
My Device: curve 8520
My Carrier: vodacom

how to detect if my app was launched via bbm

hello everyone

 

i would like to know how to detect if my app was launched via bbm

 

for example if a userA invites userB to play a game and userB accepts then a boolean value must b true on userB's app and userA will be false because  userA's app did not launch via BBM

 

 

//private static boolean _WasLaunchedByBBM = false;

 

 

public static void main(String[] args)
{

 

 

//Code to detect here

// _WasLaunchedByBBM = .....

 


_app= new MyApp();
_app.enterEventDispatcher();
}

/**
* Creates a new MyApp object
*/
public MyApp()
{

Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_LANDSCAPE);


_mSc = new MyScreen();
pushScreen(_mSc);







new Thread(this).start();




}//MyApp

 

 

 

 

 

 

Thanks