1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program Tester Core
3  * ----------------------------------------
4  *
5  * Copyright 2014 The Android Open Source Project
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *//*!
20  * \file
21  * \brief Background ExecServer starter
22  *//*--------------------------------------------------------------------*/
23 
24 package com.drawelements.deqp.execserver;
25 
26 import android.app.Activity;
27 import android.os.Bundle;
28 import com.drawelements.deqp.testercore.Log;
29 import android.content.Intent;
30 
31 public class ServiceStarter extends Activity
32 {
33 	private static final String LOG_TAG = "dEQP/ServiceStarter";
34 
35 	@Override
onCreate(Bundle icicle)36 	public void onCreate(Bundle icicle)
37 	{
38 		super.onCreate(icicle);
39 		try {
40 			Intent svc = new Intent(this, com.drawelements.deqp.execserver.ExecService.class);
41 			startService(svc);
42 		}
43 		catch (Exception e) {
44 			Log.e(LOG_TAG, "Service starter starting problem", e);
45 		}
46 		finish();
47 	}
48 
49 	@Override
onDestroy()50 	protected void onDestroy() {
51 		super.onDestroy();
52 	}
53 }
54