Clover Coverage Report - SaveApp Coverage Report
Coverage timestamp: mar dic 23 2014 15:53:11 EST
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
18   47   4   6
2   40   0,22   3
3     1,33  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  NoteViewActivity       Line # 11 18 4 95,7% 0.95652175
 
No Tests
 
1    package com.loopback.androidapps.saveapp;
2   
3    import android.app.Activity;
4    import android.content.Intent;
5    import android.os.Bundle;
6    import android.util.Log;
7    import android.view.View;
8    import android.widget.Button;
9    import android.widget.TextView;
10   
 
11    public class NoteViewActivity extends Activity implements View.OnClickListener {
12   
13    private TextView txtNote;
14    private Button btnOkNote;
15    private String note;
16    private int outlayId;
17   
 
18  1 toggle public void onCreate(Bundle savedInstanceState) {
19  1 super.onCreate(savedInstanceState);
20  1 setContentView(R.layout.noteview);
21  1 Bundle bundle = this.getIntent().getExtras();
22  1 outlayId = bundle.getInt("Id");
23  1 note= bundle.getString("Note");
24  1 txtNote = (TextView) findViewById(R.id.txtNote);
25  1 btnOkNote = (Button) findViewById(R.id.btnOkNote);
26  1 btnOkNote.setOnClickListener(this);
27  1 txtNote.setText(note);
28    }
 
29  1 toggle public void onResume(){
30  1 super.onResume();
31  1 txtNote.setText(note);
32    }
33   
 
34  1 toggle public void onClick(View v) {
35  1 Log.i("NTA", "Click...");
36  1 if (v == btnOkNote) {
37  1 Bundle bundle = new Bundle();
38  1 bundle.putInt("Id", outlayId);
39  1 Intent intent = new Intent(this.getApplicationContext(),
40    OutlayDetailActivity.class);
41  1 intent.putExtras(bundle);
42  1 startActivity(intent);
43    }
44    }
45   
46   
47    }