// Path: app/src/main/java/it/unisannio/security/DoApp/GlobalClass.java
// public class GlobalClass extends Application {
// 
//     private static GlobalClass singleton;
// 
//     public static List<ExceptionReport> reports;
// 
//     public static GlobalClass getInstance() {
//         return singleton;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         singleton = this;
//     }
// }
// 
// Path: app/src/main/java/it/unisannio/security/DoApp/model/Commons.java
// public class Commons {
// 
//     // public static int ABOUT = 3;
// 
//     // sono i tre stadi per il progressbar di applistactivity
//     public static final int MSG_PROCESSING = 0;
//     public static final int MSG_DONE = 1;
//     public static final int MSG_ERROR = 2;
// 
//     public static final int ACTIVITIES = 0;
//     public static final int RECEIVERS = 1;
//     public static final int SERVICES = 2;
// 
//     public static final String PKGINFO_KEY = "pkginfo";
//     public static final String APPTYPE_KEY = "apptype";
//     public static final String pkgName = "pkgname";
// 
//     public static final String path = Environment.getExternalStorageDirectory().getAbsolutePath()+"/DoAppReports/";
//     public static final String pathFile = "pathFile";
// 
// }


import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import it.unisannio.security.DoApp.GlobalClass;
import it.unisannio.security.DoApp.R;
import it.unisannio.security.DoApp.model.Commons;
package it.unisannio.security.DoApp.activities;





public class CrashedListActivity extends AppCompatActivity {

    ListView list;
    TextView tvResult;

    String pathfile;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_crashed_list);

        //path al file contente il report
// Path: app/src/main/java/it/unisannio/security/DoApp/GlobalClass.java
// public class GlobalClass extends Application {
// 
//     private static GlobalClass singleton;
// 
//     public static List<ExceptionReport> reports;
// 
//     public static GlobalClass getInstance() {
//         return singleton;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         singleton = this;
//     }
// }
// 
// Path: app/src/main/java/it/unisannio/security/DoApp/model/Commons.java
// public class Commons {
// 
//     // public static int ABOUT = 3;
// 
//     // sono i tre stadi per il progressbar di applistactivity
//     public static final int MSG_PROCESSING = 0;
//     public static final int MSG_DONE = 1;
//     public static final int MSG_ERROR = 2;
// 
//     public static final int ACTIVITIES = 0;
//     public static final int RECEIVERS = 1;
//     public static final int SERVICES = 2;
// 
//     public static final String PKGINFO_KEY = "pkginfo";
//     public static final String APPTYPE_KEY = "apptype";
//     public static final String pkgName = "pkgname";
// 
//     public static final String path = Environment.getExternalStorageDirectory().getAbsolutePath()+"/DoAppReports/";
//     public static final String pathFile = "pathFile";
// 
// }


// Path: app/src/main/java/it/unisannio/security/DoApp/activities/CrashedListActivity.java
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import it.unisannio.security.DoApp.GlobalClass;
import it.unisannio.security.DoApp.R;
import it.unisannio.security.DoApp.model.Commons;

package it.unisannio.security.DoApp.activities;





public class CrashedListActivity extends AppCompatActivity {

    ListView list;
    TextView tvResult;

    String pathfile;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_crashed_list);

        //path al file contente il report
        pathfile = getIntent().getStringExtra(Commons.pathFile);