Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate() {
- super.onCreate();
- }
- @Override
- public int onStartCommand(Intent intent, int flags, int startId) {
- super.onStartCommand(intent, flags, startId);
- //PUT YOUR CODE HERE
- mActivityRecognitionClient = new ActivityRecognitionClient(this);
- Intent mIntentService = new Intent(this, ActivityRecognitionIS.class);
- mPendingIntent = PendingIntent.getService(this, 1, mIntentService,
- PendingIntent.FLAG_UPDATE_CURRENT);
- requestActivityUpdatesHandler();
- return START_STICKY;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement