BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-27-2008, 10:07 AM   #1
BB1364
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Default Blackberry browser application problem

Please Login to Remove!

hi
i have this application, when the icon is clicked on the homescreen it pushes a mainscreen an then opens the google website immediatley as i set the default seesion of the browser to google and display it. it wrks fine but the problem is when i finish browsing and then click on escape it shows me the blank screen which i have pushed(i dont want to view this screen). I f i remove the mainscreen the application doesnot wrk properly.

If i dont push the screen the browser just opens once and then it hangs the application. What i want is when i finish browsing and press escape it should just exit the app without showing me the mainscreen.

Or can we handle the pressing of ' escape ' in the browser ,, does anyone have any idea.

Thanks in advance.
Offline  
Old 11-27-2008, 10:22 AM   #2
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

try to override
protected void onExposed()
of your screen as it should be called if:

...
2. a global screen is popped (since 4.0)
3. this screen's application receives foreground (since 4.2)
...
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 11-27-2008, 02:36 PM   #3
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

If you are using Invoke() to start the browser, this is a blocking call. Control passes back to you application when exiting the browser.

Consequently, you should be able to exit the app immediately after the call to Invoke. Just perform System.exit(0), or requestbackground(), or whatever works for you.
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


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



Landy Attachments 3 Point Ballast Box Fits Category 1 Tractors picture

Landy Attachments 3 Point Ballast Box Fits Category 1 Tractors

$493.91



10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v picture

10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v

$108.99



Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12 picture

Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12

$18.79



Ballast Box 3 Point Hitch Counterweight for Cat 1 Category 1 Tractor 800lb Green picture

Ballast Box 3 Point Hitch Counterweight for Cat 1 Category 1 Tractor 800lb Green

$192.99



Philips Advance Core And Coil Ballast Kit 1-250W - 71A5892-001D.Free Shipping. picture

Philips Advance Core And Coil Ballast Kit 1-250W - 71A5892-001D.Free Shipping.

$29.99







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