title: J2ME system notification / play sound when phone is locked
body: <p>Good day all,</p>
  
  <p>I have a java based phone (samsung star 2 5260) and it's three weeks that I'm trying to come up with a solution to receive notification on received emails.
  The phone configures a periodic check for a minimum of 30 minutes, but I need a much more frequent control (five minutes maximum).</p>
  
  <p>I have tried countless solutions, and I've come up with the closest one, being a custom mujmail midlet that supports my gmail mailbox over imap, deployed thanks to the netbeans editor.
  Point is, I've modified mujmail's polling to run on the background, but audio does not play when the phone is locked, so even if the midlet checks and receives emails, it's unable to notify me. The application minimizes and keeps on running, but it's unable to tell me that new mail has arrived.</p>
  
  <p>I've even tried sending an sms when there's new mail, but was unable to sign the application (looks like ktoolbar produces 1024 bit certificates, and thawte, verisign, etc. will only produce 2048 bit certs since a few years.), and so it'll always ask authorization, which renders this approach useless.</p>
  
  <p>So I'm desperate to find an alternative.</p>
  
  <p>And I was hoping that we can in some way emulate the 'system alert' that the phone uses when it's locked and you receive an sms (audio cue).
  Is this a j2me functionality, or is it specific to the samsung sdk?
  Does anybody have an idea of how to access this functionality from inside a midlet?
  Is there a way to create a midlet in the trusted third party domain without signing it?</p>
  
  <p>I know j2me is an old subject, but hopefully someone here is still knowledgeable about it.</p>
  
  <p>Thanks in advance.</p>