×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    9

    How to use the call time and or call cost datas on my phone to develop...

    I would like to know if anyone has any idea if there is anyway to use call time on a cell phone to create an application?
    what i mean is, i am using a motorola c390, and i would like to use the already incorporated call time management app that you get by going to "recent calls" then either "dialled" "received call" to create an application that would, at the end of a phone call, display the duration directly to the screen ... problem is, using motominman, i can only access the java midlets on my phone, nothing more.. Any Help would be greatly appreciated

  2. #2
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    66

    Re: How to use the call time and or call cost datas on my phone to develop...

    Hi nomoney!

    I don't think it's possible to access call logs from a J2ME application. We're all in a dirty sandbox pal!! =)

    BUT! You could try using System.currentTimeMillis() inside pauseApp(), to know when the call started, and use it again in startApp() to know when the call ended. The difference between these two values would be the duration of the call in milliseconds.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    9

    Re: How to use the call time and or call cost datas on my phone to develop...

    damn sandbox!!...hum.. so by using System.currentTimeMillis() inside pauseApp() .. ai will be able to record the duration of the phonecall on a variable?...
    if yes, then it might save me..

  4. #4
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    66

    Re: How to use the call time and or call cost datas on my phone to develop...

    Yes, you can do that. Your application would have to be running of course. You could even use RMS or FileConnection APIs to make your own Call Log.

    Cheers!

  5. #5
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: How to use the call time and or call cost datas on my phone to develop...

    IMHO, pauseApp() cannot be used reliably in your case. Because, pauseApp() will also be called when external events such as incoming SMS, Phone charging etc occours.
    You could use JSR 253: Mobile Telephony API (MTA), but it is currently not available in Nokia phones.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  6. #6
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    66

    Re: How to use the call time and or call cost datas on my phone to develop...

    Still you could use pauseApp()... SMS and phone charging events would give veeeeery little time difference, so you could easily differentiate one event from another.

Similar Threads

  1. Phone call for certain specified time
    By rd-mohammedh in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-11-19, 20:53
  2. duration and cost at a time in call log?
    By hegdeshashi in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-10-26, 07:30
  3. How to make simultaneous VOICE and DATA call on a Nokia Phone?
    By venkat_nokia in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2004-04-28, 12:15
  4. phone call time
    By mwilliams45 in forum Mobile Java General
    Replies: 1
    Last Post: 2003-02-12, 14:26

Posting Permissions

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