Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User ngrizzly's Avatar
    Join Date
    May 2008
    Posts
    3
    I want to make an application for logging duration of calls but on a monthly basis.

    Basicly, I need for OS to notify my app after a received call ending with information about phone number and call duration or just notify so that my app can find information.

    It was ment for app to be started on every reboot, but I saw here that that is impossible.

    If MIDlet can't be notified it can use last inforamtion from phone log both last received call and last call duration. How to access this information?

    Thanks,

    Nemanja

  2. #2
    Nokia Developer Expert rdrincon's Avatar
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351
    Hello ngrizzly

    First of all, bear in mind that using java you don't have access to any information about incoming calls, that makes not possible to have either the number (msisdn) or the elapsed time.

    There's one thing you can do...

    If you have a MIDlet running and an incoming call comes, then the AMS (Application Management Software) will automatically call the pauseAppMethod()....

    when the phone call is over, then the AMS will call the starApp() method...

    I think you can use the time offset between the pauseApp() call and the startApp() to get the elapsed time of the call...
    but no way to know the phone number

    So try that...

  3. #3
    Registered User ngrizzly's Avatar
    Join Date
    May 2008
    Posts
    3
    Thank you for replying.

    Probably number of things can make AMS to pause my MIDlet, and also application is meaningless wiothout phone number. To be more precise I just need to no if call is domestic or from foreingh network.

    I'm wondering now how much time do I need to learn basics of c++ to do this simple program.

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi NGrizzly,

    On S60 3rd edition FP2 you have System properties, accessible from a J2me application, that could be useful for your needs:

    http://wiki.forum.nokia.com/index.ph...tem_properties

    Specifically, you can access:
    * IMSI via "com.nokia.mid.imsi" System property
    * network ID via "com.nokia.mid.networkid" System property

    Apart from this, there are other features (like accessing the call log) that are not realizable with a J2ME application, so you should consider switching to other technologies (like Symbian C++).

    Pit

  5. #5
    Registered User ngrizzly's Avatar
    Join Date
    May 2008
    Posts
    3
    I will have to switch to Symbian C++. There is no way to do this simple app in java obviosly.

  6. #6
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    Just to correct a couple of incorrect statements in the reply above.

    When a call comes in, the AMS might or might not call pauseApp() - the MIDP spec does NOT require this method to be called in this situation. Also if the system uses that approach, pauseApp might be called for other reasons as well...

    On Nokia phones in general (S60 3rd Edition FP2 devices will have a JAD attribute for this though), pauseApp is not called. Instead in Canvas-based applications hideNotify is called. However that method could be called also for other reasons (like the user moving the MIDlet to the background).

    ngrizzly, check also Python on S60. That could have the required methods available and creating a Python app is way simpler than coding a Symbian C++ app

    Hartti

Similar Threads

  1. Question about launch App
    By zhangwei_Nirvana in forum Symbian C++
    Replies: 1
    Last Post: 2007-12-13, 08:28
  2. Problem with py standalone app
    By darrarski in forum Python
    Replies: 0
    Last Post: 2007-11-23, 14:11
  3. how to remove quick office log file from app manager in nokia n71?
    By imadsharieff in forum General Development Questions
    Replies: 0
    Last Post: 2007-10-31, 15:48
  4. Help for simple App for connecting to BT device
    By dougie1 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-03-01, 06:28
  5. when log file overflow, app starts corrupting database files
    By mamatha_mallesh in forum Symbian C++
    Replies: 0
    Last Post: 2005-01-18, 10:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved