11package com .darwinsys .telecorder ;
22
3- import java .io .File ;
4-
53import android .app .Service ;
64import android .content .BroadcastReceiver ;
75import android .content .Intent ;
86import android .content .IntentFilter ;
9- import android .media .MediaRecorder ;
107import android .os .IBinder ;
118import android .util .Log ;
129import android .widget .Toast ;
1310
1411public class TeleService extends Service {
1512private final static String TAG = TeleService .class .getSimpleName ();
1613
17- private MediaRecorder recorder ;
18- private File audiofile ;
19- public String Audio_Type ;
20- private boolean recording = false ;
21-
2214 private BroadcastReceiver callReceiver ;
2315
2416 public TeleService () {
25- Log .d (TAG , "TeleService::init()" );
17+ Log .d (TAG , "TeleService::init()" );
2618 }
2719
2820 @ Override
@@ -33,8 +25,8 @@ public IBinder onBind(Intent arg0) {
3325
3426 @ Override
3527 public int onStartCommand (Intent intent , int flags , int startId ) {
36- Log .d (TAG , "TeleService.onStartCommand()" );
37- Toast .makeText (this , "Hello from onStartCommand" , Toast .LENGTH_SHORT ).show ();
28+ Log .d (TAG , "TeleService.onStartCommand()" );
29+ Toast .makeText (this , "Hello from onStartCommand" , Toast .LENGTH_SHORT ).show ();
3830 final IntentFilter filter = new IntentFilter ();
3931 filter .addAction (Intent .ACTION_NEW_OUTGOING_CALL );
4032 filter .addAction ("android.intent.action.PHONE_STATE" );
@@ -43,6 +35,4 @@ public int onStartCommand(Intent intent, int flags, int startId) {
4335
4436 return START_NOT_STICKY ;
4537 }
46-
47-
4838}
0 commit comments