×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Thumbs down How to detect Mobile is in Offline/Flight Mode in Midlet?

    Hi,

    How to detect whether the phone is in offline/flight mode in Midlet?

    Thanks In Advance,
    Anil Pinto

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: How to detect Mobile is in Offline/Flight Mode in Midlet?

    Hi ,
    Can yo explain the question little bit of clearly ? And what do you mean by flight mode ? It will be help full to give you the answers. If the question is not clear it is very difficult to give you the suggestions.

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: How to detect Mobile is in Offline/Flight Mode in Midlet?

    Hi AnilPinto,

    there is not a direct method to check this in Java ME.

    Anyway, you could try to use some network-related System properties and see if they could suit your needs:

    * on S60 3rd edition FP2 devices: "com.nokia.mid.networksignal" or "com.nokia.mid.networkavailability"
    * on S40 devices: "com.nokia.network.access"

    Pit

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

    Re: How to detect Mobile is in Offline/Flight Mode in Midlet?

    Hi All,

    Thanks for the reply guys.

    Meaning of Offline/Flight Mode is as follows:

    In offline mode you can neither call anyone nor you will get any incoming call. This is done normally when user is flying and therefore also called flight mode(See Nokia 5610).

    What I am actually looking for is "how to detect from MIDlet whether the phone is in offline mode".

    Thanks & Best Regards,
    Anil Pinto

    PS: I tried System property "com.nokia.network.access" but it is used to detect the networking access point like:
    pd — Packet data, for example GPRS
    csd — Circuit-switched data, for example GSM CSD/HSCSD data call
    bt_pan — Bluetooth PAN network
    na — Not applicable, the implementation cannot determine the type

Similar Threads

  1. How to detect offline mode in 2nd Edition
    By Asif Nazir in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-05-09, 07:16
  2. Replies: 1
    Last Post: 2007-02-13, 09:28
  3. Detect Midlet losing Focus
    By ianbolland in forum Mobile Java General
    Replies: 1
    Last Post: 2005-12-07, 19:07

Posting Permissions

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