Solved

setCurrent() forces my midlet to foreground?

Posted on 2008-10-18
1
472 Views
Last Modified: 2013-11-24
Hi,

When my midlet goes into the background, I still have a thread running, doing some work. Sometimes it tries popping up a notification by eventually calling setCurrent().

On my test blackberry device, the call to setCurrent() actually forces my application into the foreground again. Is there any way to block that from happening, other than coming up with my own system of catching calls to setCurrent() and ignoring them while in the background?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
1 Comment
 
LVL 6

Accepted Solution

by:
CodeFish earned 500 total points
ID: 22772707
Try doing a conditional  setcurrent(null) if it is in the background. That's all i can think of. Hope it helps.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question