-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listview does not shows name and number off recorded calls #4
Comments
Hi @crampal7; sorry about that. I haven't touched this project in a few years, and don't have any good ideas for you as to why that's going on. It's pretty much in the "if it breaks you get to keep both pieces" stage. If you figure out what's going wrong I'm happy to merge a fix in though. |
Hi @crampal7; I have downloaded the project today and when I worked on the project, I got the same issue. Did you solve it? If not, then in java file - "CallLog", please add a "if" loop after " String[] dlist = dir.list(); line" for dir.list() size inside method - "loadRecordingsFromDir()". If size id not empty, then execute for loop. This will solve the problem. I hope it will help you and others too. |
pull requests welcome On Tue, May 19, 2015 at 5:51 AM, critikaCapoor notifications@github.com
|
Hi @critikaCapoor; Could you please give me exact code of the loop.what loop shall i add over there. |
Hi @crampal7, I have only fetched number and duration for the recorded call. Sorry yesterday I got the wrong meaning of the question you asked. Below are the files with code that you need to replace with the original working files. Record Service--- import java.io.File; import javax.xml.datatype.Duration; import android.annotation.SuppressLint; @SuppressLint("NewApi")
} CallLog- package com.talentcodeworks.callrecorder; import java.io.File; import android.app.Activity; /* public class CallLog
} And please do add the below permissions in manifest-
The above code is working fine and the listview will show the recorded call url along with the phone number and duration. I hope it will help you somehow. |
i updated both the files, but it shows error 11339-11339/com.example.myapplication6.app E/AndroidRuntime﹕ FATAL EXCEPTION: main |
Hi @crampal7 have you also added the permissions in the manifest? And also please cut and copy the cursor code lines from "RecordService" file and then change the file name of "CallLog" to "CallLogs" and then again paste the cursor code. You got the error because it didn't ask for the android.provider.CallLog, it by default took CallLog for CallLog java file. |
Audio player is not working!! can i get some help please!! |
i have downloaded the project and i worked on it, but the listview is not showing the name and number of the recorded calls.
The text was updated successfully, but these errors were encountered: