File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1616
1717package testkit .stub ;
1818
19- import java .io .DataInputStream ;
20- import java .io .FileInputStream ;
21- import java .io .FileNotFoundException ;
22- import java .io .FileOutputStream ;
23- import java .io .IOException ;
24- import java .io .InputStream ;
2519import android .app .Activity ;
2620import android .content .Intent ;
27- import android .os .Build ;
2821import android .os .Bundle ;
2922import android .view .View ;
3023import android .widget .Button ;
31- import android .widget .TextView ;
3224
3325public class TestkitStub extends Activity implements View .OnClickListener {
3426 @ Override
@@ -41,6 +33,10 @@ public void onCreate(Bundle savedInstanceState) {
4133
4234 startButton .setOnClickListener (this );
4335 stopButton .setOnClickListener (this );
36+
37+ Intent startIntent = new Intent (TestkitStub .this , TestkitStubService .class );
38+ startIntent .setAction (Constants .ACTION .STARTFOREGROUND_ACTION );
39+ startService (startIntent );
4440 }
4541
4642 @ Override
You can’t perform that action at this time.
0 commit comments