Back to project page savemypics.
The source code is released under:
Copyright (c) 2014, KB Sriram All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. R...
If you think the Android project savemypics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.savemypics.android.sync; /* www . j a va 2 s. c o m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; public class CSyncService extends Service { @Override public void onCreate() { synchronized (s_lock) { if (s_adapter == null) { s_adapter = new CSyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return s_adapter.getSyncAdapterBinder(); } private static CSyncAdapter s_adapter = null; private static final Object s_lock = new Object(); }