Example usage for android.content Intent ACTION_SYNC

List of usage examples for android.content Intent ACTION_SYNC

Introduction

In this page you can find the example usage for android.content Intent ACTION_SYNC.

Prototype

String ACTION_SYNC

To view the source code for android.content Intent ACTION_SYNC.

Click Source Link

Document

Activity Action: Perform a data synchronization.

Usage

From source file:com.heneryh.aquanotes.ui.controllers.ControllersActivity.java

/**
 * Be clear here whether we are talking about a database refresh or actually going out to the
 * controller for fresh data.  In this case we want to really go get new data from the controller.
 *//*from  ww w.  j ava  2 s. c om*/
private void triggerRefresh() {
    final Intent intent = new Intent(Intent.ACTION_SYNC, null, this, SyncService.class);
    startService(intent);
}