OLD | NEW |
| (Empty) |
1 // Copyright 2012 Google Inc. All Rights Reserved. | |
2 | |
3 package com.skia; | |
4 | |
5 import android.content.BroadcastReceiver; | |
6 import android.content.Context; | |
7 import android.content.Intent; | |
8 import com.skia.SkiaIntentService; | |
9 | |
10 /** | |
11 * @author borenet@google.com (Eric Boren) | |
12 * | |
13 */ | |
14 public class SkiaReceiver extends BroadcastReceiver | |
15 { | |
16 @Override | |
17 public void onReceive(Context context, Intent intent) { | |
18 Intent skIntent = new Intent(context, SkiaIntentService.class); | |
19 | |
20 // Forward any command-line arguments to the background service | |
21 skIntent.putExtras(intent.getExtras()); | |
22 | |
23 // Launch executable | |
24 context.startService(skIntent); | |
25 } | |
26 } | |
OLD | NEW |