Solved

setCurrent() forces my midlet to foreground?

Posted on 2008-10-18
1
473 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Desingning Refactoring existing code 2 31
mysql jsp example issue 32 67
Crystal Reports Licensing Questions 4 56
junit as external jar or library 7 36
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

679 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