Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. @Override
  2. public void onCreate() {
  3. super.onCreate();
  4. }
  5.  
  6.  
  7. @Override
  8. public int onStartCommand(Intent intent, int flags, int startId) {
  9. super.onStartCommand(intent, flags, startId);
  10.  
  11. //PUT YOUR CODE HERE
  12. mActivityRecognitionClient = new ActivityRecognitionClient(this);
  13. Intent mIntentService = new Intent(this, ActivityRecognitionIS.class);
  14. mPendingIntent = PendingIntent.getService(this, 1, mIntentService,
  15. PendingIntent.FLAG_UPDATE_CURRENT);
  16.  
  17. requestActivityUpdatesHandler();
  18.  
  19. return START_STICKY;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement