BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-24-2009, 04:59 AM   #1
holr
New Member
 
Join Date: Mar 2009
Model: 8900
PIN: N/A
Carrier: o2
Posts: 4
Default "menu" keeps appearing after popping a screen

Please Login to Remove!

Hi,
I am developing a small blackberry application that contains two "mainscreen" windows. After the user has selected some options in the first, a new ModalScreen is pushed to the stack and is displayed as so.

Code:
            
MyModalScreen _ms = new MyModalScreen();
getUiEngine().pushModalScreen(_ms);
//continue processing after modal is popped
So far so good.

However, after the user finishes with this ModalScreen (selects the "cancel" button), I remove it with a...
Code:
getUiEngine().popScreen(this);
...from within the code of the 2nd screen.

This then removes the ModalScreen, and the user is again presented with the first.

My problem is, after the 2nd screen is popped and the 1st screen appears, the "Menu" always, rather annoyingly, appears. I can get rid of it manually with the "back" button (resuming control to the 1st screen), but I'm sure there must be a better way around it than this?

Thanks for any help!

Last edited by holr; 06-24-2009 at 05:01 AM..
Offline  
Old 06-24-2009, 08:37 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Make sure you have the CONSUME_CLICK style on your button fields.
Offline  
Old 06-29-2009, 10:57 AM   #3
holr
New Member
 
Join Date: Mar 2009
Model: 8900
PIN: N/A
Carrier: o2
Posts: 4
Default

Hi Dougsg38p, thanks for your help! I managed to get my code working.

Coincidentally I have released the program on sourceforge as an open source app at (sorry for the silly url, the forum won't let me post the url because my post count is less than 10):

https colon slash slash sourceforge dot net slash projects slash bbvelcro


Basically, its a simple pkzip "unzipper" program. I was tired of having to pay for a full featured zip app when all I wanted to do was unzip a "zip" file. Note, it only works on zip's created with Windows OSes, as Linux and Mac have a different format which isn't compatible with Velcro. However, the src code is available to download so maybe someone else will figure that one out!

It can take ages to unzip a big file, so the blackberry indicator light flashes a rapid on/off red colour to let you know your zip has "unzipped"

Cheers,
holr
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


Analog Panel AMP VOLT Current Ammeter Voltmeter Voltage Gauge 10A 50V DH-670 DC  picture

Analog Panel AMP VOLT Current Ammeter Voltmeter Voltage Gauge 10A 50V DH-670 DC

$12.99



AC 80-260V 0-100A LCD Digital Display Volt Watt Power Meter Voltmeter Ammeter picture

AC 80-260V 0-100A LCD Digital Display Volt Watt Power Meter Voltmeter Ammeter

$22.50



Voltmeter Ammeter DC 120V 500A Voltage Current Gauge RV Boat Motor Camper CAR picture

Voltmeter Ammeter DC 120V 500A Voltage Current Gauge RV Boat Motor Camper CAR

$32.50



Battery Tester DC 0-80V0-350A SOC AH VOLT AMP Capacity Tester Voltmeter Ammeter picture

Battery Tester DC 0-80V0-350A SOC AH VOLT AMP Capacity Tester Voltmeter Ammeter

$43.50



LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter picture

LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter

$10.95



US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-200A DC & Shunt picture

US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-200A DC & Shunt

$18.91







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