mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-25 07:48:08 +00:00
Add linphone tag in native contact app Add message to avoid delete contact too easily Migrate old contact with im to sipAddress
45 lines
1.3 KiB
Java
Executable file
45 lines
1.3 KiB
Java
Executable file
package org.linphone.sync;
|
|
|
|
/*
|
|
SyncService.java
|
|
Copyright (C) 2015 Belledonne Communications, Grenoble, France
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
|
|
import android.app.Service;
|
|
import android.content.Intent;
|
|
import android.os.IBinder;
|
|
|
|
public class SyncService extends Service {
|
|
private static SyncAdapter sSyncAdapter = null;
|
|
private static final Object sSyncAdapterLock = new Object();
|
|
|
|
@Override
|
|
public void onCreate() {
|
|
|
|
synchronized (sSyncAdapterLock) {
|
|
if (sSyncAdapter == null) {
|
|
sSyncAdapter = new SyncAdapter(getApplicationContext(), true);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public IBinder onBind(Intent intent) {
|
|
return sSyncAdapter.getSyncAdapterBinder();
|
|
}
|
|
}
|