01-23-2009 09:36 AM - edited 01-23-2009 09:42 AM
The app runs in the background but on ocasions pushes a popup screen.
The appextends UIapplication so the application is automatically put on the "switch to application" ribbon.
I don't wat to allow someone to switch to my background app.
I have two approaches:
1) Disable the app icon showing on the "switch to application" ribbon
- could not find a way to do this (other than to extend Application instead of UIapplication)
2) intercept activate()
I tried doing this:
* Overriden to disable SwitchTo handling
public void activate()
System.out.println("IGNORE: Somebody used Switch to application.");
// ignore Switch to application
but it doesn't work.
Ok then I check the docs and see this:
"The system invokes this method when it brings this application to the foreground. By default, this method does nothing. Override this method to perform additional processing when being brought to the foreground."
So, basically, I didn't do anythig with that override
Is there a way to make my app transparent to the "Switch to application" events ?
Solved! Go to Solution.
01-23-2009 09:42 AM
01-26-2009 05:46 AM
Thanks for the input.
Yes, I am currently using this approach, but I think it's fair from my side to let the user know that my app is up an running.
Although I have a second entry for this, the lack of task manager on BB engaged me into such endavour.
And it could be managable if only I could get my grip on that activate()... or something similar. I suppose clicking ot the ribbon just invokes some kind of sendToForeground() routine.
Anyway, thanks for the comment.
01-26-2009 06:10 AM
01-26-2009 06:18 AM
Note this post:
In activate(), I think if you do a requestBackground() you will stay in the background. However you might want to pop a dialog box telling the user that the application is not accessible.
01-28-2009 11:05 AM