BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-26-2010, 02:49 PM   #1
jack_2060
New Member
 
Join Date: Apr 2010
Model: 9500
PIN: N/A
Carrier: Verizon
Posts: 2
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
jack_2060
New Member
 
Join Date: Apr 2010
Model: 9500
PIN: N/A
Carrier: Verizon
Posts: 2
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
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Fanuc Motherboard A16B-3200-0429/07B picture

Fanuc Motherboard A16B-3200-0429/07B

$640.54



Fanuc PC Wide Mini Motherboard EE-5770-010-002 A20B-8101-0350/02B picture

Fanuc PC Wide Mini Motherboard EE-5770-010-002 A20B-8101-0350/02B

$149.95



1PCS FANUC System Motherboard A20B-8100-0662 picture

1PCS FANUC System Motherboard A20B-8100-0662

$1697.00



Fanuc Motherboard A16B-3200-0429/07B *See Description* picture

Fanuc Motherboard A16B-3200-0429/07B *See Description*

$629.95



Used & Tested IPC PCI-6870F Motherboard picture

Used & Tested IPC PCI-6870F Motherboard

$255.11



DSC PC1832 PowerSeries 8-32 Zone Alarm System Motherboard PC1832PCB Board Only picture

DSC PC1832 PowerSeries 8-32 Zone Alarm System Motherboard PC1832PCB Board Only

$199.99







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