Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
patilajayr
Posts: 385
Registered: 07-28-2010
My Carrier: hi

How we detect you are coming from which sreen?

hello friends,

                    i want to give one tip when i lounch the application. means when i launch application after that i am showing one tip. my problem is that i want to show that tip only when i lanch that application only once. but suppose i my on another page in my application and i am go on home page that tip again see. i check that in home page constrctor. how i do that? 

                     when i go on home page on other page i dont want to show that tip. any one tell me how i detect that i am comming from which screen? 

 

     help me friends..

thanks and regards,

  Ajay patil.

Please use plain text.
Developer
jitendrasharma
Posts: 205
Registered: 08-04-2009

Re: How we detect you are coming from which sreen?

You can simply pass screen object to the constructor of HomeScreen. But if I am not wrong your HomeScreen would be called at once, when user lauches application, afterwards we just need to pop screens above this screen. and If we pop this screen means we are quiting from the app. and HomeScreen will be called when application launched again.

Please use plain text.