BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-26-2011, 06:11 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2011
Location: India
Model: 9700
PIN: N/A
Carrier: Airtel
Posts: 30
Post Thanks: 3
Thanked 0 Times in 0 Posts
Default capture Browser launch event

Please Login to Remove!

hiiiiii..
is there any API in blackberry which is used to show a dialog box when user launch the Blackberry browser..

Please Helpp

I want to capture the event when user launch default Blackberry browser....is there any listener in Blackberry which is used to caapture this event.
Thanks.
Offline  
Old 05-26-2011, 08:27 AM   #2 (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 Re: capture Browser launch event

There is no listener to capture when the browser is launched.

I imagine that you might implement your requirement by having a background program which polls the "visible applications" list from ApplicationManager. You could then push a global-modal dialog when the browser shows up in the list.
Offline  
Old 07-01-2011, 02:15 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2011
Location: India
Model: 9700
PIN: N/A
Carrier: Airtel
Posts: 30
Post Thanks: 3
Thanked 0 Times in 0 Posts
Default Re: capture Browser launch event

Thanks...
Offline  
Old 07-01-2011, 02:45 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: capture Browser launch event

Wouldn't the browser always be on that list since it is always running?
__________________
My other Blackberry is a PlayBook.
Offline  
Old 07-02-2011, 09:41 AM   #5 (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 Re: capture Browser launch event

I said "I imagine" - to be validated by the reader.

Offline  
Old 07-02-2011, 01:08 PM   #6 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: capture Browser launch event

Fair enough, thought you might have actually done that and new.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 07-02-2011, 07:22 PM   #7 (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 Re: capture Browser launch event

Nah...never had a requirement to listen for browser launch before. Didn't realize it is one of the "always on" apps.

Maybe there is a way to detect who has the focus?
Offline  
Old 07-02-2011, 09:18 PM   #8 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: capture Browser launch event

You can find out which Field has focus, get the UiApplication context for the Field and find out the application that owns the execution thread associated with the field. It is not always the application the field 'belongs to', but it usually is. Sounds like a lot of work for something so dubious.

The Browser is always on because it listens for push events.
__________________
My other Blackberry is a PlayBook.
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

Similar Threads for: capture Browser launch event
Thread Thread Starter Forum Replies Last Post
Handling browser button click event BB1364 Developer Forum 0 08-04-2009 02:56 AM
Browser plugin for URL capture Adol Developer Forum 3 10-30-2008 12:37 PM
Anyone receive their Bold from the NYC launch event yet? acohen General 9000 Series Discussion - Bold 0 10-22-2008 12:28 PM
unlocking 8800 from CINGULAR & BLACKBERRY launch event azmmza General Legacy Device Discussion 35 04-12-2007 01:15 PM





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