diff options
author | 2012-08-22 17:31:13 -0700 | |
---|---|---|
committer | 2012-08-22 17:31:13 -0700 | |
commit | 0f56f9ed01b6ca62f995e0b6ab855f460ebaf2e4 (patch) | |
tree | 211aa8cf5f2b917f92b945d3892ed124e130ea26 /java/src/com/android/inputmethod/research/BootBroadcastReceiver.java | |
parent | 0cf7aa5dfd192ccdabb9e5488b4ed9bf046147a2 (diff) | |
parent | b5ace11a2e7b88e6b89b6297d5d540f351e48a4a (diff) | |
download | latinime-0f56f9ed01b6ca62f995e0b6ab855f460ebaf2e4.tar.gz latinime-0f56f9ed01b6ca62f995e0b6ab855f460ebaf2e4.tar.xz latinime-0f56f9ed01b6ca62f995e0b6ab855f460ebaf2e4.zip |
am b5ace11a: ResearchLogging upload via service
* commit 'b5ace11a2e7b88e6b89b6297d5d540f351e48a4a':
ResearchLogging upload via service
Diffstat (limited to 'java/src/com/android/inputmethod/research/BootBroadcastReceiver.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/BootBroadcastReceiver.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/research/BootBroadcastReceiver.java b/java/src/com/android/inputmethod/research/BootBroadcastReceiver.java new file mode 100644 index 000000000..5124a35a6 --- /dev/null +++ b/java/src/com/android/inputmethod/research/BootBroadcastReceiver.java @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.android.inputmethod.research; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +/** + * Arrange for the uploading service to be run on regular intervals. + */ +public final class BootBroadcastReceiver extends BroadcastReceiver { + @Override + public void onReceive(Context context, Intent intent) { + if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { + ResearchLogger.scheduleUploadingService(context); + } + } +} |