| package com.android.onemedia; |
| |
| import android.content.Context; |
| import android.content.Intent; |
| |
| import java.util.ArrayList; |
| |
| /** |
| * TODO: Insert description here. (generated by epastern) |
| */ |
| public class OnePlayerService extends PlayerService { |
| private static final String TAG = "OnePlayerService"; |
| |
| public static Intent getServiceIntent(Context context) { |
| return new Intent(context, OnePlayerService.class).setPackage( |
| OnePlayerService.class.getPackage().getName()); |
| } |
| |
| @Override |
| protected Intent onCreateServiceIntent() { |
| return getServiceIntent(this); |
| } |
| |
| @Override |
| protected ArrayList<String> getAllowedPackages() { |
| ArrayList<String> allowedPackages = new ArrayList<String>(); |
| allowedPackages.add("com.android.onemedia"); |
| return allowedPackages; |
| } |
| } |