javascript - Sencha Touch get last call duration -
I'm working on a Sancha Touch project, so I need to get the last call duration. I have a button in the UI, when there is some tap on the button that can make a call, after that incident, I need to get a call duration on that number. I have searched a lot to get some clue but have not done a search yet Please direct me in the right direction
Here is my code
{xtype: 'button', text: 'phone', id: 'call mebutton', flex: 1, handler: function () {window.open ('tel: +' + 9496347047); // Here I would like to get the last duration of time for this number. }}
You can not use call logs on some systems, such as
You can do it on Android, and someone has written one for it (you will not be able to use it though with Sencha).
You are probably the Window.open () part and compare the current time with it when the user returns to your app's screen, but it will be very accurate without any problems.
Comments
Post a Comment