Hypothetical question. Is it currently possible to have a J2ME application run in phone's background.

More particularly, I would like a user to activate a function and then be able to carry on regular operations with their phone with the function still active - similarly to the alarm application available on most phones nowadays.

Can anyone explain to me how this is done. Thank you.