BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-27-2010, 06:49 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Model: 7100T
PIN: N/A
Carrier: java
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Determine home screen

Please Login to Remove!

Hi to all,

How can i know programmatically that current displaying screen is hoemscreen?does anybody know how to do it?

with thanx and regards
shakeel
Offline  
Old 02-01-2010, 05:37 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can know by following these steps:
1. ApplicationManager.getVisibleApplications() returns ApplicationDescriptor[].
2. ApplicationManager.getForegroundProcessId() returns foreground app's process Id.
3. ApplicationDescriptor.getName() returns the app name.
4. Check the output of step 3. For the app name = Home Screen, get ApplicatonManager.getProcessId(ApplicatonDescripto r).

If the output of step 2 = output of step 4, then Homescreen is in foreground, else not.
Offline  
Old 02-02-2010, 08:36 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by pooja.a.maheshwari View Post
You can know by following these steps:
1. ApplicationManager.getVisibleApplications() returns ApplicationDescriptor[].
2. ApplicationManager.getForegroundProcessId() returns foreground app's process Id.
3. ApplicationDescriptor.getName() returns the app name.
4. Check the output of step 3. For the app name = Home Screen, get ApplicatonManager.getProcessId(ApplicatonDescripto r).

If the output of step 2 = output of step 4, then Homescreen is in foreground, else not.
Did this solution help you? Please respond.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Quantity: 6 ADVANCE FLUORESCENT HO BALLASTS RS-2S-100-TP F72 HO #2
$89.95
Quantity: 6 ADVANCE  FLUORESCENT HO BALLASTS RS-2S-100-TP   F72 HO  #2 picturePhilips Advance Electronic Ballast ICN2S28T ICN-2S28-T T5 Lamps 120-277V NEW
$21.95
Philips Advance Electronic Ballast ICN2S28T ICN-2S28-T T5 Lamps 120-277V NEW pictureVossloh Schwabe M7012/27CK/5EU-JT2 Metal Halide Ballast 70W NEW
$25.0
Vossloh Schwabe M7012/27CK/5EU-JT2 Metal Halide Ballast 70W NEW pictureVossloh Schwabe M2012/27CK/5EU-JT3 Ceramic Metal Halide Ballast 20W Lot of 3 NEW
$35.0
Vossloh Schwabe M2012/27CK/5EU-JT3 Ceramic Metal Halide Ballast 20W Lot of 3 NEW pictureAMERICAN GREENPOWER B1-120-4 FOR INDUCTION LAMPS-BALLAST ONLY
$74.99
AMERICAN GREENPOWER B1-120-4 FOR INDUCTION LAMPS-BALLAST ONLY picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.