Home | History | Annotate | Download | only in mms
      1 package com.android.mms;
      2 
      3 import android.app.Activity;
      4 import android.content.Intent;
      5 import android.os.Bundle;
      6 import android.test.LaunchPerformanceBase;
      7 
      8 public class MmsLaunchPerformance extends LaunchPerformanceBase {
      9 
     10     @Override
     11     public void onCreate(Bundle arguments) {
     12         super.onCreate(arguments);
     13 
     14         mIntent.setPackage(getTargetContext().getPackageName());
     15         mIntent.setAction(Intent.ACTION_MAIN);
     16         start();
     17     }
     18 
     19     /**
     20      * Calls LaunchApp and finish.
     21      */
     22     @Override
     23     public void onStart() {
     24         super.onStart();
     25         LaunchApp();
     26         finish(Activity.RESULT_OK, mResults);
     27     }
     28 
     29 }
     30