AccountAuthenticatorService.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * ownCloud Android client application
  3. *
  4. * Copyright (C) 2011 Bartek Przybylski
  5. * Copyright (C) 2015 ownCloud Inc.
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2,
  9. * as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. package com.owncloud.android.authentication;
  21. import android.app.Service;
  22. import android.content.Intent;
  23. import android.os.IBinder;
  24. public class AccountAuthenticatorService extends Service {
  25. private AccountAuthenticator mAuthenticator;
  26. @Override
  27. public void onCreate() {
  28. super.onCreate();
  29. mAuthenticator = new AccountAuthenticator(this);
  30. }
  31. @Override
  32. public IBinder onBind(Intent intent) {
  33. return mAuthenticator.getIBinder();
  34. }
  35. }