Clover Coverage Report - SaveApp Coverage Report
Coverage timestamp: mar dic 23 2014 15:53:11 EST
../../../../img/srcFileCovDistChart0.png 77% of files have more coverage
7   43   7   1
0   29   1   7
7     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  MyLocationListener       Line # 7 7 7 0% 0.0
 
No Tests
 
1    package com.loopback.androidapps.saveapp;
2   
3    import android.location.Location;
4    import android.location.LocationListener;
5    import android.os.Bundle;
6   
 
7    public class MyLocationListener implements LocationListener {
8   
9    private String location;
10   
 
11  0 toggle public MyLocationListener (){
12  0 location=null;
13    }
14   
 
15  0 toggle public void onLocationChanged(Location loc) {
16   
17  0 loc.getLatitude();
18  0 loc.getLongitude();
19  0 String text = "My current location is: " + "Latitud = "
20    + loc.getLatitude() + "Longitud = " + loc.getLongitude();
21  0 setLocation(text);
22    }
23   
 
24  0 toggle public void onProviderDisabled(String provider){
25    }
26   
 
27  0 toggle public void onProviderEnabled(String provider){
28    }
29   
 
30  0 toggle public void onStatusChanged(String provider, int status, Bundle extras) {
31    // TODO Auto-generated method stub
32   
33    }
34   
 
35  0 toggle public void setLocation(String location) {
36  0 this.location = location;
37    }
38   
 
39  0 toggle public String getLocation() {
40  0 return location;
41    }
42   
43    }/* End of Class MyLocationListener */