Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 package edu.nimbus.glass;
00017
00018 import com.google.android.glass.app.Card;
00019
00020 import android.app.Activity;
00021 import android.content.Intent;
00022 import android.os.Bundle;
00023 import android.util.Log;
00024 import android.view.View;
00025
00026
00033 public class StartServiceActivity extends Activity {
00034
00035
00036 @Override
00037 protected void onCreate(Bundle savedInstanceState) {
00038 super.onCreate(savedInstanceState);
00039 Log.d("Startup", "STARTING");
00040 Intent intt = new Intent(this, ROSMonitorService.class);
00041
00042 stopService(intt);
00043
00044 Card card1 = new Card(this);
00045 card1.setText("Robot Warning Monitor");
00046
00047 View card1View = card1.toView();
00048
00049
00050 setContentView(card1View);
00051 intt = new Intent(this, ROSMonitorService.class);
00052 startService(intt);
00053
00054 }
00055
00056 }