aykuttasil / CallRecorder

Android Phone Call Recorder
MIT License
757 stars 239 forks source link

How to run in Service? #24

Open TikTak123 opened 6 years ago

TikTak123 commented 6 years ago

How to run in Service? There is no such method buildService?

callRecord = new CallRecord.Builder(this)
   .setRecordFileName("RecordFileName")
   .setRecordDirName("RecordDirName")
   .setRecordDirPath(Environment.getExternalStorageDirectory().getPath()) // optional & default value
   .setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB) // optional & default value
   .setOutputFormat(MediaRecorder.OutputFormat.AMR_NB) // optional & default value
   .setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION) // optional & default value
   .setShowSeed(true) // optional & default value ->Ex: RecordFileName_incoming.amr || RecordFileName_outgoing.amr
   .buildService();
Feroz-Istar commented 5 years ago

no it seems they dont have any solutions for service

govind-mukundan commented 4 years ago

no it seems they dont have any solutions for service

https://github.com/aykuttasil/CallRecorder/blob/master/callrecord/src/main/java/com/aykuttasil/callrecord/CallRecord.kt#L231-L232

Isn't this a solution for service?