×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254

    Is it possible to detect whether the phone is in use using J2ME?

    Hi,

    Can someone tell me how can a midlet detect whether the phone is in use or not? To make it clear I am making use of PushRegistry.registerAlarm to invoke an application. But if the phone is busy such as user busy talking to someone, playing game, sending sms, or accessing gprs.

    I know that the priority of this will be higher than the midlet and so the midlet will automatically not be invoked. If this can be detected then I want it should make 3 attempts of invoking the midlet.

    Any help or suggestion would be greatly appreciated.
    Sunil
    Mobile Application Developer

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Is it possible to detect whether the phone is in use using J2ME?

    It is not possible with Java ME to detect if a phone call is going on or if the user is using actively some other application.
    I cannot come up with any good workaround for you either.

    Hartti

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254

    Re: Is it possible to detect whether the phone is in use using J2ME?

    Hi,

    Anyways Thanks Hartti

    Ok, can someone tell me if I want that the midlet should get invoked once in a day which I think will be possible through PushRegistry.registerAlarm, if at that time when the midlet should be invoked the phone is in use then what will happen? Will the application be never invoked then or some other behavior?
    Sunil
    Mobile Application Developer

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Re: Is it possible to detect whether the phone is in use using J2ME?

    Quote Originally Posted by sunil_bhambani123 View Post
    Hi,

    Anyways Thanks Hartti

    Ok, can someone tell me if I want that the midlet should get invoked once in a day which I think will be possible through PushRegistry.registerAlarm, if at that time when the midlet should be invoked the phone is in use then what will happen? Will the application be never invoked then or some other behavior?
    It will wait for the phone call to get over. Once the user finish the phone call, AMS will display the midlet.

Similar Threads

  1. J2ME or C++ for VoIP on Mobile Phone
    By sandeepkumar03 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-13, 20:14
  2. Nokia Gamer (GamR) - concept phone
    By tgm91 in forum General Development Questions
    Replies: 4
    Last Post: 2008-10-01, 21:34
  3. OMA DRM media transfer using PC to Phone using USB
    By venky123 in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2008-08-13, 03:02
  4. Cannot detect 6219 phone
    By hwwong in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2003-08-12, 10:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •