SHARE
TWEET

Untitled

a guest Jun 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.  public int onStartCommand(Intent intent, int flags, int startId)
  3.  {
  4.  
  5.     serviceInstance = this;
  6.     callHelper = new CallHelper(this);
  7.  
  8.     callHelper.start();
  9.  
  10.     return START_STICKY;
  11. }    
  12.  
  13. @Override
  14. public void onDestroy() {
  15.     Log.d("1111111111", "stop service");
  16.     super.onDestroy();
  17.     setAlarmTimer();
  18. }
  19.  
  20. @Override
  21. public void onTaskRemoved(Intent rootIntent) {
  22.     Log.d("1111111111", "stop remove");
  23.     super.onTaskRemoved(rootIntent);
  24. }
  25.      
  26. <service
  27.     android:name=".service.CallTrackService"
  28.     android:enabled="true"
  29.     android:exported="true"
  30.     android:stopWithTask="false"/>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top