BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-26-2010, 02:49 PM   #1 (permalink)
New Member
 
Join Date: Apr 2010
Model: 9500
PIN: N/A
Carrier: Verizon
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question NewBie BB Developer

Please Login to Remove!

Hi, I am trying to create an application that will closed the first application in the switch application menu. Basically it will close the top most application that sent to the background by return key.

I am trying to use the
Code:
ApplicationManager manager = ApplicationManager.getApplicationManager();
ApplicationDescriptor descriptors[] = manager.getVisibleApplications();

String appname1 = descriptors[0].getName(); 
- example code:
But this always return only an descriptors[] array of size one.

So how can i get hold of the items in Switch Application Menu. I researched around and found that i cannot get access to SwitchMenuClass itself so is there any way to get hold of the application name or process id contained in the SwitchMenu item list.

Thanks for the help.
Offline  
Old 04-29-2010, 02:28 PM   #2 (permalink)
New Member
 
Join Date: Apr 2010
Model: 9500
PIN: N/A
Carrier: Verizon
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default No Replies

Umnn 141 views and no reply.. Either i am asking something too stupid or it just cant be done. Atleast let me know which one it is
Offline  
Old 04-29-2010, 10:48 PM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You cannot close another application using the app descriptor.

Having said that, there is nothing wrong with your code, it should show you all of the "running" apps.

Have you tried starting a few?
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

HP 85700A 32K BYTE RAM CARD HEWLETT PACKARD BIN#B2-C-87
$119.99
HP 85700A 32K BYTE RAM CARD HEWLETT PACKARD BIN#B2-C-87 pictureToshiba ST-A20-T57K-QM-R POS Core 2 Duo 2.16GHz 3GB RAM 160GB HDD Used
$449.99
Toshiba ST-A20-T57K-QM-R POS Core 2 Duo 2.16GHz 3GB RAM 160GB HDD Used pictureNew Intermec CN50 CN50BQC6EN21 VERIZON CDMA, WiFi BT, 2D EA11D Imager , 256M RAM
$499.0
New Intermec CN50 CN50BQC6EN21 VERIZON CDMA, WiFi BT, 2D EA11D Imager , 256M RAM pictureSiemens Sinumerik Module Board RAM Memory 6FX1126-6BB00
$145.0
Siemens Sinumerik Module Board RAM Memory 6FX1126-6BB00 pictureSiemens Sinumerik Module Board RAM Memory 6FX1853-0BX02-4B
$145.0
Siemens Sinumerik Module Board RAM Memory 6FX1853-0BX02-4B  picture






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