Go to the documentation of this file.00001 package com.riverlab.robotmanager.messages;
00002
00003 import com.riverlab.robotmanager.R;
00004 import com.riverlab.robotmanager.R.id;
00005
00006 import android.app.Activity;
00007 import android.os.Bundle;
00008 import android.widget.TextView;
00009
00010 public class MessageActivity extends Activity
00011 {
00012 @Override
00013 protected void onCreate(Bundle savedInstanceState)
00014 {
00015 RobotMessage msg = (RobotMessage)this.getIntent().getParcelableExtra("Message");
00016 String type = "";
00017
00018 if (msg.getType().equals("text"))
00019 {
00020
00021 }
00022
00023 TextView headlineTextView = (TextView)findViewById(R.id.headline);
00024 headlineTextView.setText("Message from " + msg.getSender());
00025
00026 TextView messageTextView = (TextView)findViewById(R.id.messageText);
00027 messageTextView.setText("Alert from " + msg.getText());
00028
00029 }
00030
00031 @Override
00032 protected void onResume() {}
00033
00034 @Override
00035 protected void onPause() {}
00036
00037
00038 }